original_string: public function getMiddleware() : array
      {
          if (!$this->providesMiddleware()) {
              return [];
          }
  
          $allControllerMiddleware = array_filter(
              $this->getController()->getControllerMiddleware(),
              function (ControllerMiddleware $middleware) {
                  return !$middleware->excludedForMethod($this->controllerMethod);
              }
          );
  
          return array_map(
              function ($controllerMiddleware) {
                  return $controllerMiddleware->middleware();
              },
              $allControllerMiddleware
          );
      }
code: public function getMiddleware() : array
      {
          if (!$this->providesMiddleware()) {
              return [];
          }
  
          $allControllerMiddleware = array_filter(
              $this->getController()->getControllerMiddleware(),
              function (ControllerMiddleware $middleware) {
                  return !$middleware->excludedForMethod($this->controllerMethod);
              }
          );
  
          return array_map(
              function ($controllerMiddleware) {
                  return $controllerMiddleware->middleware();
              },
              $allControllerMiddleware
          );
      }
code_tokens: public function getMiddleware ( ) : array { if ( ! $ this -> providesMiddleware ( ) ) { return [ ] ; } $ allControllerMiddleware = array_filter ( $ this -> getController ( ) -> getControllerMiddleware ( ) , function ( ControllerMiddleware $ middleware ) { return ! $ middleware -> excludedForMethod ( $ this -> controllerMethod ) ; } ) ; return array_map ( function ( $ controllerMiddleware ) { return $ controllerMiddleware -> middleware ( ) ; } , $ allControllerMiddleware ) ; }
docstring: Get an array of Middleware
  
  @return array
docstring_tokens: Get an array of Middleware