File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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 */
Original file line number Diff line number Diff line change 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 */
1515class MessageCachingService extends Facade
You can’t perform that action at this time.
0 commit comments