original_string: public function prependMiddlewareToGroup($group, $middleware)
      {
          if (isset($this->middlewareGroups[$group]) && ! in_array($middleware, $this->middlewareGroups[$group])) {
              array_unshift($this->middlewareGroups[$group], $middleware);
          }
  
          return $this;
      }
code: public function prependMiddlewareToGroup($group, $middleware)
      {
          if (isset($this->middlewareGroups[$group]) && ! in_array($middleware, $this->middlewareGroups[$group])) {
              array_unshift($this->middlewareGroups[$group], $middleware);
          }
  
          return $this;
      }
code_tokens: public function prependMiddlewareToGroup ( $ group , $ middleware ) { if ( isset ( $ this -> middlewareGroups [ $ group ] ) && ! in_array ( $ middleware , $ this -> middlewareGroups [ $ group ] ) ) { array_unshift ( $ this -> middlewareGroups [ $ group ] , $ middleware ) ; } return $ this ; }
docstring: Add a middleware to the beginning of a middleware group.
  
  If the middleware is already in the group, it will not be added again.
  
  @param  string  $group
  @param  string  $middleware
  @return $this
docstring_tokens: Add a middleware to the beginning of a middleware group .