original_string: public function mergeParams($method, Array $params = [])
      {
          $result = parent::mergeParams($method, $params);
  
          foreach ($this->map as $oldKey => $newKey)
          {
              if (array_key_exists($oldKey, $result[$method])) {
                  $result[$method][$newKey] = $result[$method][$oldKey];
                  $result[$method][$oldKey] = null;
                  unset($result[$method][$oldKey]);
              }
          }
  
          return $result;
      }
code: public function mergeParams($method, Array $params = [])
      {
          $result = parent::mergeParams($method, $params);
  
          foreach ($this->map as $oldKey => $newKey)
          {
              if (array_key_exists($oldKey, $result[$method])) {
                  $result[$method][$newKey] = $result[$method][$oldKey];
                  $result[$method][$oldKey] = null;
                  unset($result[$method][$oldKey]);
              }
          }
  
          return $result;
      }
code_tokens: public function mergeParams ( $ method , Array $ params = [ ] ) { $ result = parent :: mergeParams ( $ method , $ params ) ; foreach ( $ this -> map as $ oldKey => $ newKey ) { if ( array_key_exists ( $ oldKey , $ result [ $ method ] ) ) { $ result [ $ method ] [ $ newKey ] = $ result [ $ method ] [ $ oldKey ] ; $ result [ $ method ] [ $ oldKey ] = null ; unset ( $ result [ $ method ] [ $ oldKey ] ) ; } } return $ result ; }
docstring: Merge and remap params
  
  @param       $method
  @param array $params
  
  @return mixed
docstring_tokens: Merge and remap params