| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 3.0026 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | 31 | public function enterNode(Node $node): null |
|
| 23 | { |
||
| 24 | 31 | $comments = array_filter([$node->getDocComment(), ...$node->getComments()]); |
|
| 25 | 31 | foreach ($comments as $comment) { |
|
| 26 | 14 | $commentType = $this->commentFactory->classifyComment($comment->getText()); |
|
| 27 | 14 | if ($commentType === null) { |
|
| 28 | continue; |
||
| 29 | } |
||
| 30 | 14 | $this->comments[] = |
|
| 31 | 14 | new CommentDTO( |
|
| 32 | 14 | $commentType->getName(), |
|
| 33 | 14 | $commentType->getColor(), |
|
| 34 | 14 | $this->filename, |
|
| 35 | 14 | $comment->getStartLine(), |
|
| 36 | 14 | $comment->getText(), |
|
| 37 | 14 | ); |
|
| 38 | } |
||
| 39 | |||
| 40 | 31 | return null; |
|
| 41 | } |
||
| 43 |
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