src/Router.php
public static function dispatch()
    {
        self::routeValidator();

        self::$routes = str_replace('//', '/', self::$routes);

        if (in_array(self::$uri, self::$routes, true)) {
            return self::checkRoutes();
        }

        if (self::checkRegexRoutes() !== false) {
            return self::checkRegexRoutes();
        }

        return self::getErrorCallback();
    }
public static function dispatch()
    {
        self::routeValidator();

        self::$routes = str_replace('//', '/', self::$routes);

        if (in_array(self::$uri, self::$routes, true)) {
            return self::checkRoutes();
        }

        if (self::checkRegexRoutes() !== false) {
            return self::checkRegexRoutes();
        }

        return self::getErrorCallback();
    }
Runs the callback for the given request.

@return response|false