src/Router.php
private static function routeValidator()
    {
        self::$uri = Url::getUriMethods();

        self::$uri = Url::setUrlParams(self::$uri);

        self::$uri = Url::addBackSlash(self::$uri);

        self::cleanResources();

        if (self::getMethod(self::$uri)) {
            self::any(self::$uri, self::$routes[self::$uri]);
        }
    }
private static function routeValidator()
    {
        self::$uri = Url::getUriMethods();

        self::$uri = Url::setUrlParams(self::$uri);

        self::$uri = Url::addBackSlash(self::$uri);

        self::cleanResources();

        if (self::getMethod(self::$uri)) {
            self::any(self::$uri, self::$routes[self::$uri]);
        }
    }
private static function routeValidator ( ) { self :: $ uri = Url :: getUriMethods ( ) ; self :: $ uri = Url :: setUrlParams ( self :: $ uri ) ; self :: $ uri = Url :: addBackSlash ( self :: $ uri ) ; self :: cleanResources ( ) ; if ( self :: getMethod ( self :: $ uri ) ) { self :: any ( self :: $ uri , self :: $ routes [ self :: $ uri ] ) ; } }
Validate route.

@uses \string Url::getUriMethods → remove subdirectories & get methods
@uses \string Url::setUrlParams  → return url without url params
@uses \string Url::addBackSlash  → add backslash if it doesn't exist
Validate route .