@@ -81,7 +81,7 @@ |
||
81 | 81 | * Get country name by its ISO2 abbreviation |
82 | 82 | * |
83 | 83 | * @param string $sCountryCode |
84 | - * @return string|bool |
|
84 | + * @return string|false |
|
85 | 85 | */ |
86 | 86 | public function getCountryNameByIso2($sCountryCode) |
87 | 87 | { |
@@ -124,7 +124,7 @@ |
||
124 | 124 | * |
125 | 125 | * @param string $sText |
126 | 126 | * @param string $aSubstitutionArray |
127 | - * @param int|bool $iMaxLength |
|
127 | + * @param integer $iMaxLength |
|
128 | 128 | * @return string |
129 | 129 | */ |
130 | 130 | public function handleSubstituteReplacement($sText, $aSubstitutionArray, $iMaxLength = false) |
@@ -237,7 +237,7 @@ |
||
237 | 237 | } |
238 | 238 | |
239 | 239 | /** |
240 | - * @return \PHPUnit_Framework_MockObject_MockObject |
|
240 | + * @return Observer |
|
241 | 241 | */ |
242 | 242 | private function getExecuteObserver() |
243 | 243 | { |
@@ -87,7 +87,7 @@ |
||
87 | 87 | $sXml = $this->configExport->generateConfigExportXml(); |
88 | 88 | if ($sXml !== false) { |
89 | 89 | $oResultRaw->setHeader("Content-Type", "text/xml; charset=\"utf8\"", true); |
90 | - $oResultRaw->setHeader("Content-Disposition", "attachment; filename=\"payone_config_export" . date('Y-m-d H-i-s') . "_" . md5($sXml) . ".xml\"", true); |
|
90 | + $oResultRaw->setHeader("Content-Disposition", "attachment; filename=\"payone_config_export".date('Y-m-d H-i-s')."_".md5($sXml).".xml\"", true); |
|
91 | 91 | $oResultRaw->setContents($sXml); |
92 | 92 | } |
93 | 93 | } catch (\Exception $e) { |
@@ -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 | } |