Code Duplication    Length = 13-13 lines in 2 locations

src/Statements/InsertStatement.php 1 location

@@ 186-198 (lines=13) @@
183
            }
184
185
            if ($state === 0) {
186
                if ($token->type === Token::TYPE_KEYWORD
187
                    && $token->value !== 'INTO'
188
                ) {
189
                    $parser->error(__('Unexpected keyword.'), $token);
190
                    break;
191
                } else {
192
                    ++$list->idx;
193
                    $this->into = IntoKeyword::parse(
194
                        $parser,
195
                        $list,
196
                        array('fromInsert' => true)
197
                    );
198
                }
199
200
                $state = 1;
201
            } elseif ($state === 1) {

src/Statements/ReplaceStatement.php 1 location

@@ 152-164 (lines=13) @@
149
            }
150
151
            if ($state === 0) {
152
                if ($token->type === Token::TYPE_KEYWORD
153
                    && $token->value !== 'INTO'
154
                ) {
155
                    $parser->error(__('Unexpected keyword.'), $token);
156
                    break;
157
                } else {
158
                    ++$list->idx;
159
                    $this->into = IntoKeyword::parse(
160
                        $parser,
161
                        $list,
162
                        array('fromReplace' => true)
163
                    );
164
                }
165
166
                $state = 1;
167
            } elseif ($state === 1) {