Code Duplication    Length = 14-14 lines in 2 locations

system/modules/View/View.php 2 locations

@@ 302-315 (lines=14) @@
299
        echo "\n        <link href='/{$cacheDir}/all{$timeMd5}.css' rel='stylesheet' type='text/css' />";
300
    }
301
302
    public function getCss() {
303
        $css = [];
304
        if (!empty($this->libAssets['css'])) {
305
            $this->ResolveCssHref($this->libAssets['css'], 'libs', $css);
306
        }
307
        if (!empty($this->template->config['css'])) {
308
            $this->ResolveCssHref($this->template->config['css'], 'template', $css);
309
        }
310
        if (!empty($this->dynAssets['css'])) {
311
            $this->ResolveCssHref($this->dynAssets['css'], 'custom', $css);
312
        }
313
        return $css;
314
    }
315
316
    public function ResolveCssHref($cssArray, $type = 'custom', &$hrefs) {
317
        switch ($type) {
318
            case 'libs':
@@ 452-465 (lines=14) @@
449
        $this->widget('View\bodyEnd', compact('options'));
450
    }
451
452
    public function getScripts() {
453
        $scripts = [];
454
        if (!empty($this->libAssets['js'])) {
455
            $this->genScriptArray($this->libAssets['js'], 'libs', $scripts);
456
        }
457
        if (!empty($this->dynAssets['js'])) {
458
            $this->genScriptArray($this->dynAssets['js'], 'custom', $scripts);
459
        }
460
        if (!empty($this->template->config['js'])) {
461
            $this->genScriptArray($this->template->config['js'], 'template', $scripts);
462
        }
463
        return $scripts;
464
    }
465
466
    public function genScriptArray($jsArray, $type = 'custom', &$resultArray) {
467
        switch ($type) {
468
            case 'libs':