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