| Conditions | 3 |
| Paths | 3 |
| Total Lines | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 31 | public function enterNode(Node $node): null |
|
| 24 | { |
||
| 25 | 31 | if (! $this->nodeChecker->requiresDocBlock($node)) { |
|
| 26 | 31 | return null; |
|
| 27 | } |
||
| 28 | 21 | $docComment = $node->getDocComment(); |
|
| 29 | 21 | if ($docComment !== null) { |
|
| 30 | 12 | return null; |
|
| 31 | } |
||
| 32 | |||
| 33 | 19 | $this->missingDocBlocks[] = |
|
| 34 | 19 | new CommentDTO( |
|
| 35 | 19 | MissingDocBlock::NAME, |
|
| 36 | 19 | MissingDocBlock::COLOR, |
|
| 37 | 19 | $this->filename, |
|
| 38 | 19 | $node->getLine(), |
|
| 39 | 19 | '', |
|
| 40 | 19 | ); |
|
| 41 | |||
| 42 | 19 | return null; |
|
| 43 | } |
||
| 45 |
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