| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 24 | 31 | public function leaveNode(Node $node): null|int|Node|array |
|
| 25 | { |
||
| 26 | 31 | if (! $node instanceof Class_) { |
|
| 27 | 30 | return null; |
|
| 28 | } |
||
| 29 | 29 | if ($node->isAnonymous()) { |
|
| 30 | 1 | return null; |
|
| 31 | } |
||
| 32 | |||
| 33 | 28 | $this->codebase->add($this->builder->build($node)); |
|
| 34 | |||
| 35 | 28 | return null; |
|
| 36 | } |
||
| 38 |
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