Code Duplication    Length = 9-9 lines in 2 locations

src/Query/Parser.php 2 locations

@@ 370-378 (lines=9) @@
367
            return new Fragment($name, $typeCondition, $directives, $selectionSet, $location);
368
        }
369
370
        if ($this->is(Token::T_MUTATION)) {
371
            $location = $this->expect(Token::T_MUTATION)->location;
372
            $name = $this->expect(Token::T_NAME)->value;
373
            $variables = $this->parseVariableDefinitionList();
374
            $directives = $this->parseDirectiveList();
375
            $selectionSet = $this->parseSelectionSet();
376
377
            return new OperationMutation($name, $variables, $directives, $selectionSet, $location);
378
        }
379
380
        if ($this->is(Token::T_SUBSCRIPTION)) {
381
            $location = $this->expect(Token::T_SUBSCRIPTION)->location;
@@ 380-388 (lines=9) @@
377
            return new OperationMutation($name, $variables, $directives, $selectionSet, $location);
378
        }
379
380
        if ($this->is(Token::T_SUBSCRIPTION)) {
381
            $location = $this->expect(Token::T_SUBSCRIPTION)->location;
382
            $name = $this->expect(Token::T_NAME)->value;
383
            $variables = $this->parseVariableDefinitionList();
384
            $directives = $this->parseDirectiveList();
385
            $selectionSet = $this->parseSelectionSet();
386
387
            return new OperationSubscription($name, $variables, $directives, $selectionSet, $location);
388
        }
389
390
        if ($this->is(Token::T_QUERY)) {
391
            $location = $this->expect(Token::T_QUERY)->location;