Code Duplication    Length = 9-10 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

@@ 66-75 (lines=10) @@
63
     * @param $name
64
     * @param $path
65
     */
66
    public function __construct(Container $app, string $name, $path)
67
    {
68
        $this->name = $name;
69
        $this->path = $path;
70
        $this->cache = $app['cache'];
71
        $this->files = $app['files'];
72
        $this->translator = $app['translator'];
73
        $this->activator = $app[ActivatorInterface::class];
74
        $this->app = $app;
75
    }
76
77
    /**
78
     * Get name.