Code Duplication    Length = 5-5 lines in 2 locations

modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Inline.php 1 location

@@ 438-442 (lines=5) @@
435
        $scalarLower = strtolower($scalar);
436
437
        if (0 === strpos($scalar, '*')) {
438
            if (false !== $pos = strpos($scalar, '#')) {
439
                $value = substr($scalar, 1, $pos - 2);
440
            } else {
441
                $value = substr($scalar, 1);
442
            }
443
444
            // an unquoted *
445
            if (false === $value || '' === $value) {

modules/providers/service_container_symfony/lib/Symfony/Component/Yaml/Parser.php 1 location

@@ 447-451 (lines=5) @@
444
    private function parseValue($value, $exceptionOnInvalidType, $objectSupport, $objectForMap)
445
    {
446
        if (0 === strpos($value, '*')) {
447
            if (false !== $pos = strpos($value, '#')) {
448
                $value = substr($value, 1, $pos - 2);
449
            } else {
450
                $value = substr($value, 1);
451
            }
452
453
            if (!array_key_exists($value, $this->refs)) {
454
                throw new ParseException(sprintf('Reference "%s" does not exist.', $value), $this->currentLine);