Code Duplication    Length = 3-3 lines in 2 locations

src/RunOpenCode/Bundle/QueryResourcesLoader/Twig/CacheWarmer/QuerySourcesIterator.php 1 location

@@ 53-55 (lines=3) @@
50
        $this->queries = $this->findQuerySourcesInDirectory($this->rootDir.'/Resources/query');
51
        foreach ($this->kernel->getBundles() as $bundle) {
52
            $name = $bundle->getName();
53
            if ('Bundle' === substr($name, -6)) {
54
                $name = substr($name, 0, -6);
55
            }
56
57
            $this->queries = array_merge(
58
                $this->queries,

src/RunOpenCode/Bundle/QueryResourcesLoader/DependencyInjection/Extension.php 1 location

@@ 164-166 (lines=3) @@
161
162
            $name = $bundle;
163
164
            if ('Bundle' === substr($name, -6)) {
165
                $name = substr($name, 0, -6);
166
            }
167
168
            $twigFilesystemLoaderDefinition->addMethodCall('addPath', array($dir, $name));
169
        };