Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
12 | 27 | public function boot() |
|
13 | { |
||
14 | 27 | $this->publishes([ |
|
15 | 27 | __DIR__ . '/../config/localization.php' => config_path('localization.php'), |
|
16 | 27 | ], 'config'); |
|
17 | |||
18 | 27 | $this->publishes([ |
|
19 | 27 | __DIR__ . '/../resources/views' => base_path('resources/views/vendor/localization'), |
|
20 | 27 | ], 'views'); |
|
21 | |||
22 | 27 | $this->loadViewsFrom(__DIR__ . '/../resources/views', 'localization'); |
|
23 | |||
24 | 27 | $this->app->events->listen(LocaleUpdated::class, AppLocaleUpdated::class); |
|
|
|||
25 | 27 | } |
|
26 | |||
51 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: