Passed
Pull Request — master (#427)
by
unknown
03:22
created
Model/Api/Request/Consumerscore.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,14 +124,14 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Model/ResourceModel/CheckedAddresses.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Model/Entities/ApiLog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
Model/Entities/TransactionStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
Helper/Toolkit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Helper/Connection/CurlCli.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Controller/Adminhtml/Config/Export/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.