Code Duplication    Length = 9-9 lines in 2 locations

src/Components/FunctionCall.php 1 location

@@ 100-108 (lines=9) @@
97
                continue;
98
            }
99
100
            if ($state === 0) {
101
                $ret->name = $token->value;
102
                $state = 1;
103
            } elseif ($state === 1) {
104
                if (($token->type === Token::TYPE_OPERATOR) && ($token->value === '(')) {
105
                    $ret->parameters = ArrayObj::parse($parser, $list);
106
                }
107
                break;
108
            }
109
110
        }
111

src/Components/CreateDefinition.php 1 location

@@ 236-244 (lines=9) @@
233
            } elseif ($state === 3) {
234
                $expr->options = OptionsArray::parse($parser, $list, static::$FIELD_OPTIONS);
235
                $state = 4;
236
            } elseif ($state === 4) {
237
                if (($token->type === Token::TYPE_KEYWORD) && ($token->value === 'REFERENCES')) {
238
                    ++$list->idx; // Skipping keyword 'REFERENCES'.
239
                    $expr->references = Reference::parse($parser, $list);
240
                } else {
241
                    --$list->idx;
242
                }
243
                $state = 5;
244
            } elseif ($state === 5) {
245
                if ((!empty($expr->type)) || (!empty($expr->key))) {
246
                    $ret[] = $expr;
247
                }