Code Duplication    Length = 10-10 lines in 2 locations

src/Core.php 2 locations

@@ 606-615 (lines=10) @@
603
         */
604
605
        foreach ($metadataCollection as $alias => $metadata) {
606
            foreach ($metadata->propertiesMetadata as $property => $propertyMetadata) {
607
                $dependency = strtolower($propertyMetadata->dependency);
608
                if (array_key_exists($dependency, $implementsByAlias)) {
609
                    $propertyMetadata->dependency = $implementsByAlias[$dependency][0];
610
                } elseif (array_key_exists($dependency, $serviceAliasesByClass)) {
611
                    $propertyMetadata->dependency = $serviceAliasesByClass[$dependency][0];
612
                } else {
613
614
                }
615
            }
616
            foreach ($metadata->methodsMetadata as $method => $methodMetadata) {
617
                foreach ($methodMetadata->dependencies as $argument => $dependency) {
618
                    $dependency = strtolower($dependency);
@@ 617-626 (lines=10) @@
614
                }
615
            }
616
            foreach ($metadata->methodsMetadata as $method => $methodMetadata) {
617
                foreach ($methodMetadata->dependencies as $argument => $dependency) {
618
                    $dependency = strtolower($dependency);
619
                    if (array_key_exists($dependency, $implementsByAlias)) {
620
                        $methodMetadata->dependencies[$argument] = $implementsByAlias[$dependency][0];
621
                    } elseif (array_key_exists($dependency, $serviceAliasesByClass)) {
622
                        $methodMetadata->dependencies[$argument] = $serviceAliasesByClass[$dependency][0];
623
                    } else {
624
625
                    }
626
                }
627
            }
628
        }
629