src/PPRR.php
private function getParsingMode(string &$route) : int
    {
        // Explicit regex mode
        if (strpos($route, 'R>') === 0) {
            $route = str_replace('R>', '', $route);
            return self::MODE_REGEX;
        }
        // Explicit string mode
        if (strpos($route, 'S>') === 0) {
            $route = str_replace('S>', '', $route);
            return self::MODE_STRING;
        }

        // Use default mode
        return self::$mode;
    }
private function getParsingMode(string &$route) : int
    {
        // Explicit regex mode
        if (strpos($route, 'R>') === 0) {
            $route = str_replace('R>', '', $route);
            return self::MODE_REGEX;
        }
        // Explicit string mode
        if (strpos($route, 'S>') === 0) {
            $route = str_replace('S>', '', $route);
            return self::MODE_STRING;
        }

        // Use default mode
        return self::$mode;
    }
private function getParsingMode ( string & $ route ) : int { // Explicit regex mode if ( strpos ( $ route , 'R>' ) === 0 ) { $ route = str_replace ( 'R>' , '' , $ route ) ; return self :: MODE_REGEX ; } // Explicit string mode if ( strpos ( $ route , 'S>' ) === 0 ) { $ route = str_replace ( 'S>' , '' , $ route ) ; return self :: MODE_STRING ; } // Use default mode return self :: $ mode ; }
Detect route parsing mode for specific route

@param string &$route     route to check

@return int  class constant mode
Detect route parsing mode for specific route