Skip to content

Commit

Permalink
removes superfluous method
Browse files Browse the repository at this point in the history
  • Loading branch information
ajorgensen committed Jun 12, 2013
1 parent 75c6697 commit 6a6eeba
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions class.baseclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,28 +312,16 @@ protected function array_to_params($params) {
foreach ($params as $parameter => $value) {
if(is_array($value)){
foreach($value as $subparam) {
$paramstring = $paramstring . '&' . format_parameter_string($parameter, $subparam);
$paramstring = $paramstring . '&' . $parameter . '=' . urlencode($subparam);
}
} else {
$paramstring = $paramstring . '&' . format_parameter_string($parameter, $value);
$paramstring = $paramstring . '&' . $parameter . '=' . urlencode($value);
}
}
}
return $paramstring;
}

/**
* Utility function to format a paramter string
*
* @param parameter: the parameter
* @param value: the value
*
* @return String
**/
protected function format_parameter_string($parameter, $value) {
return $parameter . '=' . urlencode($value);
}

/**
* Utility function used to determine if variable is empty
*
Expand Down

0 comments on commit 6a6eeba

Please sign in to comment.