Conditions | 3 |
Paths | 4 |
Total Lines | 25 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 1 | 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 | $this->publishes([ |
||
33 | __DIR__.'/Migrations/2016_11_28_115831_add_locale_column.php' => $this->app->databasePath().'/migrations/'.date('Y_m_d_His', time()).'_add_locale_column.php', |
||
|
|||
34 | ], 'localizer_migrations'); |
||
35 | |||
36 | if (!config('localizer.dynamic_migration_name')) { |
||
37 | $this->loadMigrationsFrom(__DIR__.'/Migrations', 'localizer'); |
||
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.