original_string: private static function runRouteMiddleware($route)
      {
          $routeMiddleware = Filter::$routeMiddleware;
  
          if (!is_null($route->getMiddleware())) {
              // if ($route->getMiddleware()['type'] == 'route' && ! is_null($route->getMiddleware()['middlewares'])) {
              foreach ($route->getMiddleware() as $middleware) {
                  //Check if the routes middlewares are in filter class
                  exception_if(!array_has($routeMiddleware, $middleware), RouteMiddlewareNotFoundException::class, $middleware);
  
                  $middleware = instance($routeMiddleware[$middleware]);
  
                  $middleware->handle(new Request());
              }
          }
  
          return true;
      }
code: private static function runRouteMiddleware($route)
      {
          $routeMiddleware = Filter::$routeMiddleware;
  
          if (!is_null($route->getMiddleware())) {
              // if ($route->getMiddleware()['type'] == 'route' && ! is_null($route->getMiddleware()['middlewares'])) {
              foreach ($route->getMiddleware() as $middleware) {
                  //Check if the routes middlewares are in filter class
                  exception_if(!array_has($routeMiddleware, $middleware), RouteMiddlewareNotFoundException::class, $middleware);
  
                  $middleware = instance($routeMiddleware[$middleware]);
  
                  $middleware->handle(new Request());
              }
          }
  
          return true;
      }
code_tokens: private static function runRouteMiddleware ( $ route ) { $ routeMiddleware = Filter :: $ routeMiddleware ; if ( ! is_null ( $ route -> getMiddleware ( ) ) ) { // if ($route->getMiddleware()['type'] == 'route' && ! is_null($route->getMiddleware()['middlewares'])) { foreach ( $ route -> getMiddleware ( ) as $ middleware ) { //Check if the routes middlewares are in filter class exception_if ( ! array_has ( $ routeMiddleware , $ middleware ) , RouteMiddlewareNotFoundException :: class , $ middleware ) ; $ middleware = instance ( $ routeMiddleware [ $ middleware ] ) ; $ middleware -> handle ( new Request ( ) ) ; } } return true ; }
docstring: Check route middlewares before run the route
  and check if the requested middleware are realy in filter class.
  
  @return null
docstring_tokens: Check route middlewares before run the route and check if the requested middleware are realy in filter class .