Test Failed
Push — main ( 94e8c4...1be143 )
by Rafael
44:08
created
htdocs/comm/mailing/class/mailing.class.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
         }
622 622
     }
623 623
 
624
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
624
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
625 625
     /**
626 626
      *  Delete targets emailing
627 627
      *
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
      */
630 630
     public function delete_targets()
631 631
     {
632
-		// phpcs:enable
632
+        // phpcs:enable
633 633
         $sql = "DELETE FROM " . MAIN_DB_PREFIX . "mailing_cibles";
634 634
         $sql .= " WHERE fk_mailing = " . ((int) $this->id);
635 635
 
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
     }
647 647
 
648 648
 
649
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
649
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
650 650
     /**
651 651
      *  Change status of each recipient
652 652
      *
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
      */
656 656
     public function reset_targets_status($user)
657 657
     {
658
-		// phpcs:enable
658
+        // phpcs:enable
659 659
         $sql = "UPDATE " . MAIN_DB_PREFIX . "mailing_cibles";
660 660
         $sql .= " SET statut = 0";
661 661
         $sql .= " WHERE fk_mailing = " . ((int) $this->id);
@@ -870,7 +870,7 @@  discard block
 block discarded – undo
870 870
         return $this->LibStatut($this->status, $mode);
871 871
     }
872 872
 
873
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
873
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
874 874
     /**
875 875
      *  Return the label of a given status
876 876
      *
@@ -880,7 +880,7 @@  discard block
 block discarded – undo
880 880
      */
881 881
     public function LibStatut($status, $mode = 0)
882 882
     {
883
-		// phpcs:enable
883
+        // phpcs:enable
884 884
         global $langs;
885 885
         $langs->load("mailing");
886 886
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
                 $this->title = $obj->title;
385 385
                 $this->messtype = $obj->messtype;
386 386
 
387
-                $this->statut = $obj->status;   // deprecated
387
+                $this->statut = $obj->status; // deprecated
388 388
                 $this->status = $obj->status;
389 389
 
390 390
                 $this->nbemail = $obj->nbemail;
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
                 $sql .= ' WHERE rowid = ' . ((int) $this->id);
728 728
 
729 729
                 $resqlupdate = $this->db->query($sql);
730
-                if (! $resqlupdate) {
730
+                if (!$resqlupdate) {
731 731
                     $this->error = $this->db->lasterror();
732 732
                     return -1;
733 733
                 } else {
Please login to merge, or discard this patch.
htdocs/eventorganization/class/conferenceorbooth.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
         return $this->LibStatutEvent($this->status, $mode);
629 629
     }
630 630
 
631
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
631
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
632 632
     /**
633 633
      *  Return the status
634 634
      *
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
      */
639 639
     public function LibStatutEvent($status, $mode = 0)
640 640
     {
641
-		// phpcs:enable
641
+        // phpcs:enable
642 642
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
643 643
             global $langs;
644 644
             //$langs->load("eventorganization@eventorganization");
Please login to merge, or discard this patch.
htdocs/loan/class/paymentloan.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
         return $this->LibStatut($this->statut, $mode);
502 502
     }
503 503
 
504
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
504
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
505 505
     /**
506 506
      * Renvoi le libelle d'un statut donne
507 507
      *
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
      */
512 512
     public function LibStatut($status, $mode = 0)
513 513
     {
514
-		// phpcs:enable
514
+        // phpcs:enable
515 515
         return '';
516 516
     }
517 517
 
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
     }
621 621
 
622 622
 
623
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
623
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
624 624
     /**
625 625
      *  Update link between loan's payment and the line generate in llx_bank
626 626
      *
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
      */
630 630
     public function update_fk_bank($id_bank)
631 631
     {
632
-		// phpcs:enable
632
+        // phpcs:enable
633 633
         $sql = "UPDATE " . MAIN_DB_PREFIX . "payment_loan SET fk_bank = " . ((int) $id_bank) . " WHERE rowid = " . ((int) $this->id);
634 634
 
635 635
         dol_syslog(get_class($this) . "::update_fk_bank", LOG_DEBUG);
Please login to merge, or discard this patch.
htdocs/loan/class/loan.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
         }
412 412
     }
413 413
 
414
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
414
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
415 415
     /**
416 416
      *  Tag loan as payment started
417 417
      *
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
      */
423 423
     public function set_started($user)
424 424
     {
425
-		// phpcs:enable
425
+        // phpcs:enable
426 426
         dol_syslog(get_class($this) . "::set_started is deprecated, use setStarted instead", LOG_NOTICE);
427 427
         return $this->setStarted($user);
428 428
     }
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
         return $this->LibStatut($this->paid, $mode, $alreadypaid);
486 486
     }
487 487
 
488
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
488
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
489 489
     /**
490 490
      *  Return label for given status
491 491
      *
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
      */
497 497
     public function LibStatut($status, $mode = 0, $alreadypaid = -1)
498 498
     {
499
-		// phpcs:enable
499
+        // phpcs:enable
500 500
         global $langs;
501 501
 
502 502
         // Load translation files required by the page
Please login to merge, or discard this patch.
htdocs/bom/class/api_boms.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
         }
717 717
     }
718 718
 
719
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
719
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
720 720
     /**
721 721
      * Clean sensible object datas
722 722
      *
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
      */
726 726
     protected function _cleanObjectDatas($object)
727 727
     {
728
-		// phpcs:enable
728
+        // phpcs:enable
729 729
         $object = parent::_cleanObjectDatas($object);
730 730
 
731 731
         unset($object->rowid);
Please login to merge, or discard this patch.
htdocs/asset/class/assetmodel.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1438,7 +1438,7 @@  discard block
 block discarded – undo
1438 1438
         return $this->LibStatut($this->status, $mode);
1439 1439
     }
