| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 32 | public function register() |
||
| 33 | { |
||
| 34 | if (config('todobar.enabled', false) === true) { |
||
| 35 | $this->app->make('TPaksu\TodoBar\Controllers\TodoBarController'); |
||
| 36 | $this->app["router"]->pushMiddlewareToGroup("web", "\TPaksu\TodoBar\Middleware\TodoBarMiddleware"); |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->app->singleton(DataStorageInterface::class, function() { |
||
| 40 | $storage = config("todobar.storage.engine", Storage\JSONStorage::class); |
||
| 41 | $config = config("todobar.storage.params", ["file" => "items.json"]); |
||
| 42 | if (class_exists($storage)) { |
||
| 43 | return new $storage($config); |
||
| 44 | } |
||
| 45 | return new Storage\JSONStorage(["file" => "items.json"]); |
||
| 46 | }); |
||
| 49 |
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