Consistent use of return , payment refund handling

This commit is contained in:
Deon George
2013-04-05 23:50:08 +11:00
parent 43dfd88bce
commit 52d9005b64
30 changed files with 255 additions and 210 deletions

View File

@@ -50,7 +50,7 @@ class SSL {
* @param $key Return just that index
*/
private function _aki($key=NULL) {
$return = array();
$result = array();
$aki = $this->_extensions('authorityKeyIdentifier');
if (! $aki)
@@ -62,11 +62,11 @@ class SSL {
if (strstr($x,':')) {
list($a,$b) = explode(':',$x,2);
$return[strtolower($a)] = $b;
$result[strtolower($a)] = $b;
}
}
return is_null($key) ? $return : (isset($return[$key]) ? $return[$key] : '');
return is_null($key) ? $result : (isset($result[$key]) ? $result[$key] : '');
}
private function _bc() {
@@ -92,26 +92,26 @@ class SSL {
* @param $key Return just that index
*/
private function _extensions($key=NULL) {
$return = $this->_details('extensions');
$result = $this->_details('extensions');
return is_null($key) ? $return : (isset($return[$key]) ? $return[$key] : '');
return is_null($key) ? $result : (isset($result[$key]) ? $result[$key] : '');
}
/**
* Render a DN array as a string
*/
private function _dn(array $array) {
$return = '';
$result = '';
$i = 0;
foreach ($array as $k=>$v) {
if ($i++)
$return .= ',';
$result .= ',';
$return .= sprintf('%s=%s',$k,$v);
$result .= sprintf('%s=%s',$k,$v);
}
return $return;
return $result;
}
public function get_aki_dirname() {