Total Complexity | 6 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class GeneratorInput |
||
13 | { |
||
14 | /** @var string */ |
||
15 | private $directory; |
||
16 | |||
17 | /** @var string */ |
||
18 | private $outputFile; |
||
19 | |||
20 | /** @var mixed[] $options */ |
||
21 | private $options; |
||
22 | |||
23 | /** |
||
24 | * @param string[] $arguments |
||
25 | * @param mixed[] $options |
||
26 | */ |
||
27 | public function __construct(array $arguments, array $options) |
||
28 | { |
||
29 | $this->setDirectory($arguments); |
||
30 | $this->setOutputFile($arguments); |
||
31 | $this->options = $options; |
||
32 | } |
||
33 | |||
34 | public function directory(): string |
||
37 | } |
||
38 | |||
39 | public function outputFile(): string |
||
40 | { |
||
41 | return $this->outputFile; |
||
42 | } |
||
43 | |||
44 | /** @return mixed[] $options */ |
||
45 | public function options(): array |
||
48 | } |
||
49 | |||
50 | /** @param string[] $arguments */ |
||
51 | private function setDirectory(array $arguments): void |
||
52 | { |
||
53 | Assert::stringNotEmpty( |
||
54 | $arguments['directory'] ?? '', |
||
55 | 'The directory with the code to be scanned cannot be empty' |
||
56 | ); |
||
57 | $this->directory = $arguments['directory']; |
||
58 | } |
||
59 | |||
60 | /** @param string[] $arguments */ |
||
61 | private function setOutputFile(array $arguments): void |
||
68 | } |
||
69 | } |
||
70 |
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