Code Duplication    Length = 9-9 lines in 2 locations

bundles/core/Router.php 2 locations

@@ 103-111 (lines=9) @@
100
        if (Request::isHttpRequest()) {
101
        
102
            // Search if a Less file exists
103
            if (defined('LESS_ACTIVE') && LESS_ACTIVE === true) {
104
105
                if (strstr($_SERVER['REQUEST_URI'], '.css')
106
                    && file_exists(preg_replace('/\.css/', '.less', $_SERVER['REQUEST_URI']))) {
107
108
                    Less::toCss($_SERVER['REQUEST_URI']);
109
                    exit;
110
                }
111
            }
112
113
            // Search if a typescript file exists
114
            if (defined('TYPESCRIPT_ACTIVE') && TYPESCRIPT_ACTIVE === true) {
@@ 114-122 (lines=9) @@
111
            }
112
113
            // Search if a typescript file exists
114
            if (defined('TYPESCRIPT_ACTIVE') && TYPESCRIPT_ACTIVE === true) {
115
116
                if (strstr($_SERVER['REQUEST_URI'], '.js')
117
                && file_exists(preg_replace('/\.js/', '.ts', $_SERVER['REQUEST_URI']))) {
118
119
                    Typescript::toJs($_SERVER['REQUEST_URI']);
120
                    exit;
121
                }
122
            }
123
124
            // Search public files in all plugins
125
            if ($_SERVER['REQUEST_URI'] !== '/') {