@@ -135,7 +135,7 @@ |
||
| 135 | 135 | protected function getAcceptanceTextFromPayolution($sCompany) |
| 136 | 136 | { |
| 137 | 137 | $sUrl = $this->sAcceptanceBaseUrl.'?mId='.base64_encode($sCompany).'&lang='.$this->shopHelper->getLocale(); |
| 138 | - $cacheKey = 'PAYONE_ACCEPTANCE_TEXT_' . sha1($sUrl); |
|
| 138 | + $cacheKey = 'PAYONE_ACCEPTANCE_TEXT_'.sha1($sUrl); |
|
| 139 | 139 | $cache = $this->cache->load($cacheKey); |
| 140 | 140 | |
| 141 | 141 | if ($cache !== false) { |
@@ -37,9 +37,9 @@ |
||
| 37 | 37 | * @var array |
| 38 | 38 | */ |
| 39 | 39 | protected static $aTypes = [ |
| 40 | - ['value' => 'visa', 'label' => 'Visa'], |
|
| 40 | + ['value' => 'visa', 'label' => 'Visa'], |
|
| 41 | 41 | ['value' => 'masterCard', 'label' => 'Mastercard'], |
| 42 | - ['value' => 'girocard', 'label' => 'Girocard'] |
|
| 42 | + ['value' => 'girocard', 'label' => 'Girocard'] |
|
| 43 | 43 | ]; |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * |
| 33 | 33 | * @var string |
| 34 | 34 | */ |
| 35 | - protected $applePaySessionUrl = "https://apple-pay-gateway-cert.apple.com/paymentservices/startSession"; |
|
| 35 | + protected $applePaySessionUrl = "https://apple-pay-gateway-cert.apple.com/paymentservices/startSession"; |
|
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * Constructor |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | |
| 124 | 124 | $sKeyPass = $this->shopHelper->getConfigParam("private_key_password", PayoneConfig::METHOD_APPLEPAY, "payment"); |
| 125 | 125 | if (!empty($sKeyPass)) { |
| 126 | - $this->curl->setOption( CURLOPT_KEYPASSWD, $sKeyPass); |
|
| 126 | + $this->curl->setOption(CURLOPT_KEYPASSWD, $sKeyPass); |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | $this->curl->post($this->applePaySessionUrl, json_encode($aRequest)); |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $html = '<td class="value">'; |
| 72 | 72 | $html .= $this->_getElementHtml($element); |
| 73 | 73 | if ($element->getComment()) { |
| 74 | - $html .= '<span style="color: red;"><strong>' . $element->getComment() . '</strong></span>'; |
|
| 74 | + $html .= '<span style="color: red;"><strong>'.$element->getComment().'</strong></span>'; |
|
| 75 | 75 | } |
| 76 | 76 | $html .= '</td>'; |
| 77 | 77 | return $html; |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | private function addGenderField(&$jsLayout) |
| 111 | 111 | { |
| 112 | 112 | $options = $this->getGenderOptions() ?: []; |
| 113 | - $enabled = $this->isEnabled(); |
|
| 113 | + $enabled = $this->isEnabled(); |
|
| 114 | 114 | if (!empty($options) && $enabled) { |
| 115 | 115 | $jsLayout['gender'] = [ |
| 116 | 116 | 'component' => 'Magento_Ui/js/form/element/select', |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | */ |
| 140 | 140 | private function addBirthdayField(&$jsLayout) |
| 141 | 141 | { |
| 142 | - $enabled = $this->isEnabled(); |
|
| 142 | + $enabled = $this->isEnabled(); |
|
| 143 | 143 | if ($enabled) { |
| 144 | 144 | $jsLayout['dob'] = [ |
| 145 | 145 | 'component' => 'Magento_Ui/js/form/element/date', |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | |
| 197 | 197 | $attribute = $this->_getAttribute('gender'); |
| 198 | 198 | if ($attribute) { |
| 199 | - $options = $attribute->getOptions() ?: []; |
|
| 199 | + $options = $attribute->getOptions() ?: []; |
|
| 200 | 200 | |
| 201 | 201 | foreach ($options as $option) { |
| 202 | 202 | $optionsData[] = [ |
@@ -124,14 +124,14 @@ |
||
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | $this->addAddress($oAddress); |
| 127 | - if ($this->addressesChecked->wasAddressCheckedBefore($oAddress, $sType,true) === false) { |
|
| 127 | + if ($this->addressesChecked->wasAddressCheckedBefore($oAddress, $sType, true) === false) { |
|
| 128 | 128 | $aResponse = $this->send(); |
| 129 | 129 | if (isset($aResponse['score']) && $aResponse['score'] === 'U') { |
| 130 | 130 | $unknownDefault = $this->shopHelper->getConfigParam('unknown_value', 'creditrating', 'payone_protect'); |
| 131 | 131 | $aResponse['score'] = empty($unknownDefault) ? 'G' : $unknownDefault; |
| 132 | 132 | } |
| 133 | 133 | if ($aResponse['status'] == 'VALID') { |
| 134 | - $this->addressesChecked->addCheckedAddress($oAddress, $aResponse, $sType,true); |
|
| 134 | + $this->addressesChecked->addCheckedAddress($oAddress, $aResponse, $sType, true); |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | return $aResponse; |
@@ -384,7 +384,7 @@ |
||
| 384 | 384 | { |
| 385 | 385 | if ($this->isBNPLActive()) { |
| 386 | 386 | return [ |
| 387 | - 'environment' => [ // "t" for TEST, "p" for PROD |
|
| 387 | + 'environment' => [// "t" for TEST, "p" for PROD |
|
| 388 | 388 | PayoneConfig::METHOD_BNPL_INVOICE => $this->requestHelper->getConfigParam('mode', PayoneConfig::METHOD_BNPL_INVOICE, 'payone_payment') == 'live' ? 'p' : 't', |
| 389 | 389 | PayoneConfig::METHOD_BNPL_INSTALLMENT => $this->requestHelper->getConfigParam('mode', PayoneConfig::METHOD_BNPL_INSTALLMENT, 'payone_payment') == 'live' ? 'p' : 't', |
| 390 | 390 | PayoneConfig::METHOD_BNPL_DEBIT => $this->requestHelper->getConfigParam('mode', PayoneConfig::METHOD_BNPL_DEBIT, 'payone_payment') == 'live' ? 'p' : 't', |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function toOptionArray() |
| 25 | 25 | { |
| 26 | 26 | $aOptions = []; |
| 27 | - for($i = $this->iAllowedDaysMin; $i <= $this->iAllowedDaysMax; $i ++) { |
|
| 27 | + for ($i = $this->iAllowedDaysMin; $i <= $this->iAllowedDaysMax; $i++) { |
|
| 28 | 28 | $aOptions[] = [ |
| 29 | 29 | 'value' => $i, |
| 30 | 30 | 'label' => $i, |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | if ($sRequest) { |
| 106 | 106 | try { |
| 107 | 107 | $aRequest = unserialize($sRequest); |
| 108 | - } catch(\Exception $exc) { |
|
| 108 | + } catch (\Exception $exc) { |
|
| 109 | 109 | if ($this->toolkitHelper->isUTF8($sRequest)) { |
| 110 | 110 | $aRequest = unserialize(mb_convert_encoding($sRequest, 'ISO-8859-1', 'UTF-8')); |
| 111 | 111 | } |