Skip to content

Commit c0ef1aa

Browse files
dazzyandywer
authored andcommitted
More code style fixes (andywer#56)
1 parent 1aac54e commit c0ef1aa

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Console/ExportCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected function getOptions()
5454
public function handle()
5555
{
5656
$noCache = (bool)$this->option('no-cache');
57-
if ($noCache == true) $this->line('Exporting messages and config...');
57+
if ($noCache === true) $this->line('Exporting messages and config...');
5858
else $this->line('Refreshing and exporting the message and config cache...');
5959

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

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

70-
if ($noCache == false) ConfigCachingService::refreshCache();
70+
if ($noCache === false) ConfigCachingService::refreshCache();
7171
$configFilePath = $this->createPath('config.js');
7272
$this->generateConfigFile($configFilePath, $noCache);
7373
}

src/Facades/ConfigCachingService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @method static void refreshCache()
1919
* @method static \DateTime getLastRefreshTimestamp()
20-
* @method static string getConfigJson()
20+
* @method static string getConfigJson(bool $noCache = false)
2121
* @method static bool isDisabled()
2222
* @method static void public function refreshCache()
2323
*/

src/Facades/MessageCachingService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
* @method static void refreshCache()
1111
* @method static \DateTime getLastRefreshTimestamp()
12-
* @method static string getMessagesJson()
12+
* @method static string getMessagesJson(bool $noCache = false)
1313
* @method static void public function refreshCache()
1414
*/
1515
class MessageCachingService extends Facade

0 commit comments

Comments
 (0)