Code Duplication    Length = 3-3 lines in 2 locations

src/View/View.php 2 locations

@@ 1739-1741 (lines=3) @@
1736
        $templatePaths = App::path(static::NAME_TEMPLATE);
1737
        $pluginPaths = $themePaths = [];
1738
        if (!empty($plugin)) {
1739
            for ($i = 0, $count = count($templatePaths); $i < $count; $i++) {
1740
                $pluginPaths[] = $templatePaths[$i] . 'Plugin' . DIRECTORY_SEPARATOR . $plugin . DIRECTORY_SEPARATOR;
1741
            }
1742
            $pluginPaths = array_merge($pluginPaths, App::path(static::NAME_TEMPLATE, $plugin));
1743
        }
1744
@@ 1749-1751 (lines=3) @@
1746
            $themePaths = App::path(static::NAME_TEMPLATE, Inflector::camelize($this->theme));
1747
1748
            if ($plugin) {
1749
                for ($i = 0, $count = count($themePaths); $i < $count; $i++) {
1750
                    array_unshift($themePaths, $themePaths[$i] . 'Plugin' . DIRECTORY_SEPARATOR . $plugin . DIRECTORY_SEPARATOR);
1751
                }
1752
            }
1753
        }
1754