@@ -124,7 +124,7 @@ |
||
124 | 124 | $sAddress .= $sParamValue; |
125 | 125 | } |
126 | 126 | } |
127 | - $sHash = hash("md5",$sAddress); // generate hash from address for identification |
|
127 | + $sHash = hash("md5", $sAddress); // generate hash from address for identification |
|
128 | 128 | |
129 | 129 | return $sHash; |
130 | 130 | } |
@@ -111,7 +111,7 @@ |
||
111 | 111 | if ($sRequest) { |
112 | 112 | try { |
113 | 113 | $aRequest = $this->serialize->unserialize($sRequest); |
114 | - } catch(\Exception $exc) { |
|
114 | + } catch (\Exception $exc) { |
|
115 | 115 | if ($this->toolkitHelper->isUTF8($sRequest)) { |
116 | 116 | $aRequest = $this->serialize->unserialize(utf8_decode($sRequest)); |
117 | 117 | } |
@@ -113,7 +113,7 @@ |
||
113 | 113 | if ($sRequest) { |
114 | 114 | try { |
115 | 115 | $aRequest = $this->serialize->unserialize($sRequest); |
116 | - } catch(\Exception $exc) { |
|
116 | + } catch (\Exception $exc) { |
|
117 | 117 | if ($this->toolkitHelper->isUTF8($sRequest)) { |
118 | 118 | $aRequest = $this->serialize->unserialize(utf8_decode($sRequest)); |
119 | 119 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $this->aParameters = []; |
151 | 151 | $this->addParameter('mid', $this->shopHelper->getConfigParam('mid', 'global', 'payone_general', $this->storeCode)); // PayOne Merchant ID |
152 | 152 | $this->addParameter('portalid', $this->shopHelper->getConfigParam('portalid', 'global', 'payone_general', $this->storeCode)); // PayOne Portal ID |
153 | - $this->addParameter('key', hash("md5",$this->shopHelper->getConfigParam('key', 'global', 'payone_general', $this->storeCode))); // PayOne Portal Key |
|
153 | + $this->addParameter('key', hash("md5", $this->shopHelper->getConfigParam('key', 'global', 'payone_general', $this->storeCode))); // PayOne Portal Key |
|
154 | 154 | $this->addParameter('encoding', $this->environmentHelper->getEncoding()); // Encoding |
155 | 155 | $this->addParameter('integrator_name', 'Magento2'); // Shop-system |
156 | 156 | $this->addParameter('integrator_version', $this->shopHelper->getMagentoVersion()); // Shop version |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | $sCustomConfig = $oPayment->getCustomConfigParam($sConfigName); // get custom config param |
259 | 259 | if (!empty($sCustomConfig)) { // only add if the param is configured |
260 | 260 | if ($sConfigName == 'key') { |
261 | - $this->addParameter($sParamName, hash("md5",$sCustomConfig)); // key isn't hashed in db |
|
261 | + $this->addParameter($sParamName, hash("md5", $sCustomConfig)); // key isn't hashed in db |
|
262 | 262 | } else { |
263 | 263 | $this->addParameter($sParamName, $sCustomConfig); // add custom param to request |
264 | 264 | } |
@@ -104,7 +104,7 @@ |
||
104 | 104 | { |
105 | 105 | $aKeyValues = $this->getAllPayoneSecurityKeys(); |
106 | 106 | foreach ($aKeyValues as $sConfigKey) { |
107 | - if (hash("md5",$sConfigKey) == $sKey) { |
|
107 | + if (hash("md5", $sConfigKey) == $sKey) { |
|
108 | 108 | return true; |
109 | 109 | } |
110 | 110 | } |
@@ -82,7 +82,7 @@ |
||
82 | 82 | try { |
83 | 83 | $sResponse = $this->shell->execute($sCommand); |
84 | 84 | $aResponse = explode(PHP_EOL, $sResponse); |
85 | - } catch(\Exception $exc) { |
|
85 | + } catch (\Exception $exc) { |
|
86 | 86 | $aResponse = ["connection-type: 2 - errormessage=curl error(".$exc->getMessage().")"]; |
87 | 87 | } |
88 | 88 | return $aResponse; |
@@ -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') . "_" . hash("md5", $sXml) . ".xml\"", true); |
|
90 | + $oResultRaw->setHeader("Content-Disposition", "attachment; filename=\"payone_config_export".date('Y-m-d H-i-s')."_".hash("md5", $sXml).".xml\"", true); |
|
91 | 91 | $oResultRaw->setContents($sXml); |
92 | 92 | } |
93 | 93 | } catch (\Exception $e) { |