Code Duplication    Length = 3-3 lines in 2 locations

src/Components/CreateDefinition.php 2 locations

@@ 277-279 (lines=3) @@
274
                }
275
                $state = 5;
276
            } elseif ($state === 5) {
277
                if ((!empty($expr->type)) || (!empty($expr->key)) || (!empty($expr->check))) {
278
                    $ret[] = $expr;
279
                }
280
                $expr = new self();
281
                if ($token->value === ',') {
282
                    $state = 1;
@@ 299-301 (lines=3) @@
296
        }
297
298
        // Last iteration was not saved.
299
        if ((!empty($expr->type)) || (!empty($expr->key)) || (!empty($expr->check))) {
300
            $ret[] = $expr;
301
        }
302
303
        if (($state !== 0) && ($state !== 6)) {
304
            $parser->error(