Conditions | 2 |
Paths | 2 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | 21 | public function boot() |
|
14 | { |
||
15 | 21 | if ($this->app->runningInConsole()) { |
|
16 | 21 | $this->publishes([ |
|
17 | 21 | __DIR__ . '/../config/fmc-sso-client.php' => config_path('fmc-sso-client.php'), |
|
18 | 21 | ], 'config'); |
|
19 | |||
20 | |||
21 | 21 | $this->commands([ |
|
22 | // |
||
23 | 21 | ]); |
|
24 | } |
||
25 | |||
26 | 21 | $this->app->singleton(SSOClient::class, function ($app) { |
|
|
|||
27 | 20 | return new SSOClient( |
|
28 | 20 | config('services.fmc-sso.client_id', config('fmc-sso-client.client_id')), |
|
29 | 20 | config('services.fmc-sso.client_secret', config('fmc-sso-client.client_secret')), |
|
30 | 20 | config('services.fmc-sso.redirect_url', config('fmc-sso-client.redirect_url')), |
|
31 | 20 | config('services.fmc-sso.sso', config('fmc-sso-client.sso', [])), |
|
32 | 20 | config('services.fmc-sso.guzzle', config('fmc-sso-client.guzzle', [])), |
|
33 | ); |
||
42 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.