Passed
Push — main ( f1540e...02d90d )
by Rafael
45:15
created
htdocs/multicurrency/multicurrency_rate.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
 
546 546
     $i = 0;
547 547
     $totalarray = array();
548
-    $totalarray['nbfield'] = 0;     // Prevents PHP warning
548
+    $totalarray['nbfield'] = 0; // Prevents PHP warning
549 549
     while ($i < min($num, $limit)) {
550 550
         $obj = $db->fetch_object($resql);
551 551
 
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
                 print ' - <span class="opacitymedium">' . $obj->name . '</span>';
606 606
                 print "</td>\n";
607 607
 
608
-                if (! $i) {
608
+                if (!$i) {
609 609
                     $totalarray['nbfield']++;
610 610
                 }
611 611
             }
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
                 print '<td class="tdoverflowmax200">';
616 616
                 print $obj->rate;
617 617
                 print "</td>\n";
618
-                if (! $i) {
618
+                if (!$i) {
619 619
                     $totalarray['nbfield']++;
620 620
                 }
621 621
             }
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
                 print '<td class="tdoverflowmax200">';
626 626
                 print $obj->rate_indirect;
627 627
                 print "</td>\n";
628
-                if (! $i) {
628
+                if (!$i) {
629 629
                     $totalarray['nbfield']++;
630 630
                 }
631 631
             }
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
 
634 634
             // Fields from hook
635 635
             $parameters = array('arrayfields' => $arrayfields, 'obj' => $obj);
636
-            $reshook = $hookmanager->executeHooks('printFieldListValue', $parameters);    // Note that $action and $object may have been modified by hook
636
+            $reshook = $hookmanager->executeHooks('printFieldListValue', $parameters); // Note that $action and $object may have been modified by hook
637 637
             print $hookmanager->resPrint;
638 638
 
639 639
             // Action
Please login to merge, or discard this patch.
htdocs/supplier_proposal/list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 $search_date_endday = GETPOSTINT('search_date_endday');
77 77
 $search_date_endmonth = GETPOSTINT('search_date_endmonth');
78 78
 $search_date_endyear = GETPOSTINT('search_date_endyear');
79
-$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);   // Use tzserver
79
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
80 80
 $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear);
81 81
 $search_date_valid_startday = GETPOSTINT('search_date_valid_startday');
82 82
 $search_date_valid_startmonth = GETPOSTINT('search_date_valid_startmonth');
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 $search_date_valid_endday = GETPOSTINT('search_date_valid_endday');
85 85
 $search_date_valid_endmonth = GETPOSTINT('search_date_valid_endmonth');
86 86
 $search_date_valid_endyear = GETPOSTINT('search_date_valid_endyear');
87
-$search_date_valid_start = dol_mktime(0, 0, 0, $search_date_valid_startmonth, $search_date_valid_startday, $search_date_valid_startyear);   // Use tzserver
87
+$search_date_valid_start = dol_mktime(0, 0, 0, $search_date_valid_startmonth, $search_date_valid_startday, $search_date_valid_startyear); // Use tzserver
88 88
 $search_date_valid_end = dol_mktime(23, 59, 59, $search_date_valid_endmonth, $search_date_valid_endday, $search_date_valid_endyear);
89 89
 $search_type_thirdparty = GETPOSTINT("search_type_thirdparty");
90 90
 $search_montant_ht = GETPOST('search_montant_ht', 'alpha');
Please login to merge, or discard this patch.
htdocs/supplier_proposal/card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -596,7 +596,7 @@
 block discarded – undo
596 596
             $idprod = GETPOSTINT('idprod');
597 597
         }
598 598
 
599
-        $tva_tx = (GETPOST('tva_tx') ? GETPOST('tva_tx') : 0);      // Can be '1.2' or '1.2 (CODE)'
599
+        $tva_tx = (GETPOST('tva_tx') ? GETPOST('tva_tx') : 0); // Can be '1.2' or '1.2 (CODE)'
600 600
 
601 601
         $price_ht = price2num(GETPOST('price_ht'), 'MU', 2);
602 602
         $price_ht_devise = price2num(GETPOST('multicurrency_price_ht'), 'CU', 2);
Please login to merge, or discard this patch.
htdocs/ecm/dir_add_card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
  *  \brief      Main page for ECM section area
25 25
  */
26 26
 
27
-if (! defined('DISABLE_JS_GRAHP')) {
27
+if (!defined('DISABLE_JS_GRAHP')) {
28 28
     define('DISABLE_JS_GRAPH', 1);
29 29
 }
30 30
 
Please login to merge, or discard this patch.
htdocs/reception/list.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 $search_date_delivery_endday = GETPOSTINT('search_date_delivery_endday');
67 67
 $search_date_delivery_endmonth = GETPOSTINT('search_date_delivery_endmonth');
68 68
 $search_date_delivery_endyear = GETPOSTINT('search_date_delivery_endyear');
69
-$search_date_delivery_start = dol_mktime(0, 0, 0, $search_date_delivery_startmonth, $search_date_delivery_startday, $search_date_delivery_startyear);   // Use tzserver
69
+$search_date_delivery_start = dol_mktime(0, 0, 0, $search_date_delivery_startmonth, $search_date_delivery_startday, $search_date_delivery_startyear); // Use tzserver
70 70
 $search_date_delivery_end = dol_mktime(23, 59, 59, $search_date_delivery_endmonth, $search_date_delivery_endday, $search_date_delivery_endyear);
71 71
 $search_date_create_startday = GETPOSTINT('search_date_create_startday');
72 72
 $search_date_create_startmonth = GETPOSTINT('search_date_create_startmonth');
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 $search_date_create_endday = GETPOSTINT('search_date_create_endday');
75 75
 $search_date_create_endmonth = GETPOSTINT('search_date_create_endmonth');
76 76
 $search_date_create_endyear = GETPOSTINT('search_date_create_endyear');
77
-$search_date_create_start = dol_mktime(0, 0, 0, $search_date_create_startmonth, $search_date_create_startday, $search_date_create_startyear);   // Use tzserver
77
+$search_date_create_start = dol_mktime(0, 0, 0, $search_date_create_startmonth, $search_date_create_startday, $search_date_create_startyear); // Use tzserver
78 78
 $search_date_create_end = dol_mktime(23, 59, 59, $search_date_create_endmonth, $search_date_create_endday, $search_date_create_endyear);
79 79
 $search_billed = GETPOSTINT("search_billed");
80 80
 $search_status = GETPOST('search_status', 'intcomma');
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
                 // if the VAT reverse-charge is activated by default in supplier card to resume the information
333 333
                 $objecttmp->vat_reverse_charge = $soc->vat_reverse_charge;
334 334
 
335
-                $objecttmp->fk_project          = $rcp->fk_project;
335
+                $objecttmp->fk_project = $rcp->fk_project;
336 336
                 //$objecttmp->multicurrency_code = $rcp->multicurrency_code;
337 337
                 if (empty($createbills_onebythird)) {
338 338
                     $objecttmp->ref_supplier = $rcp->ref;
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
                     }
366 366
                 }
367 367
 
368
-                $res = $objecttmp->create($user);       // This should create the supplier invoice + links into $objecttmp->linked_objects + add a link to ->origin_id
368
+                $res = $objecttmp->create($user); // This should create the supplier invoice + links into $objecttmp->linked_objects + add a link to ->origin_id
369 369
 
370 370
                 //var_dump($objecttmp->error);exit;
371 371
                 if ($res > 0) {
Please login to merge, or discard this patch.
htdocs/reception/class/reception.class.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -736,9 +736,9 @@  discard block
 block discarded – undo
736 736
                 if (empty($this->origin_object->lines)) {
737 737
                     $res = $this->origin_object->fetch_lines();
738 738
                     if ($this->origin_object instanceof CommandeFournisseur) {
739
-                        $this->commandeFournisseur = $this->origin_object;  // deprecated
739
+                        $this->commandeFournisseur = $this->origin_object; // deprecated
740 740
                     } else {
741
-                        $this->commandeFournisseur = null;  // deprecated
741
+                        $this->commandeFournisseur = null; // deprecated
742 742
                     }
743 743
                     if ($res < 0) {
744 744
                         return $res;
@@ -1358,7 +1358,7 @@  discard block
 block discarded – undo
1358 1358
         if (getDolGlobalInt("STOCK_CALCULATE_ON_RECEPTION_CLOSE")) {
1359 1359
             $this->labelStatus[1]  = 'StatusReceptionValidatedToReceive';
1360 1360
         }
1361
-        $this->labelStatus[2]  = 'StatusReceptionProcessed';
1361
+        $this->labelStatus[2] = 'StatusReceptionProcessed';
1362 1362
 
1363 1363
         // List of short language codes for status
1364 1364
         $this->labelStatusShort[-1] = 'StatusReceptionCanceledShort';
@@ -1454,7 +1454,7 @@  discard block
 block discarded – undo
1454 1454
         $this->origin_id            = 1;
1455 1455
         $this->origin               = 'commande';
1456 1456
         $this->origin_object        = $order;
1457
-        $this->commandeFournisseur  = $order;   // deprecated
1457
+        $this->commandeFournisseur  = $order; // deprecated
1458 1458
 
1459 1459
         $this->note_private = 'Private note';
1460 1460
         $this->note_public = 'Public note';
@@ -1464,7 +1464,7 @@  discard block
 block discarded – undo
1464 1464
         while ($xnbp < $nbp) {
1465 1465
             $line = new CommandeFournisseurDispatch($this->db);
1466 1466
             $line->desc = $langs->trans("Description") . " " . $xnbp;
1467
-            $line->libelle = $langs->trans("Description") . " " . $xnbp;    // deprecated
1467
+            $line->libelle = $langs->trans("Description") . " " . $xnbp; // deprecated
1468 1468
             $line->label = $langs->trans("Description") . " " . $xnbp;
1469 1469
             $line->qty = 10;
1470 1470
 
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1178,7 +1178,7 @@  discard block
 block discarded – undo
1178 1178
         }
1179 1179
     }
1180 1180
 
1181
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1181
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1182 1182
     /**
1183 1183
      *  Load lines
1184 1184
      *
@@ -1186,7 +1186,7 @@  discard block
 block discarded – undo
1186 1186
      */
1187 1187
     public function fetch_lines()
1188 1188
     {
1189
-		// phpcs:enable
1189
+        // phpcs:enable
1190 1190
         $this->lines = array();
1191 1191
 
1192 1192
 
@@ -1327,7 +1327,7 @@  discard block
 block discarded – undo
1327 1327
         return $this->LibStatut($this->statut, $mode);
1328 1328
     }
1329 1329
 
1330
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1330
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1331 1331
     /**
1332 1332
      * Return label of a status
1333 1333
      *
@@ -1337,7 +1337,7 @@  discard block
 block discarded – undo
1337 1337
      */
1338 1338
     public function LibStatut($status, $mode)
1339 1339
     {
1340
-		// phpcs:enable
1340
+        // phpcs:enable
1341 1341
         global $langs;
1342 1342
 
1343 1343
         // List of long language codes for status
@@ -1498,7 +1498,7 @@  discard block
 block discarded – undo
1498 1498
         }
1499 1499
     }
1500 1500
 
1501
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1501
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1502 1502
     /**
1503 1503
      *  Fetch deliveries method and return an array. Load array this->meths(rowid=>label).
1504 1504
      *
@@ -1506,7 +1506,7 @@  discard block
 block discarded – undo
1506 1506
      */
1507 1507
     public function fetch_delivery_methods()
1508 1508
     {
1509
-		// phpcs:enable
1509
+        // phpcs:enable
1510 1510
         global $langs;
1511 1511
         $this->meths = array();
1512 1512
 
@@ -1524,7 +1524,7 @@  discard block
 block discarded – undo
1524 1524
         }
1525 1525
     }
1526 1526
 
1527
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1527
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1528 1528
     /**
1529 1529
      *  Fetch all deliveries method and return an array. Load array this->listmeths.
1530 1530
      *
@@ -1533,7 +1533,7 @@  discard block
 block discarded – undo
1533 1533
      */
1534 1534
     public function list_delivery_methods($id = 0)
