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;
    }
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;
    }
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 ; }
Merge and remap params

@param       $method
@param array $params

@return mixed
Merge and remap params