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

@@ 488-492 (lines=5) @@
485
    private function parseValue($value, $exceptionOnInvalidType, $objectSupport, $objectForMap, $context)
486
    {
487
        if (0 === strpos($value, '*')) {
488
            if (false !== $pos = strpos($value, '#')) {
489
                $value = substr($value, 1, $pos - 2);
490
            } else {
491
                $value = substr($value, 1);
492
            }
493
494
            if (!array_key_exists($value, $this->refs)) {
495
                throw new ParseException(sprintf('Reference "%s" does not exist.', $value), $this->currentLineNb + 1, $this->currentLine);