Total Complexity | 3 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class FixtureServiceProvider extends AbstractServiceProvider |
||
12 | { |
||
13 | /** |
||
14 | * @var string $path |
||
15 | */ |
||
16 | protected $path; |
||
17 | |||
18 | /** |
||
19 | * @var array $singletons |
||
20 | */ |
||
21 | protected $singletons = [ |
||
22 | FixtureManager::class => function() { |
||
23 | return new FixtureManager($this->path); |
||
24 | } |
||
25 | ]; |
||
26 | |||
27 | /** |
||
28 | * @inheritDoc |
||
29 | */ |
||
30 | public function register(): void |
||
31 | { |
||
32 | parent::register(); |
||
33 | |||
34 | $this->extendFileManager(); |
||
35 | |||
36 | $this->loadPath(); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Add include method into File Manager |
||
41 | * |
||
42 | * @access protected |
||
43 | * @return void |
||
44 | */ |
||
45 | protected function extendFileManager(): void |
||
49 | }); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Loads fixture path |
||
54 | * |
||
55 | * @access protected |
||
56 | * @return void |
||
57 | */ |
||
58 | protected function loadPath(): void |
||
61 | } |
||
62 | } |
||
63 |
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