original_string: public function pushMiddleware(callable $middleware, string $name = null)
      {
          if (!is_null($name)) {
              $this->middlewares[$name] = $middleware;
          } else {
              array_push($this->middlewares, $middleware);
          }
  
          return $this;
      }
code: public function pushMiddleware(callable $middleware, string $name = null)
      {
          if (!is_null($name)) {
              $this->middlewares[$name] = $middleware;
          } else {
              array_push($this->middlewares, $middleware);
          }
  
          return $this;
      }
code_tokens: public function pushMiddleware ( callable $ middleware , string $ name = null ) { if ( ! is_null ( $ name ) ) { $ this -> middlewares [ $ name ] = $ middleware ; } else { array_push ( $ this -> middlewares , $ middleware ) ; } return $ this ; }
docstring: Add a middleware.
  
  @param callable    $middleware
  @param string|null $name
  
  @return $this
docstring_tokens: Add a middleware .