Code Duplication    Length = 6-7 lines in 4 locations

src/Statements/NotImplementedStatement.php 1 location

@@ 61-66 (lines=6) @@
58
     */
59
    public function parse(Parser $parser, TokensList $list)
60
    {
61
        for (; $list->idx < $list->count; ++$list->idx) {
62
            if ($list->tokens[$list->idx]->type === Token::TYPE_DELIMITER) {
63
                break;
64
            }
65
            $this->unknown[] = $list->tokens[$list->idx];
66
        }
67
    }
68
}
69

src/Components/AlterOperation.php 1 location

@@ 189-194 (lines=6) @@
186
                $ret->options = OptionsArray::parse($parser, $list, $options);
187
188
                if ($ret->options->has('AS')) {
189
                    for (; $list->idx < $list->count; ++$list->idx) {
190
                        if ($list->tokens[$list->idx]->type === Token::TYPE_DELIMITER) {
191
                            break;
192
                        }
193
                        $ret->unknown[] = $list->tokens[$list->idx];
194
                    }
195
                    break;
196
                }
197

src/Statements/CreateStatement.php 2 locations

@@ 593-599 (lines=7) @@
590
            }
591
592
            // Parsing the `AS` keyword.
593
            for (; $list->idx < $list->count; ++$list->idx) {
594
                $token = $list->tokens[$list->idx];
595
                if ($token->type === Token::TYPE_DELIMITER) {
596
                    break;
597
                }
598
                $this->body[] = $token;
599
            }
600
        } elseif ($this->options->has('TRIGGER')) {
601
            // Parsing the time and the event.
602
            $this->entityOptions = OptionsArray::parse(
@@ 631-637 (lines=7) @@
628
                $this->body[] = $token;
629
            }
630
        } else {
631
            for (; $list->idx < $list->count; ++$list->idx) {
632
                $token = $list->tokens[$list->idx];
633
                if ($token->type === Token::TYPE_DELIMITER) {
634
                    break;
635
                }
636
                $this->body[] = $token;
637
            }
638
        }
639
    }
640
}