original_string: public static function popRequest()
      {
          $removed = array_pop(static::$_requests);
          $last = end(static::$_requests);
          if ($last) {
              static::setRequestContext($last);
              reset(static::$_requests);
          }
  
          return $removed;
      }
code: public static function popRequest()
      {
          $removed = array_pop(static::$_requests);
          $last = end(static::$_requests);
          if ($last) {
              static::setRequestContext($last);
              reset(static::$_requests);
          }
  
          return $removed;
      }
code_tokens: public static function popRequest ( ) { $ removed = array_pop ( static :: $ _requests ) ; $ last = end ( static :: $ _requests ) ; if ( $ last ) { static :: setRequestContext ( $ last ) ; reset ( static :: $ _requests ) ; } return $ removed ; }
docstring: Pops a request off of the request stack. Used when doing requestAction
  
  @return \Cake\Http\ServerRequest The request removed from the stack.
  @see \Cake\Routing\Router::pushRequest()
  @see \Cake\Routing\RequestActionTrait::requestAction()
docstring_tokens: Pops a request off of the request stack . Used when doing requestAction