| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class OEmbedServiceProvider extends ServiceProvider implements DeferrableProvider |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Boots the service provider. |
||
| 11 | */ |
||
| 12 | public function boot(): void |
||
| 13 | { |
||
| 14 | if ($this->app->runningInConsole()) { |
||
| 15 | $this->publishes([ |
||
| 16 | __DIR__ . '/../resources/config.php' => $this->app->configPath('oembed.php'), |
||
| 17 | ], 'config'); |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Register the service provider. |
||
| 23 | */ |
||
| 24 | public function register(): void |
||
| 33 | } |
||
| 34 | |||
| 35 | public function provides(): array |
||
| 36 | { |
||
| 37 | return [OEmbed::class, 'oembed']; |
||
| 38 | } |
||
| 39 | |||
| 40 | private function registerConfig(): void |
||
| 43 | } |
||
| 44 | } |
||
| 45 |
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