1440 1440
 
1441
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1441
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1442 1442
     /**
1443 1443
      *  Return the status
1444 1444
      *
@@ -1448,7 +1448,7 @@  discard block
 block discarded – undo
1448 1448
      */
1449 1449
     public function LibStatut($status, $mode = 0)
1450 1450
     {
1451
-		// phpcs:enable
1451
+        // phpcs:enable
1452 1452
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
1453 1453
             global $langs;
1454 1454
             //$langs->load("assets");
Please login to merge, or discard this patch.
htdocs/website/class/website.class.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
         return $this->LibStatut($this->status, $mode);
827 827
     }
828 828
 
829
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
829
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
830 830
     /**
831 831
      *  Return the label of a given status
832 832
      *
@@ -836,7 +836,7 @@  discard block
 block discarded – undo
836 836
      */
837 837
     public function LibStatut($status, $mode = 0)
838 838
     {
839
-		// phpcs:enable
839
+        // phpcs:enable
840 840
         global $langs;
841 841
 
842 842
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1145,7 +1145,7 @@  discard block
 block discarded – undo
1145 1145
             $stringtoexport = str_replace('medias/image/' . $website->ref . '/', "medias/image/__WEBSITE_KEY__/", $stringtoexport);
1146 1146
             $stringtoexport = str_replace('medias/js/' . $website->ref . '/', "medias/js/__WEBSITE_KEY__/", $stringtoexport);
1147 1147
             $stringtoexport = str_replace('"image/' . $website->ref . '/', '"image/__WEBSITE_KEY__/', $stringtoexport); // When we have a link src="image/websiteref/file.png" into html content
1148
-            $stringtoexport = str_replace('"/image/' . $website->ref . '/', '"/image/__WEBSITE_KEY__/', $stringtoexport);   // When we have a link src="/image/websiteref/file.png" into html content
1148
+            $stringtoexport = str_replace('"/image/' . $website->ref . '/', '"/image/__WEBSITE_KEY__/', $stringtoexport); // When we have a link src="/image/websiteref/file.png" into html content
1149 1149
             $stringtoexport = str_replace('"js/' . $website->ref . '/', '"js/__WEBSITE_KEY__/', $stringtoexport);
1150 1150
             $stringtoexport = str_replace('"/js/' . $website->ref . '/', '"/js/__WEBSITE_KEY__/', $stringtoexport);
1151 1151
 
@@ -1464,7 +1464,7 @@  discard block
 block discarded – undo
1464 1464
                 $filetpl = $pathofwebsite . '/page' . $object->fk_default_home . '.tpl.php';
1465 1465
             }
1466 1466
             $filewrapper = $pathofwebsite . '/wrapper.php';
1467
-            dolSaveIndexPage($pathofwebsite, $fileindex, $filetpl, $filewrapper, $object);  // This includes also a version of index.php into sublanguage directories
1467
+            dolSaveIndexPage($pathofwebsite, $fileindex, $filetpl, $filewrapper, $object); // This includes also a version of index.php into sublanguage directories
1468 1468
         }
1469 1469
 
1470 1470
         if ($error) {
@@ -1867,7 +1867,7 @@  discard block
 block discarded – undo
1867 1867
                 $destContent = file_get_contents($fileNeeded['fullname']);
1868 1868
 
1869 1869
                 $numOfPageDest = $this->extractNumberFromFilename($fileNeeded['name']);
1870
-                $differences = $this->showDifferences($destContent, $sourceContent, array($numOfPageDest,$numOfPageSource));
1870
+                $differences = $this->showDifferences($destContent, $sourceContent, array($numOfPageDest, $numOfPageSource));
1871 1871
                 $differences['file_destination'] = $fileNeeded;
1872 1872
             }
1873 1873
             return $differences;
@@ -1908,7 +1908,7 @@  discard block
 block discarded – undo
1908 1908
         $linefound = array();
1909 1909
         $countNumPage = count($exceptNumPge);
1910 1910
 
1911
-        for ($i = 0;$i < $countNumPage; $i++) {
1911
+        for ($i = 0; $i < $countNumPage; $i++) {
1912 1912
             $linefound[$i] = array();
1913 1913
             $linefound[$i]['meta'] = '/content="' . preg_quote($exceptNumPge[$i], '/') . '" \/>/';
1914 1914
             $linefound[$i]['output'] = '/dolWebsiteOutput\(\$tmp, "html", ' . preg_quote($exceptNumPge[$i], '/') . '\);/';
Please login to merge, or discard this patch.
htdocs/theme/md/btn.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 if (getDolGlobalString('THEME_DARKMODEENABLED')) {
19 19
     print "/* For dark mode */\n";
20 20
     if (getDolGlobalInt('THEME_DARKMODEENABLED') != 2) {
21
-        print "@media (prefers-color-scheme: dark) {";  // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes
21
+        print "@media (prefers-color-scheme: dark) {"; // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes
22 22
     } else {
23 23
         print "@media not print {";
24 24
     }
Please login to merge, or discard this patch.
htdocs/compta/cashcontrol/class/cashcontrol.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
         return $this->LibStatut($this->status, $mode);
639 639
     }
640 640
 
641
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
641
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
642 642
     /**
643 643
      *  Return the status
644 644
      *
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
      */
649 649
     public function LibStatut($status, $mode = 0)
650 650
     {
651
-		// phpcs:enable
651
+        // phpcs:enable
652 652
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
653 653
             global $langs;
654 654
             //$langs->load("mymodule");
Please login to merge, or discard this patch.