Skip to content

Commit

Permalink
Merge 834a2f0 into 1aac54e
Browse files Browse the repository at this point in the history
  • Loading branch information
dazzy committed May 30, 2018
2 parents 1aac54e + 834a2f0 commit 97cad61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Console/ExportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected function getOptions()
public function handle()
{
$noCache = (bool)$this->option('no-cache');
if ($noCache == true) $this->line('Exporting messages and config...');
if ($noCache === true) $this->line('Exporting messages and config...');
else $this->line('Refreshing and exporting the message and config cache...');

$locales = Config::get('js-localization.locales');
Expand All @@ -63,11 +63,11 @@ public function handle()
throw new ConfigException('Please set the "locales" config! See https://github.com/andywer/laravel-js-localization#configuration');
}

if ($noCache == false) MessageCachingService::refreshCache();
if ($noCache === false) MessageCachingService::refreshCache();
$messagesFilePath = $this->createPath('messages.js');
$this->generateMessagesFile($messagesFilePath, $noCache);

if ($noCache == false) ConfigCachingService::refreshCache();
if ($noCache === false) ConfigCachingService::refreshCache();
$configFilePath = $this->createPath('config.js');
$this->generateConfigFile($configFilePath, $noCache);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/ConfigCachingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @method static void refreshCache()
* @method static \DateTime getLastRefreshTimestamp()
* @method static string getConfigJson()
* @method static string getConfigJson(bool $noCache = false)
* @method static bool isDisabled()
* @method static void public function refreshCache()
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Facades/MessageCachingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* @method static void refreshCache()
* @method static \DateTime getLastRefreshTimestamp()
* @method static string getMessagesJson()
* @method static string getMessagesJson(bool $noCache = false)
* @method static void public function refreshCache()
*/
class MessageCachingService extends Facade
Expand Down

0 comments on commit 97cad61

Please sign in to comment.