Code Duplication    Length = 13-13 lines in 3 locations

system/modules/View/View.php 3 locations

@@ 327-339 (lines=13) @@
324
                    $hrefs[$css] = $css;
325
                }
326
                break;
327
            case 'template':
328
                foreach ($cssArray as $css) {
329
                    if (is_array($css)) {
330
                        $this->ResolveCssHref($css, $type, $hrefs);
331
                        continue;
332
                    }
333
                    if (strpos($css, '://') !== false) {
334
                        $href = $css;
335
                    } else {
336
                        $href = $this->app->templatesPath . "/{$this->template->name}/css/{$css}";
337
                    }
338
                    $hrefs[$href] = $href;
339
                }
340
                break;
341
            case 'custom':
342
                foreach ($cssArray as $css) {
@@ 341-353 (lines=13) @@
338
                    $hrefs[$href] = $href;
339
                }
340
                break;
341
            case 'custom':
342
                foreach ($cssArray as $css) {
343
                    if (is_array($css)) {
344
                        $this->ResolveCssHref($css, $type, $hrefs);
345
                        continue;
346
                    }
347
                    if (strpos($css, '//') !== false) {
348
                        $href = $css;
349
                    } else {
350
                        $href = ($this->app->type != 'app' ? '/' . $this->app->name : '') . $css;
351
                    }
352
                    $hrefs[$href] = $href;
353
                }
354
                break;
355
        }
356
    }
@@ 486-498 (lines=13) @@
483
                    $resultArray[] = $href;
484
                }
485
                break;
486
            case 'template':
487
                foreach ($jsArray as $js) {
488
                    if (is_array($js)) {
489
                        $this->genScriptArray($js, $type, $resultArray);
490
                        continue;
491
                    }
492
                    if (strpos($js, '//') !== false) {
493
                        $href = $js;
494
                    } else {
495
                        $href = $this->app->templatesPath . "/{$this->template->name}/js/{$js}";
496
                    }
497
                    $resultArray[] = $href;
498
                }
499
                break;
500
            case 'custom':
501
                foreach ($jsArray as $js) {