Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 403-407 (lines=5) @@
400
        $scalarLower = strtolower($scalar);
401
402
        if (0 === strpos($scalar, '*')) {
403
            if (false !== $pos = strpos($scalar, '#')) {
404
                $value = substr($scalar, 1, $pos - 2);
405
            } else {
406
                $value = substr($scalar, 1);
407
            }
408
409
            // an unquoted *
410
            if (false === $value || '' === $value) {

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

@@ 400-404 (lines=5) @@
397
    private function parseValue($value, $exceptionOnInvalidType, $objectSupport)
398
    {
399
        if (0 === strpos($value, '*')) {
400
            if (false !== $pos = strpos($value, '#')) {
401
                $value = substr($value, 1, $pos - 2);
402
            } else {
403
                $value = substr($value, 1);
404
            }
405
406
            if (!array_key_exists($value, $this->refs)) {
407
                throw new ParseException(sprintf('Reference "%s" does not exist.', $value), $this->currentLine);