Code Duplication    Length = 3-3 lines in 2 locations

src/ServerRequestHandler.php 2 locations

@@ 408-410 (lines=3) @@
405
    protected function sortPaths($pathList)
406
    {
407
        usort($pathList, function ($left, $right) {
408
            if (strpos($left, '{') === false && strpos($right, '{') !== false) {
409
                return -16384;
410
            }
411
            if (strpos($left, '{') !== false && strpos($right, '{') === false) {
412
                return 16384;
413
            }
@@ 411-413 (lines=3) @@
408
            if (strpos($left, '{') === false && strpos($right, '{') !== false) {
409
                return -16384;
410
            }
411
            if (strpos($left, '{') !== false && strpos($right, '{') === false) {
412
                return 16384;
413
            }
414
            if (strpos($left, $right) !== false) {
415
                return -16384;
416
            }