Code Duplication    Length = 14-14 lines in 2 locations

src/Discovery/DiscoveryManagerImpl.php 2 locations

@@ 594-607 (lines=14) @@
591
    /**
592
     * {@inheritdoc}
593
     */
594
    public function getRootBindingDescriptors()
595
    {
596
        $this->assertModulesLoaded();
597
598
        $bindings = array();
599
600
        foreach ($this->bindingDescriptors->toArray() as $binding) {
601
            if ($binding->getContainingModule() instanceof RootModule) {
602
                $bindings[] = $binding;
603
            }
604
        }
605
606
        return $bindings;
607
    }
608
609
    /**
610
     * {@inheritdoc}
@@ 800-813 (lines=14) @@
797
    /**
798
     * {@inheritdoc}
799
     */
800
    public function findBindingDescriptors(Expression $expr)
801
    {
802
        $this->assertModulesLoaded();
803
804
        $descriptors = array();
805
806
        foreach ($this->bindingDescriptors->toArray() as $descriptor) {
807
            if ($expr->evaluate($descriptor)) {
808
                $descriptors[] = $descriptor;
809
            }
810
        }
811
812
        return $descriptors;
813
    }
814
815
    /**
816
     * {@inheritdoc}