Code Duplication    Length = 8-8 lines in 2 locations

src/LaravelModulesServiceProvider.php 1 location

@@ 45-52 (lines=8) @@
42
    /**
43
     * {@inheritdoc}
44
     */
45
    protected function registerServices()
46
    {
47
        $this->app->singleton('modules', function ($app) {
48
            $path = $app['config']->get('modules.paths.modules');
49
50
            return new \Nwidart\Modules\Laravel\Repository($app, $path);
51
        });
52
    }
53
}
54

src/LumenModulesServiceProvider.php 1 location

@@ 43-50 (lines=8) @@
40
    /**
41
     * {@inheritdoc}
42
     */
43
    protected function registerServices()
44
    {
45
        $this->app->singleton('modules', function ($app) {
46
            $path = $app['config']->get('modules.paths.modules');
47
48
            return new \Nwidart\Modules\Lumen\Repository($app, $path);
49
        });
50
    }
51
}
52