Code Duplication    Length = 14-14 lines in 2 locations

system/modules/View/View.php 2 locations

@@ 306-319 (lines=14) @@
303
        echo "\n        <link href='/{$cacheDir}/all{$timeMd5}.css' rel='stylesheet' type='text/css' />";
304
    }
305
306
    public function getCss()
307
    {
308
        $css = [];
309
        if (!empty($this->libAssets['css'])) {
310
            $this->ResolveCssHref($this->libAssets['css'], 'libs', $css);
311
        }
312
        if (!empty($this->template->config['css'])) {
313
            $this->ResolveCssHref($this->template->config['css'], 'template', $css);
314
        }
315
        if (!empty($this->dynAssets['css'])) {
316
            $this->ResolveCssHref($this->dynAssets['css'], 'custom', $css);
317
        }
318
        return $css;
319
    }
320
321
    public function ResolveCssHref($cssArray, $type = 'custom', &$hrefs)
322
    {
@@ 461-474 (lines=14) @@
458
        $this->widget('View\bodyEnd', compact('options'));
459
    }
460
461
    public function getScripts()
462
    {
463
        $scripts = [];
464
        if (!empty($this->libAssets['js'])) {
465
            $this->genScriptArray($this->libAssets['js'], 'libs', $scripts);
466
        }
467
        if (!empty($this->dynAssets['js'])) {
468
            $this->genScriptArray($this->dynAssets['js'], 'custom', $scripts);
469
        }
470
        if (!empty($this->template->config['js'])) {
471
            $this->genScriptArray($this->template->config['js'], 'template', $scripts);
472
        }
473
        return $scripts;
474
    }
475
476
    public function genScriptArray($jsArray, $type = 'custom', &$resultArray)
477
    {