Code Duplication    Length = 5-6 lines in 2 locations

src/Components/CreateDefinition.php 1 location

@@ 218-223 (lines=6) @@
215
                } elseif (($token->type === Token::TYPE_KEYWORD) && ($token->flags & Token::FLAG_KEYWORD_KEY)) {
216
                    $expr->key = Key::parse($parser, $list);
217
                    $state = 4;
218
                } elseif ($token->type === Token::TYPE_SYMBOL || $token->type === Token::TYPE_NONE) {
219
                    $expr->name = $token->value;
220
                    if (!$expr->isConstraint) {
221
                        $state = 2;
222
                    }
223
                } else {
224
                    $parser->error(
225
                        __('A symbol name was expected!'),
226
                        $token

src/Components/Limit.php 1 location

@@ 97-101 (lines=5) @@
94
                continue;
95
            }
96
97
            if (($token->type === Token::TYPE_OPERATOR) && ($token->value === ',')) {
98
                $ret->offset = $ret->rowCount;
99
                $ret->rowCount = 0;
100
                continue;
101
            }
102
103
            if ($offset) {
104
                $ret->offset = $token->value;