Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class ServiceProvider extends \Illuminate\Support\ServiceProvider |
||
8 | { |
||
9 | 8 | public function boot() |
|
10 | { |
||
11 | 8 | if ($this->app->runningInConsole()) { |
|
12 | 8 | $this->publishes([ |
|
13 | 8 | __DIR__ . '/../config/ad-director.php' => config_path('ad-director.php'), |
|
14 | 8 | ], 'config'); |
|
15 | |||
16 | 8 | $this->publishes([ |
|
17 | 8 | __DIR__.'/../resources/views' => resource_path('views/vendor/ad-director'), |
|
18 | 8 | ], 'views'); |
|
19 | |||
20 | |||
21 | 8 | $this->commands([ |
|
22 | 8 | // |
|
23 | 8 | ]); |
|
24 | } |
||
25 | |||
26 | 8 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'ad-director'); |
|
27 | |||
28 | 8 | $this->app->singleton('ad-gpt-manager', function ($app) { |
|
|
|||
29 | 8 | return new AdGPT(); |
|
30 | 8 | }); |
|
31 | |||
32 | 8 | $this->app->singleton('ad-director', function ($app) { |
|
33 | 8 | return new AdDirector(); |
|
34 | 8 | }); |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | 8 | public function register() |
|
43 | } |
||
44 | } |
||
45 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.