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

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