Code Duplication    Length = 14-16 lines in 2 locations

htdocs/class/libraries/vendor/symfony/yaml/Inline.php 2 locations

@@ 410-425 (lines=16) @@
407
408
            while ($i < $len) {
409
                switch ($mapping[$i]) {
410
                    case '[':
411
                        // nested sequence
412
                        $value = self::parseSequence($mapping, $i, $references);
413
                        // Spec: Keys MUST be unique; first one wins.
414
                        // Parser cannot abort this mapping earlier, since lines
415
                        // are processed sequentially.
416
                        // But overwriting is allowed when a merge node is used in current block.
417
                        if ('<<' === $key) {
418
                            foreach ($value as $parsedValue) {
419
                                $output += $parsedValue;
420
                            }
421
                        } elseif ($allowOverwrite || !isset($output[$key])) {
422
                            $output[$key] = $value;
423
                        }
424
                        $done = true;
425
                        break;
426
                    case '{':
427
                        // nested mapping
428
                        $value = self::parseMapping($mapping, $i, $references);
@@ 426-439 (lines=14) @@
423
                        }
424
                        $done = true;
425
                        break;
426
                    case '{':
427
                        // nested mapping
428
                        $value = self::parseMapping($mapping, $i, $references);
429
                        // Spec: Keys MUST be unique; first one wins.
430
                        // Parser cannot abort this mapping earlier, since lines
431
                        // are processed sequentially.
432
                        // But overwriting is allowed when a merge node is used in current block.
433
                        if ('<<' === $key) {
434
                            $output += $value;
435
                        } elseif ($allowOverwrite || !isset($output[$key])) {
436
                            $output[$key] = $value;
437
                        }
438
                        $done = true;
439
                        break;
440
                    case ':':
441
                    case ' ':
442
                        break;