Code Duplication    Length = 7-7 lines in 3 locations

src/Discovery/DiscoveryManagerImpl.php 2 locations

@@ 330-336 (lines=7) @@
327
    /**
328
     * {@inheritdoc}
329
     */
330
    public function findRootTypeDescriptors(Expression $expr)
331
    {
332
        $expr = Expr::method('getContainingModule', Expr::same($this->rootModule))
333
            ->andX($expr);
334
335
        return $this->findTypeDescriptors($expr);
336
    }
337
338
    /**
339
     * {@inheritdoc}
@@ 612-618 (lines=7) @@
609
    /**
610
     * {@inheritdoc}
611
     */
612
    public function findRootBindingDescriptors(Expression $expr)
613
    {
614
        $expr = Expr::method('getContainingModule', Expr::same($this->rootModule))
615
            ->andX($expr);
616
617
        return $this->findBindingDescriptors($expr);
618
    }
619
620
    /**
621
     * {@inheritdoc}

src/Repository/RepositoryManagerImpl.php 1 location

@@ 292-298 (lines=7) @@
289
    /**
290
     * {@inheritdoc}
291
     */
292
    public function findRootPathMappings(Expression $expr)
293
    {
294
        $expr = Expr::method('getContainingModule', Expr::same($this->rootModule))
295
            ->andX($expr);
296
297
        return $this->findPathMappings($expr);
298
    }
299
300
    /**
301
     * {@inheritdoc}