Code Duplication    Length = 6-6 lines in 2 locations

src/Core/Route.php 2 locations

@@ 205-210 (lines=6) @@
202
            $route['namespace'] = $attr['namespace']; # Specific (will overwrite group namespace)
203
204
        # Removing trailing slashes
205
        if(!is_null($route['prefix']))
206
        {
207
            $route['prefix'] = trim($route['prefix'],'/');
208
            if($route['prefix'] == '')
209
                $route['prefix'] = NULL;
210
        }
211
        if(!is_null($route['namespace']))
212
        {
213
            $route['namespace'] = trim($route['namespace'],'/');
@@ 211-216 (lines=6) @@
208
            if($route['prefix'] == '')
209
                $route['prefix'] = NULL;
210
        }
211
        if(!is_null($route['namespace']))
212
        {
213
            $route['namespace'] = trim($route['namespace'],'/');
214
            if($route['namespace'] == '')
215
                $route['namespace'] = NULL;
216
        }
217
218
        $route['middleware'] = array();
219