Code Duplication    Length = 5-6 lines in 2 locations

src/Components/ArrayObj.php 2 locations

@@ 130-134 (lines=5) @@
127
                } elseif ($token->value === ',') {
128
                    if ($brackets === 1) {
129
                        $isCommaLast = true;
130
                        if (empty($options['type'])) {
131
                            $ret->raw[] = trim($lastRaw);
132
                            $ret->values[] = trim($lastValue);
133
                            $lastRaw = $lastValue = '';
134
                        }
135
                    }
136
                    continue;
137
                }
@@ 163-168 (lines=6) @@
160
        //      (a)  => array('a')
161
        //
162
        $lastRaw = trim($lastRaw);
163
        if ((empty($options['type']))
164
            && ((strlen($lastRaw) > 0) || ($isCommaLast))
165
        ) {
166
            $ret->raw[] = $lastRaw;
167
            $ret->values[] = trim($lastValue);
168
        }
169
170
        return $ret;
171
    }