Passed
Pull Request — master (#48)
by
unknown
04:00
created
WC_Pagantis.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -38,28 +38,28 @@  discard block
 block discarded – undo
38 38
     const ORDERS_TABLE = 'posts';
39 39
 
40 40
     public $defaultConfigs = array(
41
-       'PAGANTIS_TITLE'=>'Pago en cuotas',
42
-       'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'sdk.simulator.types.PRODUCT_PAGE',
43
-       'PAGANTIS_SIMULATOR_DISPLAY_TYPE_CHECKOUT'=>'sdk.simulator.types.CHECKOUT_PAGE',
44
-       'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'sdk.simulator.skins.BLUE',
45
-       'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons',
46
-       'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3,
47
-       'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12,
48
-       'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default',
49
-       'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'sdk.simulator.positions.INNER',
50
-       '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";}',
51
-       'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'a:2:{i:0;s:22:"div.quantity input.qty";i:1;s:18:"div.quantity>input";}',
52
-       'PAGANTIS_FORM_DISPLAY_TYPE'=>0,
53
-       'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1,
54
-       'PAGANTIS_DISPLAY_MAX_AMOUNT'=>0,
55
-       'PAGANTIS_URL_OK'=>'',
56
-       'PAGANTIS_URL_KO'=>'',
57
-       'PAGANTIS_ALLOWED_COUNTRIES' => 'a:3:{i:0;s:2:"es";i:1;s:2:"it";i:2;s:2:"fr";}',
58
-       'PAGANTIS_PROMOTION_EXTRA' => '<p>Finance this product <span class="pg-no-interest">without interest!</span></p>',
59
-       'PAGANTIS_SIMULATOR_THOUSANDS_SEPARATOR' => '.',
60
-       'PAGANTIS_SIMULATOR_DECIMAL_SEPARATOR' => ',',
61
-       'PAGANTIS_SIMULATOR_DISPLAY_SITUATION' => 'default',
62
-       'PAGANTIS_SIMULATOR_SELECTOR_VARIATION' => 'default'
41
+        'PAGANTIS_TITLE'=>'Pago en cuotas',
42
+        'PAGANTIS_SIMULATOR_DISPLAY_TYPE'=>'sdk.simulator.types.PRODUCT_PAGE',
43
+        'PAGANTIS_SIMULATOR_DISPLAY_TYPE_CHECKOUT'=>'sdk.simulator.types.CHECKOUT_PAGE',
44
+        'PAGANTIS_SIMULATOR_DISPLAY_SKIN'=>'sdk.simulator.skins.BLUE',
45
+        'PAGANTIS_SIMULATOR_DISPLAY_POSITION'=>'hookDisplayProductButtons',
46
+        'PAGANTIS_SIMULATOR_START_INSTALLMENTS'=>3,
47
+        'PAGANTIS_SIMULATOR_MAX_INSTALLMENTS'=>12,
48
+        'PAGANTIS_SIMULATOR_CSS_POSITION_SELECTOR'=>'default',
49
+        'PAGANTIS_SIMULATOR_DISPLAY_CSS_POSITION'=>'sdk.simulator.positions.INNER',
50
+        '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";}',
51
+        'PAGANTIS_SIMULATOR_CSS_QUANTITY_SELECTOR'=>'a:2:{i:0;s:22:"div.quantity input.qty";i:1;s:18:"div.quantity>input";}',
52
+        'PAGANTIS_FORM_DISPLAY_TYPE'=>0,
53
+        'PAGANTIS_DISPLAY_MIN_AMOUNT'=>1,
54
+        'PAGANTIS_DISPLAY_MAX_AMOUNT'=>0,
55
+        'PAGANTIS_URL_OK'=>'',
56
+        'PAGANTIS_URL_KO'=>'',
57
+        'PAGANTIS_ALLOWED_COUNTRIES' => 'a:3:{i:0;s:2:"es";i:1;s:2:"it";i:2;s:2:"fr";}',
58
+        'PAGANTIS_PROMOTION_EXTRA' => '<p>Finance this product <span class="pg-no-interest">without interest!</span></p>',
59
+        'PAGANTIS_SIMULATOR_THOUSANDS_SEPARATOR' => '.',
60
+        'PAGANTIS_SIMULATOR_DECIMAL_SEPARATOR' => ',',
61
+        'PAGANTIS_SIMULATOR_DISPLAY_SITUATION' => 'default',
62
+        'PAGANTIS_SIMULATOR_SELECTOR_VARIATION' => 'default'
63 63
     );
64 64
 
65 65
     /** @var array $extraConfig */
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
         if ($file == plugin_basename(__FILE__)) {
427 427
             $links[] = '<a href="'.GIT_HUB_URL.'" target="_blank">'.__('Documentation', 'pagantis').'</a>';
428 428
             $links[] = '<a href="'.PAGANTIS_DOC_URL.'" target="_blank">'.
429
-                       __('API documentation', 'pagantis').'</a>';
429
+                        __('API documentation', 'pagantis').'</a>';
430 430
             $links[] = '<a href="'.SUPPORT_EML.'">'.__('Support', 'pagantis').'</a>';
431 431
 
432 432
             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
@@ -299,9 +299,9 @@
 block discarded – undo
299 299
                 if ($promotedProduct == 'true') {
300 300
                     $promotedAmount+=$product->getAmount();
301 301
                     $promotedMessage = 'Promoted Item: ' . $wcProduct->get_name() .
302
-                                       ' - Price: ' . $item->get_total() .
303
-                                       ' - Qty: ' . $product->getQuantity() .
304
-                                       ' - Item ID: ' . $item['id_product'];
302
+                                        ' - Price: ' . $item->get_total() .
303
+                                        ' - Qty: ' . $product->getQuantity() .
304
+                                        ' - Item ID: ' . $item['id_product'];
305 305
                     $promotedMessage = substr($promotedMessage, 0, 999);
306 306
                     $metadataOrder->addMetadata('promotedProduct', $promotedMessage);
307 307
                 }
Please login to merge, or discard this patch.
controllers/notifyController.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -198,10 +198,10 @@
 block discarded – undo
198 198
 
199 199
         if (!$this->woocommerceOrder->has_status($isValidStatus)) { // TO CONFIRM
200 200
             $logMessage = "WARNING checkMerchantOrderStatus." .
201
-                          " Merchant order id:".$this->woocommerceOrder->get_id().
202
-                          " Merchant order status:".$this->woocommerceOrder->get_status().
203
-                          " Pagantis order id:".$this->pagantisOrder->getStatus().
204
-                          " Pagantis order status:".$this->pagantisOrder->getId();
201
+                            " Merchant order id:".$this->woocommerceOrder->get_id().
202
+                            " Merchant order status:".$this->woocommerceOrder->get_status().
203
+                            " Pagantis order id:".$this->pagantisOrder->getStatus().
204
+                            " Pagantis order status:".$this->pagantisOrder->getId();
205 205
 
206 206
             $this->insertLog(null, $logMessage);
207 207
             $this->woocommerceOrder->add_order_note($logMessage);
Please login to merge, or discard this patch.