Total Complexity | 5 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | class ServiceProvider extends BaseServiceProvider |
||
11 | { |
||
12 | /** |
||
13 | * {@inheritdoc} |
||
14 | */ |
||
15 | public function boot(): void |
||
16 | { |
||
17 | |||
18 | // About |
||
19 | AboutCommand::add('Bookwhen', fn () => ['Version' => '1.0.0']); |
||
20 | |||
21 | // Bind |
||
22 | $this->app->bind('bookwhen', function ($app) { |
||
23 | return new Bookwhen(config('bookwhen.api_key')); |
||
24 | }); |
||
25 | |||
26 | // Config |
||
27 | if ($this->app->runningInConsole()) { |
||
28 | $this->publishes([ |
||
29 | __DIR__ . '/../config/bookwhen.php' => config_path('bookwhen.php') |
||
30 | ]); |
||
31 | } |
||
32 | |||
33 | // Routes |
||
34 | $this->registerRoutes(); |
||
35 | |||
36 | // Views |
||
37 | $this->loadViewsFrom(__DIR__.'/../resources/views', 'bookwhen'); |
||
38 | |||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Get the services provided by the provider. |
||
43 | * |
||
44 | * @return array<int, string> |
||
45 | */ |
||
46 | public function provides(): array |
||
47 | { |
||
48 | return [ |
||
49 | Bookwhen::class, |
||
50 | 'bookwhen', |
||
51 | ]; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * |
||
56 | */ |
||
57 | protected function registerRoutes() |
||
61 | }); |
||
62 | } |
||
63 | |||
64 | /** |
||
65 | * |
||
66 | */ |
||
67 | protected function routeConfiguration(): array |
||
76 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths