Passed
Push — EXTRACT_CLASSES ( a2ff75...ae6b5c )
by Rafael
34:15
created
public/htdocs/admin/order.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
 $action = GETPOST('action', 'aZ09');
52 52
 $value = GETPOST('value', 'alpha');
53
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
53
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
54 54
 
55 55
 $label = GETPOST('label', 'alpha');
56 56
 $scandir = GETPOST('scan_dir', 'alpha');
@@ -689,7 +689,7 @@  discard block
 block discarded – undo
689 689
 
690 690
 // Disallow to classify billed an order without invoice, only if module invoice is enable
691 691
 if (isModEnabled('invoice')) {
692
-    print '<tr class="oddeven"><td>' . $langs->trans("InvoiceClassifyBilledSupplierOrderWithoutInvoice") . '&nbsp;' ;
692
+    print '<tr class="oddeven"><td>' . $langs->trans("InvoiceClassifyBilledSupplierOrderWithoutInvoice") . '&nbsp;';
693 693
     print $form->textwithpicto('', $langs->trans("InvoiceClassifyBilledSupplierOrderWithoutInvoiceHelp"), 1, 'help') . '</td>';
694 694
     print '<td class="left" colspan="2">';
695 695
     print ajax_constantonoff('ORDER_DISABLE_CLASSIFY_BILLED_FROM_ORDER');
Please login to merge, or discard this patch.
public/htdocs/admin/tools/purge.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
  *      \brief      Page to purge files (temporary or not)
23 23
  */
24 24
 
25
-if (! defined('CSRFCHECK_WITH_TOKEN')) {
26
-    define('CSRFCHECK_WITH_TOKEN', '1');        // Force use of CSRF protection with tokens even for GET
25
+if (!defined('CSRFCHECK_WITH_TOKEN')) {
26
+    define('CSRFCHECK_WITH_TOKEN', '1'); // Force use of CSRF protection with tokens even for GET
27 27
 }
28 28
 
29 29
 // Load Dolibarr environment
Please login to merge, or discard this patch.
public/htdocs/admin/tools/dolibarr_import.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
  *      \brief      Page to import database
24 24
  */
25 25
 
26
-if (! defined('CSRFCHECK_WITH_TOKEN')) {
27
-    define('CSRFCHECK_WITH_TOKEN', '1');        // Force use of CSRF protection with tokens even for GET
26
+if (!defined('CSRFCHECK_WITH_TOKEN')) {
27
+    define('CSRFCHECK_WITH_TOKEN', '1'); // Force use of CSRF protection with tokens even for GET
28 28
 }
29 29
 
30 30
 // Load Dolibarr environment
Please login to merge, or discard this patch.
public/htdocs/admin/tools/update.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
  *      \brief      Page to make a Dolibarr online upgrade
24 24
  */
25 25
 
26
-if (! defined('CSRFCHECK_WITH_TOKEN')) {
27
-    define('CSRFCHECK_WITH_TOKEN', '1');        // Force use of CSRF protection with tokens even for GET
26
+if (!defined('CSRFCHECK_WITH_TOKEN')) {
27
+    define('CSRFCHECK_WITH_TOKEN', '1'); // Force use of CSRF protection with tokens even for GET
28 28
 }
29 29
 
30 30
 // Load Dolibarr environment
Please login to merge, or discard this patch.
public/htdocs/admin/tools/listsessions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
  *      \brief      List of PHP sessions
24 24
  */
25 25
 
26
-if (! defined('CSRFCHECK_WITH_TOKEN')) {
27
-    define('CSRFCHECK_WITH_TOKEN', '1');        // Force use of CSRF protection with tokens even for GET
26
+if (!defined('CSRFCHECK_WITH_TOKEN')) {
27
+    define('CSRFCHECK_WITH_TOKEN', '1'); // Force use of CSRF protection with tokens even for GET
28 28
 }
29 29
 
30 30
 // Load Dolibarr environment
Please login to merge, or discard this patch.
public/htdocs/admin/tools/listevents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 }
45 45
 
46 46
 // Load translation files required by the page
47
-$langs->loadLangs(array("companies", "admin", "users", "other","withdrawals"));
47
+$langs->loadLangs(array("companies", "admin", "users", "other", "withdrawals"));
48 48
 
49 49
 // Load variable for pagination
50 50
 $limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit;
Please login to merge, or discard this patch.
public/htdocs/admin/tools/export_files.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
  *      \brief      Page to export documents into a compressed file
25 25
  */
26 26
 
27
-if (! defined('CSRFCHECK_WITH_TOKEN')) {
28
-    define('CSRFCHECK_WITH_TOKEN', '1');        // Force use of CSRF protection with tokens even for GET
27
+if (!defined('CSRFCHECK_WITH_TOKEN')) {
28
+    define('CSRFCHECK_WITH_TOKEN', '1'); // Force use of CSRF protection with tokens even for GET
29 29
 }
30 30
 
31 31
 // Load Dolibarr environment
Please login to merge, or discard this patch.
public/htdocs/admin/agenda_reminder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
 $action = GETPOST('action', 'aZ09');
46 46
 $value = GETPOST('value', 'alpha');
47
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
47
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
48 48
 
49 49
 $param = GETPOST('param', 'alpha');
50 50
 $cancel = GETPOST('cancel', 'alpha');
Please login to merge, or discard this patch.
public/htdocs/admin/dolistore/class/PSWebServiceLibrary.class.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
 
402 402
         $request = $this->executeRequest($url, array(CURLOPT_CUSTOMREQUEST => 'GET'));
403 403
 
404
-        $this->checkStatusCode($request);// check the response validity
404
+        $this->checkStatusCode($request); // check the response validity
405 405
 
406 406
         return $this->parseXML($request['response']);
407 407
     }
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
             throw new PrestaShopWebserviceException('Bad parameters given');
441 441
         }
442 442
         $request = $this->executeRequest($url, array(CURLOPT_CUSTOMREQUEST => 'HEAD', CURLOPT_NOBODY => true));
443
-        $this->checkStatusCode($request);// check the response validity
443
+        $this->checkStatusCode($request); // check the response validity
444 444
         return $request['header'];
445 445
     }
446 446
 
@@ -463,8 +463,7 @@  discard block
 block discarded – undo
463 463
         if (isset($options['url'])) {
464 464
             $url = $options['url'];
465 465
         } elseif ((isset($options['resource'], $options['id']) || isset($options['url'])) && $options['putXml']) {
466
-            $url = (isset($options['url']) ? $options['url'] :
467
-                $this->url . '/api/' . $options['resource'] . '/' . $options['id']);
466
+            $url = (isset($options['url']) ? $options['url'] : $this->url . '/api/' . $options['resource'] . '/' . $options['id']);
468 467
             $xml = $options['putXml'];
469 468
             if (isset($options['id_shop'])) {
470 469
                 $url .= '&id_shop=' . $options['id_shop'];
@@ -477,7 +476,7 @@  discard block
 block discarded – undo
477 476
         }
478 477
 
479 478
         $request = $this->executeRequest($url, array(CURLOPT_CUSTOMREQUEST => 'PUT', CURLOPT_POSTFIELDS => $xml));
480
-        $this->checkStatusCode($request);// check the response validity
479
+        $this->checkStatusCode($request); // check the response validity
481 480
         return $this->parseXML($request['response']);
482 481
     }
483 482
 
@@ -528,7 +527,7 @@  discard block
 block discarded – undo
528 527
         }
529 528
 
530 529
         $request = $this->executeRequest($url, array(CURLOPT_CUSTOMREQUEST => 'DELETE'));
531
-        $this->checkStatusCode($request);// check the response validity
530
+        $this->checkStatusCode($request); // check the response validity
532 531
         return true;
533 532
     }
534 533
 }
Please login to merge, or discard this patch.