Code Duplication    Length = 3-5 lines in 3 locations

src/Assets.php 3 locations

@@ 414-416 (lines=3) @@
411
        if (array_has($this->config, $config)) {
412
            $src = array_get($this->config, $config . '.src.local');
413
414
            if (array_get($this->config, $config . '.use_cdn') && !$this->config['offline']) {
415
                $src = array_get($this->config, $config . '.src.cdn');
416
            }
417
418
            if (!is_array($src)) {
419
                $src = [$src];
@@ 252-255 (lines=4) @@
249
250
                $attributes = array_get($this->config, $configName . '.attributes', []);
251
252
                if (array_get($this->config, $configName . '.use_cdn') && !$this->config['offline']) {
253
                    $src = array_get($this->config, $configName . '.src.cdn');
254
255
                    $attributes = [];
256
                }
257
258
                foreach ((array)$src as $s) {
@@ 338-342 (lines=5) @@
335
336
        $attributes = array_get($this->config, $configName . '.attributes', []);
337
338
        if (array_get($this->config, $configName . '.use_cdn') && !$this->config['offline']) {
339
            $src = array_get($this->config, $configName . '.src.cdn');
340
341
            $cdn = true;
342
343
            $attributes = [];
344
        }
345