1535 1535
     {
1536
-		// phpcs:enable
1536
+        // phpcs:enable
1537 1537
         global $langs;
1538 1538
 
1539 1539
         $this->listmeths = array();
Please login to merge, or discard this patch.
htdocs/admin/mails.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
     print '<tr class="oddeven"><td>' . $langs->trans("MAIN_MAIL_SENDMODE") . '</td><td>';
370 370
 
371 371
     // SuperAdministrator access only
372
-    if (!isModEnabled('multicompany')  || ($user->admin && !$user->entity)) {
372
+    if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
373 373
         print $form->selectarray('MAIN_MAIL_SENDMODE', $listofmethods, getDolGlobalString('MAIN_MAIL_SENDMODE', 'mail'));
374 374
     } else {
375 375
         $text = $listofmethods[getDolGlobalString('MAIN_MAIL_SENDMODE')];
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
         print '<tr class="oddeven smtp_oauth_service"><td>' . $langs->trans("MAIN_MAIL_SMTPS_OAUTH_SERVICE") . '</td><td>';
503 503
 
504 504
         // SuperAdministrator access only
505
-        if (!isModEnabled('multicompany')  || ($user->admin && !$user->entity)) {
505
+        if (!isModEnabled('multicompany') || ($user->admin && !$user->entity)) {
506 506
             print $form->selectarray('MAIN_MAIL_SMTPS_OAUTH_SERVICE', $oauthservices, $conf->global->MAIN_MAIL_SMTPS_OAUTH_SERVICE);
507 507
         } else {
508 508
             $text = $oauthservices[getDolGlobalString('MAIN_MAIL_SMTPS_OAUTH_SERVICE')];
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
         // AUTH method
700 700
         if (in_array(getDolGlobalString('MAIN_MAIL_SENDMODE', 'mail'), array('smtps', 'swiftmailer'))) {
701 701
             $authtype = getDolGlobalString('MAIN_MAIL_SMTPS_AUTH_TYPE', 'LOGIN');
702
-            $text = ($authtype === "LOGIN") ? $langs->trans("UsePassword") : ($authtype === "XOAUTH2" ? $langs->trans("UseOauth") : '') ;
702
+            $text = ($authtype === "LOGIN") ? $langs->trans("UsePassword") : ($authtype === "XOAUTH2" ? $langs->trans("UseOauth") : '');
703 703
             print '<tr class="oddeven"><td>' . $langs->trans("MAIN_MAIL_SMTPS_AUTH_TYPE") . '</td><td>' . $text . '</td></tr>';
704 704
         }
705 705
 
Please login to merge, or discard this patch.
htdocs/admin/eventorganization.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
 
44 44
 $value = GETPOST('value', 'alpha');
45 45
 $label = GETPOST('label', 'alpha');
46
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
46
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
47 47
 
48 48
 $scandir = GETPOST('scan_dir', 'alpha');
49 49
 $type = 'myobject';
50 50
 
51 51
 $arrayofparameters = array(
52
-    'EVENTORGANIZATION_TASK_LABEL' => array('type' => 'textarea','enabled' => 1),
52
+    'EVENTORGANIZATION_TASK_LABEL' => array('type' => 'textarea', 'enabled' => 1),
53 53
     'EVENTORGANIZATION_CATEG_THIRDPARTY_CONF' => array('type' => 'category:' . Categorie::TYPE_CUSTOMER, 'enabled' => 1),
54 54
     'EVENTORGANIZATION_CATEG_THIRDPARTY_BOOTH' => array('type' => 'category:' . Categorie::TYPE_CUSTOMER, 'enabled' => 1),
55 55
     'EVENTORGANIZATION_FILTERATTENDEES_CAT' => array('type' => 'category:' . Categorie::TYPE_CUSTOMER, 'enabled' => 1),
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
  */
83 83
 
84 84
 if ($cancel) {
85
-    $action  = '';
85
+    $action = '';
86 86
 }
87 87
 
88 88
 include DOL_DOCUMENT_ROOT . '/core/actions_setmoduleoptions.inc.php';
Please login to merge, or discard this patch.
htdocs/admin/agenda_other.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.