Code Duplication    Length = 9-9 lines in 2 locations

src/Query/Parser.php 2 locations

@@ 416-424 (lines=9) @@
413
            return new Fragment($name, $typeCondition, $directives, $selectionSet, $location);
414
        }
415
416
        if ($this->is(Token::T_MUTATION)) {
417
            $location = $this->expect(Token::T_MUTATION)->location;
418
            $name = $this->expect(Token::T_NAME)->value;
419
            $variables = $this->parseVariableDefinitionList();
420
            $directives = $this->parseDirectiveList();
421
            $selectionSet = $this->parseSelectionSet();
422
423
            return new OperationMutation($name, $variables, $directives, $selectionSet, $location);
424
        }
425
426
        if ($this->is(Token::T_SUBSCRIPTION)) {
427
            $location = $this->expect(Token::T_SUBSCRIPTION)->location;
@@ 426-434 (lines=9) @@
423
            return new OperationMutation($name, $variables, $directives, $selectionSet, $location);
424
        }
425
426
        if ($this->is(Token::T_SUBSCRIPTION)) {
427
            $location = $this->expect(Token::T_SUBSCRIPTION)->location;
428
            $name = $this->expect(Token::T_NAME)->value;
429
            $variables = $this->parseVariableDefinitionList();
430
            $directives = $this->parseDirectiveList();
431
            $selectionSet = $this->parseSelectionSet();
432
433
            return new OperationSubscription($name, $variables, $directives, $selectionSet, $location);
434
        }
435
436
        if ($this->is(Token::T_QUERY)) {
437
            $location = $this->expect(Token::T_QUERY)->location;