Conditions | 3 |
Paths | 4 |
Total Lines | 20 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 8 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function register() |
||
15 | { |
||
16 | if (is_a($this->app, 'Laravel\Lumen\Application')) { |
||
17 | $this->app->configure('bearychat'); |
||
|
|||
18 | } |
||
19 | |||
20 | $this->mergeConfigFrom($from = __DIR__.'/../config/bearychat.php', 'bearychat'); |
||
21 | |||
22 | if ($this->app->runningInConsole()) { |
||
23 | $this->publishes([$from => base_path('config/bearychat.php')], 'bearychat'); |
||
24 | } |
||
25 | |||
26 | $this->app->singleton('bearychat', function ($app) { |
||
27 | return (new ClientManager) |
||
28 | ->setDefaultName($app['config']->get('bearychat.default')) |
||
29 | ->setClientsDefaults($app['config']->get('bearychat.clients_defaults')) |
||
30 | ->setClientsConfig($app['config']->get('bearychat.clients')); |
||
31 | }); |
||
32 | |||
33 | $this->app->alias('bearychat', ClientManager::class); |
||
34 | } |
||
36 |
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.