@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | */ |
| 90 | 90 | public function getPayDataArray() { |
| 91 | 91 | $aPayData = array(); |
| 92 | - foreach($this->getPayData()->getItems() as $item) { |
|
| 92 | + foreach ($this->getPayData()->getItems() as $item) { |
|
| 93 | 93 | $sCorrectedKey = strtolower($item->getKey()); |
| 94 | 94 | $sCorrectedKey = str_replace('-', '_', $sCorrectedKey); |
| 95 | 95 | $aPayData[$sCorrectedKey] = $item->getData(); |
@@ -105,17 +105,17 @@ discard block |
||
| 105 | 105 | $aPayData = $this->getPayDataArray(); |
| 106 | 106 | foreach ($aPayData as $sKey => $sValue) { |
| 107 | 107 | $aSplit = explode('_', $sKey); |
| 108 | - for($i = count($aSplit); $i > 0; $i--) { |
|
| 109 | - if($i == count($aSplit)) { |
|
| 110 | - $aTmp = array($aSplit[$i-1] => $sValue); |
|
| 108 | + for ($i = count($aSplit); $i > 0; $i--) { |
|
| 109 | + if ($i == count($aSplit)) { |
|
| 110 | + $aTmp = array($aSplit[$i - 1] => $sValue); |
|
| 111 | 111 | } else { |
| 112 | - $aTmp = array($aSplit[$i-1] => $aTmp); |
|
| 112 | + $aTmp = array($aSplit[$i - 1] => $aTmp); |
|
| 113 | 113 | } |
| 114 | 114 | } |
| 115 | 115 | $aInstallmentData = array_replace_recursive($aInstallmentData, $aTmp); |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | - if(isset($aInstallmentData['paymentdetails']) && count($aInstallmentData['paymentdetails']) > 0) { |
|
| 118 | + if (isset($aInstallmentData['paymentdetails']) && count($aInstallmentData['paymentdetails']) > 0) { |
|
| 119 | 119 | return $aInstallmentData['paymentdetails']; |
| 120 | 120 | } |
| 121 | 121 | return false; |