Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class LumenServiceProvider extends HttpServiceProvider |
||
12 | { |
||
13 | /** |
||
14 | * Register manager. |
||
15 | * |
||
16 | * @return void |
||
17 | */ |
||
18 | protected function registerManager() |
||
19 | { |
||
20 | $this->app->singleton(Manager::class, function ($app) { |
||
21 | return new Manager($app, 'lumen'); |
||
22 | }); |
||
23 | |||
24 | $this->app->alias(Manager::class, 'swoole.manager'); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Boot websocket routes. |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | protected function bootWebsocketRoutes() |
||
33 | { |
||
34 | $app = $this->app; |
||
35 | |||
36 | // router only exists after lumen 5.5 |
||
37 | if (property_exists($app, 'router')) { |
||
38 | $app->router->group(['namespace' => 'SwooleTW\Http\Controllers'], function ($app) { |
||
39 | require __DIR__ . '/../routes/lumen_routes.php'; |
||
40 | }); |
||
41 | } else { |
||
42 | $app->group(['namespace' => 'App\Http\Controllers'], function ($app) { |
||
|
|||
43 | require __DIR__ . '/../routes/lumen_routes.php'; |
||
44 | }); |
||
45 | } |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Register access log middleware to container. |
||
50 | * |
||
51 | * @return void |
||
52 | */ |
||
53 | protected function pushAccessLogMiddleware() |
||
56 | } |
||
57 | } |
||
58 |
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.