Passed
Pull Request — master (#75)
by pablo
02:36
created
controllers/notifyController.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -192,10 +192,10 @@
 block discarded – undo
192 192
 
193 193
         if (!$this->woocommerceOrder->has_status($isValidStatus)) { // TO CONFIRM
194 194
             $logMessage = "WARNING checkMerchantOrderStatus." .
195
-                          " Merchant order id:".$this->woocommerceOrder->get_id().
196
-                          " Merchant order status:".$this->woocommerceOrder->get_status().
197
-                          " Pagantis order id:".$this->pagantisOrder->getStatus().
198
-                          " Pagantis order status:".$this->pagantisOrder->getId();
195
+                            " Merchant order id:".$this->woocommerceOrder->get_id().
196
+                            " Merchant order status:".$this->woocommerceOrder->get_status().
197
+                            " Pagantis order id:".$this->pagantisOrder->getStatus().
198
+                            " Pagantis order status:".$this->pagantisOrder->getId();
199 199
 
200 200
             $this->insertLog(null, $logMessage);
201 201
             $this->woocommerceOrder->add_order_note($logMessage);
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
@@ -282,9 +282,9 @@
 block discarded – undo
282 282
                 if ($promotedProduct == 'true') {
283 283
                     $promotedAmount+=$product->getAmount();
284 284
                     $promotedMessage = 'Promoted Item: ' . $wcProduct->get_name() .
285
-                                       ' - Price: ' . $item->get_total() .
286
-                                       ' - Qty: ' . $product->getQuantity() .
287
-                                       ' - Item ID: ' . $item['id_product'];
285
+                                        ' - Price: ' . $item->get_total() .
286
+                                        ' - Qty: ' . $product->getQuantity() .
287
+                                        ' - Item ID: ' . $item['id_product'];
288 288
                     $promotedMessage = substr($promotedMessage, 0, 999);
289 289
                     $metadataOrder->addMetadata('promotedProduct', $promotedMessage);
290 290
                 }
Please login to merge, or discard this patch.
controllers/paymentController4x.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -245,9 +245,9 @@  discard block
 block discarded – undo
245 245
                 if ($promotedProduct == 'true') {
246 246
                     $promotedAmount+=$product->getAmount();
247 247
                     $promotedMessage = 'Promoted Item: ' . $wcProduct->get_name() .
248
-                                       ' - Price: ' . $item->get_total() .
249
-                                       ' - Qty: ' . $product->getQuantity() .
250
-                                       ' - Item ID: ' . $item['id_product'];
248
+                                        ' - Price: ' . $item->get_total() .
249
+                                        ' - Qty: ' . $product->getQuantity() .
250
+                                        ' - Item ID: ' . $item['id_product'];
251 251
                     $promotedMessage = substr($promotedMessage, 0, 999);
252 252
                     $metadataOrder->addMetadata('promotedProduct', $promotedMessage);
253 253
                 }
@@ -263,9 +263,9 @@  discard block
 block discarded – undo
263 263
             $orderConfigurationUrls = new Urls();
264 264
             $cancelUrl = $this->getKoUrl($order);
265 265
             $callback_arg = array('wc-api'=>'wcpagantisgateway',
266
-                                  'key'=>$order->get_order_key(),
267
-                                  'order-received'=>$order->get_id(),
268
-                                  'origin' => ''
266
+                                    'key'=>$order->get_order_key(),
267
+                                    'order-received'=>$order->get_id(),
268
+                                    'origin' => ''
269 269
             );
270 270
 
271 271
             $callback_arg_user = $callback_arg;
Please login to merge, or discard this patch.
WC_Pagantis.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -337,12 +337,12 @@  discard block
 block discarded – undo
337 337
             updateThousandsSeparatorDbConfig();
338 338
         }
339 339
 	    
340
-	//Adapting product price selector < v8.6.7
340
+    //Adapting product price selector < v8.6.7
341 341
         $tableName = $wpdb->prefix.self::CONFIG_TABLE;
342 342
         $query = "select * from $tableName where config='PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'";
343 343
         $results = $wpdb->get_results($query, ARRAY_A);
344 344
         if (count($results) == 0) {
345
-		$wpdb->update($tableName, array('value' => 'a:4:{i:0;s:52:"div.summary *:not(del)>.woocommerce-Price-amount bdi";i:1;s:48:"div.summary *:not(del)>.woocommerce-Price-amount";i:2;s:54:"div.entry-summary *:not(del)>.woocommerce-Price-amount";i:3;s:36:"*:not(del)>.woocommerce-Price-amount";}'), array('config' => 'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'), array('%s'), array('%s'));
345
+        $wpdb->update($tableName, array('value' => 'a:4:{i:0;s:52:"div.summary *:not(del)>.woocommerce-Price-amount bdi";i:1;s:48:"div.summary *:not(del)>.woocommerce-Price-amount";i:2;s:54:"div.entry-summary *:not(del)>.woocommerce-Price-amount";i:3;s:36:"*:not(del)>.woocommerce-Price-amount";}'), array('config' => 'PAGANTIS_SIMULATOR_CSS_PRICE_SELECTOR'), array('%s'), array('%s'));
346 346
         }
347 347
 	    
348 348
 	    
@@ -623,7 +623,7 @@  discard block
 block discarded – undo
623 623
         if ($file == plugin_basename(__FILE__)) {
624 624
             $links[] = '<a href="'.WcPagantis::GIT_HUB_URL.'" target="_blank">'.__('Documentation', 'pagantis').'</a>';
625 625
             $links[] = '<a href="'.WcPagantis::PAGANTIS_DOC_URL.'" target="_blank">'.
626
-                       __('API documentation', 'pagantis').'</a>';
626
+                        __('API documentation', 'pagantis').'</a>';
627 627
             $links[] = '<a href="'.WcPagantis::SUPPORT_EML.'">'.__('Support', 'pagantis').'</a>';
628 628
 
629 629
             return $links;
Please login to merge, or discard this patch.