Code Duplication    Length = 7-8 lines in 2 locations

src/Parser/Parser.php 2 locations

@@ 220-227 (lines=8) @@
217
        $array = $o->transplant(new BasicObject());
218
        $array->size = count($var);
219
220
        if (isset($var[$this->marker])) {
221
            --$array->size;
222
            $array->hints[] = 'recursion';
223
224
            $this->applyPlugins($var, $array, self::TRIGGER_RECURSION);
225
226
            return $array;
227
        }
228
229
        $rep = new Representation('Contents');
230
        $rep->implicit_label = true;
@@ 315-321 (lines=7) @@
312
        $object->hash = $hash;
313
        $object->size = count($values);
314
315
        if (isset($this->object_hashes[$hash])) {
316
            $object->hints[] = 'recursion';
317
318
            $this->applyPlugins($var, $object, self::TRIGGER_RECURSION);
319
320
            return $object;
321
        }
322
323
        $this->object_hashes[$hash] = $object;
324