Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
12 | class LaravelServiceProvider extends HttpServiceProvider |
||
13 | { |
||
14 | /** |
||
15 | * Register manager. |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | protected function registerManager() |
||
20 | { |
||
21 | $this->app->singleton(Manager::class, function ($app) { |
||
22 | return new Manager($app, 'laravel'); |
||
23 | }); |
||
24 | |||
25 | $this->app->alias(Manager::class, 'swoole.manager'); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Boot websocket routes. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | protected function bootWebsocketRoutes() |
||
34 | { |
||
35 | require __DIR__ . '/../routes/laravel_routes.php'; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Register access log middleware to container. |
||
40 | * |
||
41 | * @return void |
||
42 | */ |
||
43 | protected function pushAccessLogMiddleware() |
||
46 | } |
||
47 | } |
||
48 |
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.