| Conditions | 3 |
| Paths | 3 |
| Total Lines | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 70 | public function enterNode(Node $node): null |
|
| 25 | { |
||
| 26 | 70 | if (! $this->nodeChecker->requiresDocBlock($node)) { |
|
| 27 | 70 | return null; |
|
| 28 | } |
||
| 29 | 50 | $docComment = $node->getDocComment(); |
|
| 30 | 50 | if ($docComment !== null) { |
|
| 31 | 13 | return null; |
|
| 32 | } |
||
| 33 | |||
| 34 | 48 | $this->missingDocBlocks[] = |
|
| 35 | 48 | new CommentDTO( |
|
| 36 | 48 | MissingDocBlockAnalyzer::NAME, //todo: use methods from MissingDocBlockAnalyzer |
|
| 37 | 48 | MissingDocBlockAnalyzer::COLOR, |
|
| 38 | 48 | $this->filename, |
|
| 39 | 48 | $node->getLine(), |
|
| 40 | 48 | $this->nodeChecker->determineMissingContent(), |
|
| 41 | 48 | ); |
|
| 42 | |||
| 43 | 48 | return null; |
|
| 44 | } |
||
| 46 |
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