original_string: protected function _addTokenToRequest($token, ServerRequest $request)
      {
          $params = $request->getAttribute('params');
          $params['_csrfToken'] = $token;
  
          return $request->withAttribute('params', $params);
      }
code: protected function _addTokenToRequest($token, ServerRequest $request)
      {
          $params = $request->getAttribute('params');
          $params['_csrfToken'] = $token;
  
          return $request->withAttribute('params', $params);
      }
code_tokens: protected function _addTokenToRequest ( $ token , ServerRequest $ request ) { $ params = $ request -> getAttribute ( 'params' ) ; $ params [ '_csrfToken' ] = $ token ; return $ request -> withAttribute ( 'params' , $ params ) ; }
docstring: Add a CSRF token to the request parameters.
  
  @param string $token The token to add.
  @param \Cake\Http\ServerRequest $request The request to augment
  @return \Cake\Http\ServerRequest Modified request
docstring_tokens: Add a CSRF token to the request parameters .