Passed
Push — master ( e246b6...559082 )
by Hannes
03:11 queued 12s
created
Model/TransactionStatus/Forwarding.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
         try {
110 110
             $this->curl->post($sUrl, $aPostArray);
111 111
             $this->log($sUrl.' Response: '.$this->curl->getBody(), $aPostArray);
112
-        } catch(\Exception $exc) {
112
+        } catch (\Exception $exc) {
113 113
             $this->log($sUrl.' Exception: '.$exc->getMessage(), $aPostArray);
114 114
         }
115 115
     }
Please login to merge, or discard this patch.
Controller/ExternalAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         parent::__construct($context);
47 47
 
48 48
         // Fix for Magento 2.3 CsrfValidator and backwards-compatibility to prior Magento 2 versions
49
-        if(interface_exists("\Magento\Framework\App\CsrfAwareActionInterface")) {
49
+        if (interface_exists("\Magento\Framework\App\CsrfAwareActionInterface")) {
50 50
             $request = $this->getRequest();
51 51
             if ($request instanceof Http && $request->isPost()) {
52 52
                 $request->setParam('ajax', true);
Please login to merge, or discard this patch.
Model/Methods/Paydirekt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             $aParams['add_paydata[terminal_address_country]'] = $this->shopHelper->getConfigParam('country_id', 'store_information', 'general'); // CHECKEN!
84 84
             $aParams['add_paydata[terminal_address_name]'] = $this->shopHelper->getConfigParam('name', 'store_information', 'general');
85 85
             $aParams['add_paydata[terminal_address_streetname]'] = $this->shopHelper->getConfigParam('street_line1', 'store_information', 'general');
86
-            $aParams['add_paydata[terminal_address_streetnumber]'] = '';// IS THIS NECESSARY?
86
+            $aParams['add_paydata[terminal_address_streetnumber]'] = ''; // IS THIS NECESSARY?
87 87
             $aParams['add_paydata[terminal_address_zip]'] = $this->shopHelper->getConfigParam('postcode', 'store_information', 'general');
88 88
             $aParams['add_paydata[terminal_id]'] = $this->shopHelper->getConfigParam('name', 'store_information', 'general');
89 89
 
Please login to merge, or discard this patch.
Helper/HostedIframe.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@
 block discarded – undo
185 185
 
186 186
         if ($autoCcDetection) {
187 187
             // Get a flat CC type array like (e.g. ["V", "M", "J", "U", "P"]).
188
-            $availableCcTypes = array_map(function ($type) { return $type['id']; }, $this->paymentHelper->getAvailableCreditcardTypes());
188
+            $availableCcTypes = array_map(function($type) { return $type['id']; }, $this->paymentHelper->getAvailableCreditcardTypes());
189 189
 
190 190
             // Return the auto cardtype detection config with enabled CC types.
191 191
             return [
Please login to merge, or discard this patch.
Helper/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -278,7 +278,7 @@
 block discarded – undo
278 278
     public function getOldAddressStatus(AddressInterface $oAddress, $blIsCreditrating = true)
279 279
     {
280 280
         $sStatus = $this->getStatusFromPreviousQuoteAddress($oAddress, $blIsCreditrating);
281
-        if(empty($sStatus) && $blIsCreditrating === true && $this->getConfigParam('integration_event', 'creditrating', 'payone_protect') == 'after_payment') {
281
+        if (empty($sStatus) && $blIsCreditrating === true && $this->getConfigParam('integration_event', 'creditrating', 'payone_protect') == 'after_payment') {
282 282
             $sStatus = $this->getScoreFromCheckedAddresses($oAddress);
283 283
         }
284 284
         return $sStatus;
Please login to merge, or discard this patch.
Model/Source/CreditcardTypes.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@
 block discarded – undo
39 39
      * @var array
40 40
      */
41 41
     protected static $aTypes = [
42
-        'visa'              => array('name' => 'Visa',                  'cardtype' => 'V', 'cvc_length' => 3),
43
-        'mastercard'        => array('name' => 'Mastercard',            'cardtype' => 'M', 'cvc_length' => 3),
44
-        'americanexpress'   => array('name' => 'American Express',      'cardtype' => 'A', 'cvc_length' => 4),
45
-        'dinersclub'        => array('name' => 'Diners Club',           'cardtype' => 'D', 'cvc_length' => 3),
46
-        'jcb'               => array('name' => 'JCB',                   'cardtype' => 'J', 'cvc_length' => 3),
42
+        'visa'              => array('name' => 'Visa', 'cardtype' => 'V', 'cvc_length' => 3),
43
+        'mastercard'        => array('name' => 'Mastercard', 'cardtype' => 'M', 'cvc_length' => 3),
44
+        'americanexpress'   => array('name' => 'American Express', 'cardtype' => 'A', 'cvc_length' => 4),
45
+        'dinersclub'        => array('name' => 'Diners Club', 'cardtype' => 'D', 'cvc_length' => 3),
46
+        'jcb'               => array('name' => 'JCB', 'cardtype' => 'J', 'cvc_length' => 3),
47 47
         'maestroint'        => array('name' => 'Maestro International', 'cardtype' => 'O', 'cvc_length' => 3),
48
-        'cartebleue'        => array('name' => 'Carte Bleue',           'cardtype' => 'B', 'cvc_length' => 3),
48
+        'cartebleue'        => array('name' => 'Carte Bleue', 'cardtype' => 'B', 'cvc_length' => 3),
49 49
     ];
50 50
 
51 51
     /**
Please login to merge, or discard this patch.
Model/Plugins/MethodList.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     protected function removeBannedPaymentMethods($aPaymentMethods, Quote $oQuote)
206 206
     {
207 207
         $aBannedMethos = $this->getBannedPaymentMethods($oQuote);
208
-        for($i = 0; $i < count($aPaymentMethods); $i++) {
208
+        for ($i = 0; $i < count($aPaymentMethods); $i++) {
209 209
             $sCode = $aPaymentMethods[$i]->getCode();
210 210
             if (array_key_exists($sCode, $aBannedMethos) !== false) {
211 211
                 $iBannedUntil = strtotime($aBannedMethos[$sCode]);
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         $aWhitelist = $this->checkoutSession->getPayonePaymentWhitelist();
229 229
         if (!empty($aWhitelist)) {
230 230
             $iCount = count($aPaymentMethods);
231
-            for($i = 0; $i < $iCount; $i++) {
231
+            for ($i = 0; $i < $iCount; $i++) {
232 232
                 if (array_search($aPaymentMethods[$i]->getCode(), $aWhitelist) === false) {
233 233
                     unset($aPaymentMethods[$i]);
234 234
                 }
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      */
246 246
     public function removeAmazonPay($aPaymentMethods)
247 247
     {
248
-        for($i = 0; $i < count($aPaymentMethods); $i++) {
248
+        for ($i = 0; $i < count($aPaymentMethods); $i++) {
249 249
             if (isset($aPaymentMethods[$i]) && $aPaymentMethods[$i]->getCode() == PayoneConfig::METHOD_AMAZONPAY) {
250 250
                 unset($aPaymentMethods[$i]);
251 251
             }
Please login to merge, or discard this patch.