Code Duplication    Length = 21-23 lines in 2 locations

src/Asset/Asset.php 1 location

@@ 141-163 (lines=23) @@
138
     * @param HtmlBuilder     $html
139
     * @param UrlGenerator    $url
140
     */
141
    public function __construct(
142
        Application $application,
143
        ThemeCollection $themes,
144
        MountManager $manager,
145
        AssetParser $parser,
146
        Repository $config,
147
        Filesystem $files,
148
        AssetPaths $paths,
149
        Request $request,
150
        HtmlBuilder $html,
151
        UrlGenerator $url
152
    ) {
153
        $this->url         = $url;
154
        $this->html        = $html;
155
        $this->files       = $files;
156
        $this->paths       = $paths;
157
        $this->config      = $config;
158
        $this->themes      = $themes;
159
        $this->parser      = $parser;
160
        $this->manager     = $manager;
161
        $this->request     = $request;
162
        $this->application = $application;
163
    }
164
165
    /**
166
     * Add an asset or glob pattern to an asset collection.

src/Image/Image.php 1 location

@@ 224-244 (lines=21) @@
221
     * @param ImagePaths    $paths
222
     * @param ImageMacros   $macros
223
     */
224
    public function __construct(
225
        UrlGenerator $url,
226
        HtmlBuilder $html,
227
        Filesystem $files,
228
        Mobile_Detect $agent,
229
        Repository $config,
230
        ImageManager $manager,
231
        Application $application,
232
        ImagePaths $paths,
233
        ImageMacros $macros
234
    ) {
235
        $this->url         = $url;
236
        $this->html        = $html;
237
        $this->files       = $files;
238
        $this->agent       = $agent;
239
        $this->paths       = $paths;
240
        $this->config      = $config;
241
        $this->macros      = $macros;
242
        $this->manager     = $manager;
243
        $this->application = $application;
244
    }
245
246
    /**
247
     * Make a new image instance.