@@ -65,7 +65,7 @@ |
||
65 | 65 | $oOrder = $observer->getOrder(); |
66 | 66 | |
67 | 67 | // order is not guaranteed to exist if using transaction status forwarding |
68 | - if (null === $oOrder){ |
|
68 | + if (null === $oOrder) { |
|
69 | 69 | return; |
70 | 70 | } |
71 | 71 |
@@ -198,7 +198,7 @@ |
||
198 | 198 | $blRequestTypeIsAuth = ($this->getConfigParam('request_type') == PayoneConfig::REQUEST_TYPE_AUTHORIZATION); |
199 | 199 | $blRequestIsNoAuthRequest = ($caller instanceof Authorization === false); |
200 | 200 | // check if invoice transmission is enabled in the config |
201 | - $blInvoiceEnabled = (bool) $this->getConfigParam('transmit_enabled', 'invoicing'); |
|
201 | + $blInvoiceEnabled = (bool)$this->getConfigParam('transmit_enabled', 'invoicing'); |
|
202 | 202 | $blSetupNeedsProductInfo = (($blRequestTypeIsAuth || $blRequestIsNoAuthRequest) && $blInvoiceEnabled); |
203 | 203 | return ($oPayment->needsProductInfo() || $blSetupNeedsProductInfo); |
204 | 204 | } |
@@ -221,7 +221,7 @@ |
||
221 | 221 | { |
222 | 222 | if (fmod(floatval($dItemAmount), 1.0) > 0) { // input does not represent an integer |
223 | 223 | $sErrorMessage = "Unable to use floating point values for item amounts! Parameter was: "; |
224 | - throw new \InvalidArgumentException($sErrorMessage . strval($dItemAmount), 1); |
|
224 | + throw new \InvalidArgumentException($sErrorMessage.strval($dItemAmount), 1); |
|
225 | 225 | } else { // return the integer value |
226 | 226 | return intval($dItemAmount); |
227 | 227 | } |