Code Duplication    Length = 11-11 lines in 2 locations

Core/Loader/Filesystem.php 1 location

@@ 57-67 (lines=11) @@
54
    protected function getDefinitions(array $paths = array(), $returnFilename = false)
55
    {
56
        // if no paths defined, we look in all bundles
57
        if (empty($paths)) {
58
            $paths = array();
59
            /** @var $bundle \Symfony\Component\HttpKernel\Bundle\BundleInterface */
60
            foreach ($this->kernel->getBundles() as $bundle)
61
            {
62
                $path = $bundle->getPath() . "/" . $this->versionDirectory;
63
                if (is_dir($path)) {
64
                    $paths[] = $path;
65
                }
66
            }
67
        }
68
69
        $definitions = array();
70
        foreach ($paths as $path) {

Core/Loader/FilesystemRecursive.php 1 location

@@ 17-27 (lines=11) @@
14
    protected function getDefinitions(array $paths = array(), $returnFilename = false)
15
    {
16
        // if no paths defined, we look in all bundles
17
        if (empty($paths)) {
18
            $paths = array();
19
            /** @var $bundle \Symfony\Component\HttpKernel\Bundle\BundleInterface */
20
            foreach($this->kernel->getBundles() as $bundle)
21
            {
22
                $path = $bundle->getPath() . "/" . $this->versionDirectory;
23
                if (is_dir($path)) {
24
                    $paths[] = $path;
25
                }
26
            }
27
        }
28
29
        $definitions = array();
30
        foreach($paths as $path) {