Code Duplication    Length = 9-9 lines in 2 locations

src/LumenModulesServiceProvider.php 1 location

@@ 43-51 (lines=9) @@
40
    /**
41
     * {@inheritdoc}
42
     */
43
    protected function registerServices()
44
    {
45
        $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) {
46
            $path = $app['config']->get('modules.paths.modules');
47
48
            return new Lumen\LumenFileRepository($app, $path);
49
        });
50
        $this->app->alias(Contracts\RepositoryInterface::class, 'modules');
51
    }
52
}
53

src/LaravelModulesServiceProvider.php 1 location

@@ 48-56 (lines=9) @@
45
    /**
46
     * {@inheritdoc}
47
     */
48
    protected function registerServices()
49
    {
50
        $this->app->singleton(Contracts\RepositoryInterface::class, function ($app) {
51
            $path = $app['config']->get('modules.paths.modules');
52
53
            return new Laravel\LaravelFileRepository($app, $path);
54
        });
55
        $this->app->alias(Contracts\RepositoryInterface::class, 'modules');
56
    }
57
}
58