| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function enterNode(NodeInterface $node): ?NodeInterface |
||
| 22 | { |
||
| 23 | if ($node instanceof OperationDefinitionNode) { |
||
| 24 | $this->definedVariableNames = []; |
||
| 25 | } |
||
| 26 | |||
| 27 | if ($node instanceof VariableDefinitionNode) { |
||
| 28 | $this->definedVariableNames[$node->getVariable()->getNameValue()] = true; |
||
| 29 | } |
||
| 30 | |||
| 31 | return $node; |
||
| 32 | } |
||
| 61 |