| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class UniqueArgumentNamesRule extends AbstractRule |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var NameNode[] |
||
| 23 | */ |
||
| 24 | protected $knownArgumentNames = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritdoc |
||
| 28 | */ |
||
| 29 | protected function enterField(FieldNode $node): VisitorResult |
||
| 30 | { |
||
| 31 | $this->knownArgumentNames = []; |
||
| 32 | |||
| 33 | return new VisitorResult($node); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritdoc |
||
| 38 | */ |
||
| 39 | protected function enterDirective(DirectiveNode $node): VisitorResult |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @inheritdoc |
||
| 48 | */ |
||
| 49 | protected function enterArgument(ArgumentNode $node): VisitorResult |
||
| 65 | } |
||
| 66 | } |
||
| 67 |