Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function boot() |
||
15 | { |
||
16 | |||
17 | if (class_exists('\App')) { |
||
18 | $lang = \App::getLocale(); |
||
19 | } else { |
||
20 | $lang = /** @scrutinizer ignore-call */ |
||
21 | app('translator')->getLocale(); |
||
22 | } |
||
23 | |||
24 | $this->publishes([ |
||
25 | __DIR__ . '/../errors/lang/' . $lang . '.php' => config_path($lang . '.php'), |
||
|
|||
26 | ]); |
||
55 |