Passed
Pull Request — master (#23)
by
unknown
03:33
created
WC_Pagantis.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -33,21 +33,21 @@  discard block
 block discarded – undo
33 33
     const ORDERS_TABLE = 'posts';
34 34
 
35 35
     public $defaultConfigs = array('PAGANTIS_TITLE'=>'Instant Financing',
36
-                                   'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'pgSDK.simulator.types.SIMPLE',
37
-                                   'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'pgSDK.simulator.skins.BLUE',
38
-                                   'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons',
39
-                                   'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3,
40
-                                   'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12,
41
-                                   'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default',
42
-                                   'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'pgSDK.simulator.positions.INNER',
43
-                                   'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'a:3:{i:0;s:48:"div.summary *:not(del)>.woocommerce-Price-amount";i:1;s:54:"div.entry-summary *:not(del)>.woocommerce-Price-amount";i:2;s:36:"*:not(del)>.woocommerce-Price-amount";}',
44
-                                   'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'a:2:{i:0;s:22:"div.quantity input.qty";i:1;s:18:"div.quantity>input";}',
45
-                                   'PAGANTIS_FORM_DISPLAY_TYPE'=>0,
46
-                                   'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1,
47
-                                   'PAGANTIS_URL_OK'=>'',
48
-                                   'PAGANTIS_URL_KO'=>'',
49
-                                   'PAGANTIS_ALLOWED_COUNTRIES' => 'a:2:{i:0;s:2:"es";i:1;s:2:"it";}',
50
-                                   'PAGANTIS_PROMOTION_EXTRA' => '<p>Finance this product <span class="pmt-no-interest">without interest!</span></p>'
36
+                                    'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'pgSDK.simulator.types.SIMPLE',
37
+                                    'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'pgSDK.simulator.skins.BLUE',
38
+                                    'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons',
39
+                                    'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3,
40
+                                    'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12,
41
+                                    'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default',
42
+                                    'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'pgSDK.simulator.positions.INNER',
43
+                                    'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'=>'a:3:{i:0;s:48:"div.summary *:not(del)>.woocommerce-Price-amount";i:1;s:54:"div.entry-summary *:not(del)>.woocommerce-Price-amount";i:2;s:36:"*:not(del)>.woocommerce-Price-amount";}',
44
+                                    'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'a:2:{i:0;s:22:"div.quantity input.qty";i:1;s:18:"div.quantity>input";}',
45
+                                    'PAGANTIS_FORM_DISPLAY_TYPE'=>0,
46
+                                    'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1,
47
+                                    'PAGANTIS_URL_OK'=>'',
48
+                                    'PAGANTIS_URL_KO'=>'',
49
+                                    'PAGANTIS_ALLOWED_COUNTRIES' => 'a:2:{i:0;s:2:"es";i:1;s:2:"it";}',
50
+                                    'PAGANTIS_PROMOTION_EXTRA' => '<p>Finance this product <span class="pmt-no-interest">without interest!</span></p>'
51 51
     );
52 52
 
53 53
     /** @var Array $extraConfig */
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
         if ($file == plugin_basename(__FILE__)) {
357 357
             $links[] = '<a href="'.WcPagantis::GIT_HUB_URL.'" target="_blank">'.__('Documentation', 'pagantis').'</a>';
358 358
             $links[] = '<a href="'.WcPagantis::PAGANTIS_DOC_URL.'" target="_blank">'.
359
-                       __('API documentation', 'pagantis').'</a>';
359
+                        __('API documentation', 'pagantis').'</a>';
360 360
             $links[] = '<a href="'.WcPagantis::SUPPORT_EML.'">'.__('Support', 'pagantis').'</a>';
361 361
 
362 362
             return $links;
Please login to merge, or discard this patch.
controllers/paymentController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -277,9 +277,9 @@
 block discarded – undo
277 277
                 if ($promotedProduct == 'true') {
278 278
                     $promotedAmount+=$product->getAmount();
279 279
                     $promotedMessage = 'Promoted Item: ' . $product->getDescription() .
280
-                                       ' Price: ' . $item['line_total'] .
281
-                                       ' Qty: ' . $product->getQuantity() .
282
-                                       ' Item ID: ' . $item['id_product'];
280
+                                        ' Price: ' . $item['line_total'] .
281
+                                        ' Qty: ' . $product->getQuantity() .
282
+                                        ' Item ID: ' . $item['id_product'];
283 283
                     $metadataOrder->addMetadata('promotedProduct', $promotedMessage);
284 284
                 }
285 285
             }
Please login to merge, or discard this patch.