Code Duplication    Length = 3-3 lines in 2 locations

src/ServerRequestHandler.php 2 locations

@@ 403-405 (lines=3) @@
400
    protected function sortPaths($pathList)
401
    {
402
        usort($pathList, function ($left, $right) {
403
            if (strpos($left, '{') === false && strpos($right, '{') !== false) {
404
                return -16384;
405
            }
406
            if (strpos($left, '{') !== false && strpos($right, '{') === false) {
407
                return 16384;
408
            }
@@ 406-408 (lines=3) @@
403
            if (strpos($left, '{') === false && strpos($right, '{') !== false) {
404
                return -16384;
405
            }
406
            if (strpos($left, '{') !== false && strpos($right, '{') === false) {
407
                return 16384;
408
            }
409
            if (strpos($left, $right) !== false) {
410
                return -16384;
411
            }