Code Duplication    Length = 5-5 lines in 2 locations

htdocs/class/libraries/vendor/symfony/yaml/Inline.php 1 location

@@ 466-470 (lines=5) @@
463
        $scalarLower = strtolower($scalar);
464
465
        if (0 === strpos($scalar, '*')) {
466
            if (false !== $pos = strpos($scalar, '#')) {
467
                $value = substr($scalar, 1, $pos - 2);
468
            } else {
469
                $value = substr($scalar, 1);
470
            }
471
472
            // an unquoted *
473
            if (false === $value || '' === $value) {

htdocs/class/libraries/vendor/symfony/yaml/Parser.php 1 location

@@ 528-532 (lines=5) @@
525
    private function parseValue($value, $exceptionOnInvalidType, $objectSupport, $objectForMap, $context)
526
    {
527
        if (0 === strpos($value, '*')) {
528
            if (false !== $pos = strpos($value, '#')) {
529
                $value = substr($value, 1, $pos - 2);
530
            } else {
531
                $value = substr($value, 1);
532
            }
533
534
            if (!array_key_exists($value, $this->refs)) {
535
                throw new ParseException(sprintf('Reference "%s" does not exist.', $value), $this->currentLineNb + 1, $this->currentLine);