| Conditions | 5 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function enterNode(Node $node) |
||
| 27 | { |
||
| 28 | if ($node instanceof UseUse |
||
| 29 | && $node->hasAttribute('parent') && false === ($node->getAttribute('parent') instanceof GroupUse) |
||
| 30 | && $this->prefix !== $node->name->getFirst() |
||
| 31 | ) { |
||
| 32 | $node->name = Name::concat($this->prefix, $node->name); |
||
| 33 | } |
||
| 34 | |||
| 35 | return $node; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |