Code Duplication    Length = 7-7 lines in 3 locations

src/Statements/LoadStatement.php 3 locations

@@ 353-359 (lines=7) @@
350
        $token = $list->tokens[$list->idx];
351
352
        switch ($state) {
353
            case 3:
354
                if ($token->keyword === 'PARTITION') {
355
                    $list->idx++;
356
                    $this->partition = ArrayObj::parse($parser, $list);
357
                    $state = 4;
358
                    return $state;
359
                }
360
            case 4:
361
                if ($token->keyword === 'CHARACTER SET') {
362
                    $list->idx++;
@@ 360-366 (lines=7) @@
357
                    $state = 4;
358
                    return $state;
359
                }
360
            case 4:
361
                if ($token->keyword === 'CHARACTER SET') {
362
                    $list->idx++;
363
                    $this->charset_name = Expression::parse($parser, $list);
364
                    $state = 5;
365
                    return $state;
366
                }
367
            case 5:
368
                if ($token->keyword === 'FIELDS'
369
                    || $token->keyword === 'COLUMNS'
@@ 392-398 (lines=7) @@
389
                    $state = 7;
390
                    return $state;
391
                }
392
            case 7:
393
                if ($token->keyword === 'SET') {
394
                    $list->idx++;
395
                    $this->set = SetOperation::parse($parser, $list);
396
                    $state = 8;
397
                    return $state;
398
                }
399
            default:
400
        }
401
        return $state;