Code Duplication    Length = 7-7 lines in 2 locations

src/factories/SelamiAppFactory.php 1 location

@@ 11-17 (lines=7) @@
8
use Selami\Router;
9
use Selami\Foundation\App;
10
11
class SelamiAppFactory implements FactoryInterface
12
{
13
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null) : App
14
    {
15
        return new App($container->get('config')['app'], $container->get(Router::class), $container);
16
    }
17
}
18

src/factories/SelamiAuthFactory.php 1 location

@@ 11-17 (lines=7) @@
8
use Selami\Router;
9
use Selami\Foundation\App;
10
11
class SelamiAuthFactory implements FactoryInterface
12
{
13
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null) : App
14
    {
15
        return new App($container->get('config')['app'], $container->get(Router::class), $container);
16
    }
17
}
18