Code Duplication    Length = 5-6 lines in 2 locations

src/Components/Limit.php 1 location

@@ 92-96 (lines=5) @@
89
                continue;
90
            }
91
92
            if (($token->type === Token::TYPE_OPERATOR) && ($token->value === ',')) {
93
                $ret->offset = $ret->rowCount;
94
                $ret->rowCount = 0;
95
                continue;
96
            }
97
98
            if ($offset) {
99
                $ret->offset = $token->value;

src/Components/CreateDefinition.php 1 location

@@ 227-232 (lines=6) @@
224
                } elseif (($token->type === Token::TYPE_KEYWORD) && $token->keyword === 'CHECK') {
225
                    $expr->check = Check::parse($parser, $list);
226
                    $state = 4;
227
                } elseif ($token->type === Token::TYPE_SYMBOL || $token->type === Token::TYPE_NONE) {
228
                    $expr->name = $token->value;
229
                    if (!$expr->isConstraint) {
230
                        $state = 2;
231
                    }
232
                } elseif ($token->type === Token::TYPE_KEYWORD) {
233
                    if ($token->flags & Token::FLAG_KEYWORD_RESERVED) {
234
                        // Reserved keywords can't be used
235
                        // as field names without backquotes