Code Duplication    Length = 7-7 lines in 2 locations

src/ConfigFactory.php 1 location

@@ 11-17 (lines=7) @@
8
9
class ConfigFactory implements FactoryInterface
10
{
11
    public function createService(ServiceLocatorInterface $serviceLocator)
12
    {
13
        $appConfig = $serviceLocator->get('Config');
14
        $filesystem = $serviceLocator->get(Filesystem::class);
15
16
        return new Config($appConfig, $filesystem);
17
    }
18
}
19

src/Service/GeneratorFactory.php 1 location

@@ 19-25 (lines=7) @@
16
     * @param ServiceLocatorInterface $serviceLocator
17
     * @return mixed
18
     */
19
    public function createService(ServiceLocatorInterface $serviceLocator)
20
    {
21
        $config = $serviceLocator->get(Config::class);
22
        $filesystem = $serviceLocator->get(Filesystem::class);
23
24
        return new Generator($config, $filesystem);
25
    }
26
}
27