Code Duplication    Length = 9-9 lines in 2 locations

src/FileRepository.php 1 location

@@ 70-78 (lines=9) @@
67
     * @param Container $app
68
     * @param string|null $path
69
     */
70
    public function __construct(Container $app, $path = null)
71
    {
72
        $this->app = $app;
73
        $this->path = $path;
74
        $this->url = $app['url'];
75
        $this->config = $app['config'];
76
        $this->files = $app['files'];
77
        $this->cache = $app['cache'];
78
    }
79
80
    /**
81
     * Add other module location.

src/Module.php 1 location

@@ 61-69 (lines=9) @@
58
     * @param $name
59
     * @param $path
60
     */
61
    public function __construct(Container $app, string $name, $path)
62
    {
63
        $this->name = $name;
64
        $this->path = $path;
65
        $this->cache = $app['cache'];
66
        $this->files = $app['files'];
67
        $this->translator = $app['translator'];
68
        $this->app = $app;
69
    }
70
71
    /**
72
     * Get name.