src/Control/HTTPRequest.php
public function isEmptyPattern($pattern)
    {
        if (preg_match('/^([A-Za-z]+) +(.*)$/', $pattern, $matches)) {
            $pattern = $matches[2];
        }

        if (trim($pattern) == "") {
            return true;
        }
        return false;
    }
public function isEmptyPattern($pattern)
    {
        if (preg_match('/^([A-Za-z]+) +(.*)$/', $pattern, $matches)) {
            $pattern = $matches[2];
        }

        if (trim($pattern) == "") {
            return true;
        }
        return false;
    }
public function isEmptyPattern ( $ pattern ) { if ( preg_match ( '/^([A-Za-z]+) +(.*)$/' , $ pattern , $ matches ) ) { $ pattern = $ matches [ 2 ] ; } if ( trim ( $ pattern ) == "" ) { return true ; } return false ; }
Returns true if this is a URL that will match without shifting off any of the URL.
This is used by the request handler to prevent infinite parsing loops.

@param string $pattern
@return bool
Returns true if this is a URL that will match without shifting off any of the URL . This is used by the request handler to prevent infinite parsing loops .