Code Duplication    Length = 7-7 lines in 2 locations

src/Query/Lexer.php 1 location

@@ 49-55 (lines=7) @@
46
        }
47
48
        $next = $this->scanner->peek();
49
        while ($next === '_' || ctype_alpha($next) || ctype_digit($next)) {
50
            $name .= $this->scanner->next();
51
            if ($this->scanner->eof()) {
52
                break;
53
            }
54
            $next = $this->scanner->peek();
55
        }
56
57
        $type = Token::T_NAME;
58
        if ($name === 'query') {

src/Schema/Lexer.php 1 location

@@ 49-55 (lines=7) @@
46
        }
47
48
        $next = $this->scanner->peek();
49
        while ($next === '_' || ctype_alpha($next) || ctype_digit($next)) {
50
            $name .= $this->scanner->next();
51
            if ($this->scanner->eof()) {
52
                break;
53
            }
54
            $next = $this->scanner->peek();
55
        }
56
57
        $type = Token::T_NAME;
58
        if ($name === 'true') {