Conditions | 3 |
Paths | 4 |
Total Lines | 25 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function boot(\Illuminate\Routing\Router $router) |
||
16 | { |
||
17 | if (!$this->app->routesAreCached()) { |
||
18 | require __DIR__.'/Routes/web.php'; |
||
19 | } |
||
20 | |||
21 | $this->publishes([ |
||
22 | __DIR__.'/Config/localizer.php' => config_path('localizer.php'), |
||
23 | ], 'localizer_config'); |
||
24 | |||
25 | $this->publishes([ |
||
26 | __DIR__.'/Config/localizer_languages.php' => config_path('localizer_languages.php'), |
||
27 | ], 'localizer_languages'); |
||
28 | |||
29 | $router->aliasMiddleware('localizer', config('localizer.middleware')); |
||
30 | $this->app->register(IdentifyServiceProvider::class); |
||
31 | |||
32 | if (! class_exists('AddLocaleColumn')) { |
||
33 | // Publish the migration |
||
34 | $timestamp = date('Y_m_d_His', time()); |
||
35 | $this->publishes([ |
||
36 | __DIR__.'/Migrations/add_locale_column.php.stub' => $this->app->databasePath().'/migrations/'.$timestamp.'_add_locale_column.php', |
||
|
|||
37 | ], 'localizer_migrations'); |
||
38 | } |
||
39 | } |
||
40 | |||
52 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.