Code Duplication    Length = 9-9 lines in 2 locations

src/Admin.php 1 location

@@ 28-36 (lines=9) @@
25
26
    protected $models;
27
28
    public function __construct(Application $app)
29
    {
30
        $this->app = $app;
31
        $this->config = new ConfigRepository(
32
            $this->app['config']->get('admin', [])
33
        );
34
35
        $this->models = new Collection();
36
    }
37
38
    public function getMenus($list = null)
39
    {

src/Config/Config.php 1 location

@@ 21-29 (lines=9) @@
18
    protected $permissions;
19
    protected $columns;
20
21
    public function __construct(Application $app, $name)
22
    {
23
        $this->app  = $app;
24
        $this->name = $name;
25
26
        $this->config = new ConfigRepository(
27
            $this->app['files']->getRequire($this->getConfigFile())
28
        );
29
    }
30
31
    public function getConfigFile()
32
    {