Code Duplication    Length = 3-3 lines in 2 locations

src/Kernel.php 2 locations

@@ 43-45 (lines=3) @@
40
        $container->setParameter('container.dumper.inline_class_loader', true);
41
        $confDir = $this->getProjectDir() . '/config';
42
        $loader->load($confDir . '/packages/*' . self::CONFIG_EXTS, 'glob');
43
        if (is_dir($confDir . '/packages/' . $this->environment)) {
44
            $loader->load($confDir . '/packages/' . $this->environment . '/**/*' . self::CONFIG_EXTS, 'glob');
45
        }
46
        $loader->load($confDir . '/services' . self::CONFIG_EXTS, 'glob');
47
        $loader->load($confDir . '/services_' . $this->environment . self::CONFIG_EXTS, 'glob');
48
    }
@@ 56-58 (lines=3) @@
53
        if (is_dir($confDir . '/routes/')) {
54
            $routes->import($confDir . '/routes/*' . self::CONFIG_EXTS, '/', 'glob');
55
        }
56
        if (is_dir($confDir . '/routes/' . $this->environment)) {
57
            $routes->import($confDir . '/routes/' . $this->environment . '/**/*' . self::CONFIG_EXTS, '/', 'glob');
58
        }
59
        $routes->import($confDir . '/routes' . self::CONFIG_EXTS, '/', 'glob');
60
    }
61
}