| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0078 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 3 | public function handle() |
|
| 35 | { |
||
| 36 | 3 | $this->line('Refreshing the message cache...'); |
|
| 37 | |||
| 38 | 3 | $locales = Config::get('js-localization.locales'); |
|
| 39 | |||
| 40 | 3 | if(!is_array($locales)) { |
|
| 41 | throw new ConfigException('Please set the "locales" config! See https://github.com/andywer/laravel-js-localization#configuration'); |
||
| 42 | } |
||
| 43 | |||
| 44 | 3 | MessageCachingService::refreshCache(); |
|
| 45 | 3 | ConfigCachingService::refreshCache(); |
|
| 46 | 3 | } |
|
| 47 | |||
| 60 |