original_string: public function mapParams(array $map, $params = null)
      {
          if (!isset($params)) {
              $params = $this->params;
          }
  
          $mapped = array();
  
          foreach ($params as $key => $value) {
              if (isset($map[$key]) && is_string($map[$key])) {
                  gplcart_array_set($mapped, $map[$key], $value);
              }
          }
  
          return $mapped;
      }
code: public function mapParams(array $map, $params = null)
      {
          if (!isset($params)) {
              $params = $this->params;
          }
  
          $mapped = array();
  
          foreach ($params as $key => $value) {
              if (isset($map[$key]) && is_string($map[$key])) {
                  gplcart_array_set($mapped, $map[$key], $value);
              }
          }
  
          return $mapped;
      }
code_tokens: public function mapParams ( array $ map , $ params = null ) { if ( ! isset ( $ params ) ) { $ params = $ this -> params ; } $ mapped = array ( ) ; foreach ( $ params as $ key => $ value ) { if ( isset ( $ map [ $ key ] ) && is_string ( $ map [ $ key ] ) ) { gplcart_array_set ( $ mapped , $ map [ $ key ] , $ value ) ; } } return $ mapped ; }
docstring: Map the command line parameters to an array of submitted data to be passed to validators
  @param array $map
  @param null|array $params
  @return array
docstring_tokens: Map the command line parameters to an array of submitted data to be passed to validators