| @@ 66-76 (lines=11) @@ | ||
| 63 | ||
| 64 | $useStatement = $this->useStatements->findStatementForName($node->getFirst()); |
|
| 65 | ||
| 66 | if (null === $useStatement) { |
|
| 67 | if (0 === count($this->namespaceStatements)) { |
|
| 68 | return $node; |
|
| 69 | } |
|
| 70 | ||
| 71 | $namespaceStatement = $this->namespaceStatements->getNamespaceName(); |
|
| 72 | ||
| 73 | $newNode = FullyQualified::concat($namespaceStatement, $node, $node->getAttributes()); |
|
| 74 | } else { |
|
| 75 | $newNode = FullyQualified::concat($useStatement, $node->slice(1), $node->getAttributes()); |
|
| 76 | } |
|
| 77 | ||
| 78 | $newNode->setAttribute('phpscoper_ignore', true); |
|
| 79 | ||
| @@ 66-76 (lines=11) @@ | ||
| 63 | ||
| 64 | $useStatement = $this->useStatements->findStatementForName($nodeClass->getFirst()); |
|
| 65 | ||
| 66 | if (null === $useStatement) { |
|
| 67 | if (0 === count($this->namespaceStatements)) { |
|
| 68 | return $node; |
|
| 69 | } |
|
| 70 | ||
| 71 | $namespaceStatement = $this->namespaceStatements->getNamespaceName(); |
|
| 72 | ||
| 73 | $newNodeClass = FullyQualified::concat($namespaceStatement, $nodeClass, $nodeClass->getAttributes()); |
|
| 74 | } else { |
|
| 75 | $newNodeClass = FullyQualified::concat($useStatement, $nodeClass->slice(1), $nodeClass->getAttributes()); |
|
| 76 | } |
|
| 77 | ||
| 78 | $newNodeClass->setAttribute('phpscoper_ignore', true); |
|
| 79 | ||