| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | protected function enterArgument(ArgumentNode $node): VisitorResult |
||
| 50 | { |
||
| 51 | $argumentName = $node->getNameValue(); |
||
| 52 | |||
| 53 | if (isset($this->knownArgumentNames[$argumentName])) { |
||
| 54 | $this->context->reportError( |
||
| 55 | new ValidationException( |
||
| 56 | duplicateArgumentMessage($argumentName), |
||
|
|
|||
| 57 | [$this->knownArgumentNames[$argumentName], $node->getName()] |
||
| 58 | ) |
||
| 59 | ); |
||
| 60 | } else { |
||
| 61 | $this->knownArgumentNames[$argumentName] = $node->getName(); |
||
| 62 | } |
||
| 63 | |||
| 64 | return new VisitorResult(null); |
||
| 65 | } |
||
| 67 |