Code Duplication    Length = 3-3 lines in 2 locations

src/Router.php 2 locations

@@ 253-255 (lines=3) @@
250
            }
251
252
            // Remove possible GET parameters from resource path
253
            if (($getStart = strpos($url, '?')) !== false) {
254
                $url = substr($url, 0, $getStart);
255
            }
256
257
            // Remove possible HASH parameters from resource path
258
            if (($getStart = strpos($url, '#')) !== false) {
@@ 258-260 (lines=3) @@
255
            }
256
257
            // Remove possible HASH parameters from resource path
258
            if (($getStart = strpos($url, '#')) !== false) {
259
                $url = substr($url, 0, $getStart);
260
            }
261
262
            // Try to find resource and output full error
263
            try {