original_string: public function getParam($key = null, $default = null)
      {
          if (!isset($key)) {
              return $this->params;
          }
  
          foreach ((array) $key as $k) {
              if (isset($this->params[$k])) {
                  return $this->params[$k];
              }
          }
  
          return $default;
      }
code: public function getParam($key = null, $default = null)
      {
          if (!isset($key)) {
              return $this->params;
          }
  
          foreach ((array) $key as $k) {
              if (isset($this->params[$k])) {
                  return $this->params[$k];
              }
          }
  
          return $default;
      }
code_tokens: public function getParam ( $ key = null , $ default = null ) { if ( ! isset ( $ key ) ) { return $ this -> params ; } foreach ( ( array ) $ key as $ k ) { if ( isset ( $ this -> params [ $ k ] ) ) { return $ this -> params [ $ k ] ; } } return $ default ; }
docstring: Returns a single parameter value
  @param string|array|null $key
  @param mixed $default
  @return mixed
docstring_tokens: Returns a single parameter value