Code Duplication    Length = 7-7 lines in 2 locations

src/Kunstmaan/MediaBundle/DependencyInjection/Compiler/MediaHandlerCompilerPass.php 2 locations

@@ 29-35 (lines=7) @@
26
            }
27
        }
28
29
        if ($container->hasDefinition('kunstmaan_media.icon_font_manager')) {
30
            $definition = $container->getDefinition('kunstmaan_media.icon_font_manager');
31
32
            foreach ($container->findTaggedServiceIds('kunstmaan_media.icon_font.loader') as $id => $attributes) {
33
                $definition->addMethodCall('addLoader', array(new Reference($id), $id));
34
            }
35
        }
36
37
        // Inject the tagged resolvers into our cache manager override
38
        if ($container->hasDefinition('Kunstmaan\MediaBundle\Helper\Imagine\CacheManager')) {
@@ 38-44 (lines=7) @@
35
        }
36
37
        // Inject the tagged resolvers into our cache manager override
38
        if ($container->hasDefinition('Kunstmaan\MediaBundle\Helper\Imagine\CacheManager')) {
39
            $manager = $container->getDefinition('Kunstmaan\MediaBundle\Helper\Imagine\CacheManager');
40
41
            foreach ($container->findTaggedServiceIds('liip_imagine.cache.resolver') as $id => $tag) {
42
                $manager->addMethodCall('addResolver', [$tag[0]['resolver'], new Reference($id)]);
43
            }
44
        }
45
    }
46
}
47