@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $aParsedRequestUrl = parse_url($sRequestUrl); |
96 | 96 | |
97 | 97 | if ($aParsedRequestUrl === false) { |
98 | - throw new \Exception("Malformed URL " . $sRequestUrl); |
|
98 | + throw new \Exception("Malformed URL ".$sRequestUrl); |
|
99 | 99 | } |
100 | 100 | return $aParsedRequestUrl; |
101 | 101 | } |
@@ -141,9 +141,9 @@ discard block |
||
141 | 141 | foreach ($aResponse as $iLinenum => $sLine) {// go through line by line |
142 | 142 | $iPos = strpos($sLine, "="); |
143 | 143 | if ($iPos > 0) {// is a "=" as delimiter existing? |
144 | - $aOutput[substr($sLine, 0, $iPos)] = trim(substr($sLine, $iPos+1)); |
|
144 | + $aOutput[substr($sLine, 0, $iPos)] = trim(substr($sLine, $iPos + 1)); |
|
145 | 145 | } elseif (!empty($sLine)) {// is line not empty? |
146 | - $aOutput[$iLinenum] = $sLine;// add the line unedited |
|
146 | + $aOutput[$iLinenum] = $sLine; // add the line unedited |
|
147 | 147 | } |
148 | 148 | } |
149 | 149 | } |
@@ -183,11 +183,11 @@ discard block |
||
183 | 183 | public function addPayoneOrderData(SalesOrder $oOrder, $aRequest, $aResponse) |
184 | 184 | { |
185 | 185 | if (isset($aResponse['txid'])) {// txid existing? |
186 | - $oOrder->setPayoneTxid($aResponse['txid']);// add txid to order entity |
|
186 | + $oOrder->setPayoneTxid($aResponse['txid']); // add txid to order entity |
|
187 | 187 | } |
188 | - $oOrder->setPayoneRefnr($aRequest['reference']);// add refnr to order entity |
|
189 | - $oOrder->setPayoneAuthmode($aRequest['request']);// add authmode to order entity |
|
190 | - $oOrder->setPayoneMode($aRequest['mode']);// add payone mode to order entity |
|
188 | + $oOrder->setPayoneRefnr($aRequest['reference']); // add refnr to order entity |
|
189 | + $oOrder->setPayoneAuthmode($aRequest['request']); // add authmode to order entity |
|
190 | + $oOrder->setPayoneMode($aRequest['mode']); // add payone mode to order entity |
|
191 | 191 | if (isset($aRequest['mandate_identification'])) {// mandate id existing in request? |
192 | 192 | $oOrder->setPayoneMandateId($aRequest['mandate_identification']); |
193 | 193 | } elseif (isset($aResponse['mandate_identification'])) {// mandate id existing in response? |
@@ -203,11 +203,11 @@ discard block |
||
203 | 203 | */ |
204 | 204 | public function isInvoiceDataNeeded(PayoneMethod $oPayment) |
205 | 205 | { |
206 | - $sType = $this->getConfigParam('request_type');// auth or preauth? |
|
207 | - $blInvoiceEnabled = (bool)$this->getConfigParam('transmit_enabled', 'invoicing');// invoicing enabled? |
|
206 | + $sType = $this->getConfigParam('request_type'); // auth or preauth? |
|
207 | + $blInvoiceEnabled = (bool)$this->getConfigParam('transmit_enabled', 'invoicing'); // invoicing enabled? |
|
208 | 208 | if ($oPayment->needsProductInfo() || ($sType == PayoneConfig::REQUEST_TYPE_AUTHORIZATION && $blInvoiceEnabled)) { |
209 | - return true;// invoice data needed |
|
209 | + return true; // invoice data needed |
|
210 | 210 | } |
211 | - return false;// invoice data not needed |
|
211 | + return false; // invoice data not needed |
|
212 | 212 | } |
213 | 213 | } |