| Total Complexity | 3 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 9 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class MessagesServiceProvider extends ServiceProvider |
||
| 12 | { |
||
| 13 | use ConfigTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Bootstrap services. |
||
| 17 | * |
||
| 18 | * @return void |
||
| 19 | */ |
||
| 20 | public function boot() |
||
| 21 | { |
||
| 22 | $this->registerRoutes(__DIR__.'/../../routes/messages.php', __DIR__.'/../../routes/source.php'); |
||
| 23 | |||
| 24 | $this->setUpSourceFiles(function () { |
||
| 25 | $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); |
||
|
|
|||
| 26 | |||
| 27 | $this->publishes([ |
||
| 28 | __DIR__.'/../../database/migrations/' => database_path('migrations'), |
||
| 29 | ], 'faithgen-messages-migrations'); |
||
| 30 | }); |
||
| 31 | |||
| 32 | $this->publishes([ |
||
| 33 | __DIR__.'/../../config/faithgen-messages.php' => config_path('faithgen-messages.php'), |
||
| 34 | ], 'faithgen-messages-config'); |
||
| 35 | |||
| 36 | Message::observe(MessageObserver::class); |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Register services. |
||
| 41 | * |
||
| 42 | * @return void |
||
| 43 | */ |
||
| 44 | public function register() |
||
| 45 | { |
||
| 46 | $this->mergeConfigFrom(__DIR__.'/../../config/faithgen-messages.php', 'faithgen-messages'); |
||
| 47 | $this->app->singleton(MessageService::class); |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return array |
||
| 52 | */ |
||
| 53 | public function routeConfiguration(): array |
||
| 58 | ]; |
||
| 59 | } |
||
| 60 | } |
||
| 61 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.