Passed
Push — main ( 324b47...7af4bb )
by Rafael
43:55
created
htdocs/webhook/class/target.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -783,7 +783,7 @@  discard block
 block discarded – undo
783 783
         return $this->LibStatut($this->status, $mode);
784 784
     }
785 785
 
786
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
786
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
787 787
     /**
788 788
      *  Return the status
789 789
      *
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
      */
794 794
     public function LibStatut($status, $mode = 0)
795 795
     {
796
-		// phpcs:enable
796
+        // phpcs:enable
797 797
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
798 798
             global $langs;
799 799
 
Please login to merge, or discard this patch.
htdocs/adherents/canvas/actions_adherentcard_common.class.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         return $object;
74 74
     }
75 75
 
76
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
76
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
77 77
     /**
78 78
      *  Set content of ->tpl array, to use into template
79 79
      *
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function assign_values(&$action, $id)
85 85
     {
86
-		// phpcs:enable
86
+        // phpcs:enable
87 87
         global $conf, $langs, $user, $canvas;
88 88
         global $form, $formcompany, $objsoc;
89 89
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
         }
239 239
     }
240 240
 
241
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
241
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
242 242
     /**
243 243
      *  Assign POST values into object
244 244
      *
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      */
247 247
     private function assign_post()
248 248
     {
249
-		// phpcs:enable
249
+        // phpcs:enable
250 250
         global $langs, $mysoc;
251 251
 
252 252
         $this->object->old_name = GETPOST("old_name");
Please login to merge, or discard this patch.
htdocs/asset/class/asset.class.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@
 block discarded – undo
63 63
      */
64 64
     public $picto = 'asset';
65 65
 
66
-    const STATUS_DRAFT = 0;     // In progress
67
-    const STATUS_DISPOSED = 9;  // Disposed
66
+    const STATUS_DRAFT = 0; // In progress
67
+    const STATUS_DISPOSED = 9; // Disposed
68 68
 
69 69
     /**
70 70
      *  'type' field format ('integer', 'integer:ObjectClass:PathToClass[:AddCreateButtonOrNot[:Filter[:Sortfield]]]', 'sellist:TableName:LabelFieldName[:KeyFieldName[:KeyFieldParent[:Filter[:Sortfield]]]]', 'varchar(x)', 'double(24,8)', 'real', 'price', 'text', 'text:none', 'html', 'date', 'datetime', 'timestamp', 'duration', 'mail', 'phone', 'url', 'password')
Please login to merge, or discard this patch.
htdocs/theme/eldy/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/comm/mailing/class/advtargetemailing.class.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
         }
266 266
     }
267 267
 
268
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
268
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
269 269
     /**
270 270
      *  Load object in memory from the database
271 271
      *
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
      */
275 275
     public function fetch_by_mailing($id = 0)
276 276
     {
277
-		// phpcs:enable
277
+        // phpcs:enable
278 278
         global $langs;
279 279
         $sql = "SELECT";
280 280
         $sql .= " t.rowid,";
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
 
328 328
 
329 329
 
330
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
330
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
331 331
     /**
332 332
      *  Load object in memory from the database
333 333
      *
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      */
338 338
     public function fetch_by_element($id = 0, $type_element = 'mailing')
339 339
     {
340
-		// phpcs:enable
340
+        // phpcs:enable
341 341
         global $langs;
342 342
         $sql = "SELECT";
343 343
         $sql .= " t.rowid,";
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
 
520 520
 
521 521
 
522
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
522
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
523 523
     /**
524 524
      * Load object in memory from database
525 525
      *
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
      */
529 529
     public function query_thirdparty($arrayquery)
530 530
     {
531
-		// phpcs:enable
531
+        // phpcs:enable
532 532
         global $langs, $conf, $extrafields;
533 533
 
534 534
         $sql = "SELECT";
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
         }
677 677
     }
678 678
 
679
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
679
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
680 680
     /**
681 681
      * Load object in memory from database
682 682
      *
@@ -686,7 +686,7 @@  discard block
 block discarded – undo
686 686
      */
687 687
     public function query_contact($arrayquery, $withThirdpartyFilter = 0)
688 688
     {
689
-		// phpcs:enable
689
+        // phpcs:enable
690 690
         global $langs, $conf;
691 691
 
692 692
         $sql = "SELECT";
Please login to merge, or discard this patch.
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.