original_string: protected static function getParams(PsrRequest $request)
      {
          $params = (array)$request->getAttribute('params', []);
          $params += [
              'plugin' => null,
              'controller' => null,
              'action' => null,
              '_ext' => null,
              'pass' => []
          ];
  
          return $params;
      }
code: protected static function getParams(PsrRequest $request)
      {
          $params = (array)$request->getAttribute('params', []);
          $params += [
              'plugin' => null,
              'controller' => null,
              'action' => null,
              '_ext' => null,
              'pass' => []
          ];
  
          return $params;
      }
code_tokens: protected static function getParams ( PsrRequest $ request ) { $ params = ( array ) $ request -> getAttribute ( 'params' , [ ] ) ; $ params += [ 'plugin' => null , 'controller' => null , 'action' => null , '_ext' => null , 'pass' => [ ] ] ; return $ params ; }
docstring: Extract the routing parameters out of the request object.
  
  @param \Psr\Http\Message\ServerRequestInterface $request The request to extract params from.
  @return array The routing parameters.
docstring_tokens: Extract the routing parameters out of the request object .