Passed
Branch prestashop17-refactor-deeper (6e1fc3)
by César
04:59
created
Category
paylater.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -119,10 +119,10 @@  discard block
 block discarded – undo
119 119
         $paylaterPrivateKeyProd     = Configuration::get('PAYLATER_PRIVATE_KEY_PROD');
120 120
 
121 121
         return (
122
-            $cart->getOrderTotal() >= $paylaterMinAmount                             &&
123
-            in_array($currency->iso_code, $availableCurrencies)                                &&
122
+            $cart->getOrderTotal() >= $paylaterMinAmount &&
123
+            in_array($currency->iso_code, $availableCurrencies) &&
124 124
             (
125
-                ( $paylaterProd && $paylaterPublicKeyProd && $paylaterPrivateKeyProd) ||
125
+                ($paylaterProd && $paylaterPublicKeyProd && $paylaterPrivateKeyProd) ||
126 126
                 (!$paylaterProd && $paylaterPublicKeyTest && $paylaterPrivateKeyTest)
127 127
             )
128 128
         );
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         $orderTotal             = $cart->getOrderTotal();
161 161
         $link                   = $this->context->link;
162 162
         $paylaterProd           = Configuration::get('PAYLATER_PROD');
163
-        $paylaterMode           = self::PAYLATER_PROD_STATUS[(int) $paylaterProd];
163
+        $paylaterMode           = self::PAYLATER_PROD_STATUS[(int)$paylaterProd];
164 164
         $paylatarePublicKey     = Configuration::get('PAYLATER_PUBLIC_KEY_'.$paylaterMode);
165 165
         $paylaterDiscount       = Configuration::get('PAYLATER_DISCOUNT');
166 166
         $paylaterAddSimulator   = Configuration::get('PAYLATER_ADD_SIMULATOR');
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
             }
398 398
         }
399 399
 
400
-        return $output . $this->renderForm($settings);
400
+        return $output.$this->renderForm($settings);
401 401
     }
402 402
 
403 403
     /**
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
         $callbackUrl = $link->getModuleLink('paylater', 'notify', $query);
427 427
         $cancelUrl = $link->getPageLink('order');
428 428
         $paylaterProd = Configuration::get('PAYLATER_PROD');
429
-        $paylaterMode = self::PAYLATER_PROD_STATUS[(int) $paylaterProd];
429
+        $paylaterMode = self::PAYLATER_PROD_STATUS[(int)$paylaterProd];
430 430
         $paylaterPublicKey = Configuration::get('PAYLATER_PUBLIC_KEY_'.$paylaterMode);
431 431
         $paylaterPrivateKey = Configuration::get('PAYLATER_PRIVATE_KEY_'.$paylaterMode);
432 432
         $iframe = Configuration::get('PAYLATER_IFRAME');
Please login to merge, or discard this patch.