| Conditions | 6 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function enterNode(Node $node): Node |
||
| 37 | { |
||
| 38 | if ($node instanceof UseUse |
||
| 39 | && $node->hasAttribute('parent') |
||
| 40 | && false === ($node->getAttribute('parent') instanceof GroupUse) |
||
| 41 | // If is a single level use statements or part of the Composer namespace |
||
| 42 | && (1 === count($node->name->parts) || 'Composer' === $node->name->getFirst()) |
||
| 43 | ) { |
||
| 44 | $node->setAttribute('phpscoper_ignore', true); |
||
| 45 | } |
||
| 46 | |||
| 47 | return $node; |
||
| 48 | } |
||
| 49 | } |
||
| 50 |