Total Complexity | 3 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | final class NikicPhpAst implements ImporterInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var array<int, \ast\Metadata> |
||
27 | */ |
||
28 | private $metadata = []; |
||
29 | |||
30 | /** |
||
31 | * @param Node $data |
||
32 | * |
||
33 | * @throws Exception |
||
34 | */ |
||
35 | 1 | public function import($data): NodeInterface |
|
36 | { |
||
37 | 1 | $this->metadata = get_metadata(); |
|
38 | |||
39 | 1 | return $this->parseNode($this->createNode(['label' => 'root']), $data); |
|
40 | } |
||
41 | |||
42 | 1 | private function createNode(array $attributes): AttributeNodeInterface |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @param Node ...$astNodes |
||
49 | */ |
||
50 | 1 | private function parseNode(AttributeNodeInterface $parent, Node ...$astNodes): NodeInterface |
|
67 | ); |
||
68 | } |
||
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