Passed
Push — GENERAL_BUG_REVIEW_240911 ( 3362b2...8cbbee )
by Rafael
49:13
created
public/htdocs/core/ajax/objectonoff.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 // Load object according to $id and $element
55 55
 $object = fetchObjectByElement($id, $element);
56 56
 if (!is_object($object)) {
57
-    httponly_accessforbidden("Bad value for combination of parameters element/field: Object not found.");   // This includes the exit.
57
+    httponly_accessforbidden("Bad value for combination of parameters element/field: Object not found."); // This includes the exit.
58 58
 }
59 59
 
60 60
 $object->fields[$field] = array('type' => $format, 'enabled' => 1);
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 if (!empty($user->socid)) {
73 73
     $socid = $user->socid;
74 74
     if (!empty($object->socid) && $socid != $object->socid) {
75
-        httponly_accessforbidden("Access on object not allowed for this external user.");   // This includes the exit.
75
+        httponly_accessforbidden("Access on object not allowed for this external user."); // This includes the exit.
76 76
     }
77 77
 }
78 78
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 } elseif ($element == 'product' && in_array($field, array('tosell', 'tobuy', 'tobatch'))) { // Special case for products
84 84
     restrictedArea($user, 'produit|service', $object, 'product&product', '', '', 'rowid');
85 85
 } else {
86
-    httponly_accessforbidden("Bad value for combination of parameters element/field: Field not supported.");    // This includes the exit.
86
+    httponly_accessforbidden("Bad value for combination of parameters element/field: Field not supported."); // This includes the exit.
87 87
 }
88 88
 
89 89
 
Please login to merge, or discard this patch.
public/htdocs/core/bookmarks_page.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 $title = $langs->trans("Bookmarks");
72 72
 
73 73
 // URL http://mydolibarr/core/bookmarks_page?dol_use_jmobile=1 can be used for tests
74
-$head = '<!-- Bookmarks -->' . "\n";  // This is used by DoliDroid to know page is a bookmark selection page
74
+$head = '<!-- Bookmarks -->' . "\n"; // This is used by DoliDroid to know page is a bookmark selection page
75 75
 $arrayofjs = array();
76 76
 $arrayofcss = array();
77 77
 top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
Please login to merge, or discard this patch.
public/htdocs/core/actions_sendmails.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -398,7 +398,7 @@
 block discarded – undo
398 398
                         $object->actionmsg = $message; // Long text
399 399
                         $object->actionmsg2 = $actionmsg2; // Short text ($langs->transnoentities('MailSentByTo')...);
400 400
                         if (getDolGlobalString('MAIN_MAIL_REPLACE_EVENT_TITLE_BY_EMAIL_SUBJECT')) {
401
-                            $object->actionmsg2     = $subject; // Short text
401
+                            $object->actionmsg2 = $subject; // Short text
402 402
                         }
403 403
 
404 404
                         $object->trackid = $trackid;
Please login to merge, or discard this patch.
public/htdocs/core/modules/rapport/pdf_paiement.class.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     }
115 115
 
116 116
 
117
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
117
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
118 118
     /**
119 119
      *  Fonction generant la rapport sur le disque
120 120
      *
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function write_file($_dir, $month, $year, $outputlangs)
128 128
     {
129
-		// phpcs:enable
129
+        // phpcs:enable
130 130
         include_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php';
131 131
 
132 132
         global $conf, $hookmanager, $langs, $user;
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
         return 1;
383 383
     }
384 384
 
385
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
385
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
386 386
     /**
387 387
      *  Show top header of page.
388 388
      *
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
      */
395 395
     protected function _pagehead(&$pdf, $page, $showaddress, $outputlangs)
396 396
     {
397
-		// phpcs:enable
397
+        // phpcs:enable
398 398
 
399 399
         // Do not add the BACKGROUND as this is a report
400 400
         //pdf_pagehead($pdf,$outputlangs,$this->page_hauteur);
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
     }
458 458
 
459 459
 
460
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
460
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
461 461
     /**
462 462
      *  Output body
463 463
      *
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
      */
470 470
     public function Body(&$pdf, $page, $lines, $outputlangs)
471 471
     {
472
-		// phpcs:enable
472
+        // phpcs:enable
473 473
         global $langs, $conf;
474 474
         $default_font_size = pdf_getPDFFontSize($outputlangs);
475 475
 
Please login to merge, or discard this patch.
htdocs/core/modules/supplier_order/mod_commande_fournisseur_muguet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public $name = 'Muguet';
59 59
 
60
-    public $prefix = 'PO';  // PO for "Purchase Order"
60
+    public $prefix = 'PO'; // PO for "Purchase Order"
61 61
 
62 62
 
63 63
     /**
Please login to merge, or discard this patch.
public/htdocs/core/modules/supplier_order/doc/pdf_muscadet.modules.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     }
159 159
 
160 160
 
161
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
161
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
162 162
     /**
163 163
      *  Function to build pdf onto disk
164 164
      *
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function write_file($object, $outputlangs = null, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
174 174
     {
175
-		// phpcs:enable
175
+        // phpcs:enable
176 176
         global $user, $langs, $conf, $hookmanager, $mysoc, $nblines;
177 177
 
178 178
         if (!is_object($outputlangs)) {
@@ -702,8 +702,8 @@  discard block
 block discarded – undo
702 702
         }
703 703
     }
704 704
 
705
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
706
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
705
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
706
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
707 707
     /**
708 708
      *  Show payments table
709 709
      *
@@ -715,12 +715,12 @@  discard block
 block discarded – undo
715 715
      */
716 716
     protected function _tableau_versements(&$pdf, $object, $posy, $outputlangs)
717 717
     {
718
-		// phpcs:enable
718
+        // phpcs:enable
719 719
         return 1;
720 720
     }
721 721
 
722
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
723
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
722
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
723
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
724 724
     /**
725 725
      *   Show miscellaneous information (payment mode, payment term, ...)
726 726
      *
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
      */
733 733
     protected function _tableau_info(&$pdf, $object, $posy, $outputlangs)
734 734
     {
735
-		// phpcs:enable
735
+        // phpcs:enable
736 736
         global $conf, $mysoc;
737 737
         $default_font_size = pdf_getPDFFontSize($outputlangs);
738 738
 
@@ -783,8 +783,8 @@  discard block
 block discarded – undo
783 783
         return $posy;
784 784
     }
785 785
 
786
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
787
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
786
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
787
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
788 788
     /**
789 789
      *  Show total to pay
790 790
      *
@@ -797,7 +797,7 @@  discard block
 block discarded – undo
797 797
      */
798 798
     protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
799 799
     {
800
-		// phpcs:enable
800
+        // phpcs:enable
801 801
         global $conf, $mysoc;
802 802
 
803 803
         $default_font_size = pdf_getPDFFontSize($outputlangs);
@@ -988,7 +988,7 @@  discard block
 block discarded – undo
988 988
         return ($tab2_top + ($tab2_hl * $index));
989 989
     }
990 990
 
991
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
991
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
992 992
     /**
993 993
      *   Show table for lines
994 994
      *
@@ -1088,7 +1088,7 @@  discard block
 block discarded – undo
1088 1088
         }
1089 1089
     }
1090 1090
 
1091
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1091
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1092 1092
     /**
1093 1093
      *  Show top header of page.
1094 1094
      *
@@ -1357,7 +1357,7 @@  discard block
 block discarded – undo
1357 1357
         return $top_shift;
1358 1358
     }
1359 1359
 
1360
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1360
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1361 1361
     /**
1362 1362
      *  Show footer of page. Need this->emetteur object
1363 1363
      *
Please login to merge, or discard this patch.
core/modules/supplier_order/doc/doc_generic_supplier_order_odt.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         return $texte;
196 196
     }
197 197
 
198
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
198
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
199 199
     /**
200 200
      *  Function to build a document on disk using the generic odt module.
201 201
      *
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
211 211
     {
212
-		// phpcs:enable
212
+        // phpcs:enable
213 213
         global $user, $langs, $conf, $mysoc, $hookmanager;
214 214
 
215 215
         if (empty($srctemplatepath)) {
Please login to merge, or discard this patch.
htdocs/core/modules/contract/doc/doc_generic_contract_odt.modules.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         return $texte;
196 196
     }
197 197
 
198
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
198
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
199 199
     /**
200 200
      *  Function to build a document on disk using the generic odt module.
201 201
      *
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
211 211
     {
212
-		// phpcs:enable
212
+        // phpcs:enable
213 213
         global $user, $langs, $conf, $mysoc, $hookmanager;
214 214
 
215 215
         if (empty($srctemplatepath)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
174 174
         $maxfilesizearray = getMaxFileSizeArray();
175 175
         $maxmin = $maxfilesizearray['maxmin'];
176 176
         if ($maxmin > 0) {
177
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
177
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
178 178
         }
179 179
         $texte .= ' <input type="file" name="uploadfile">';
180 180
         $texte .= '<input type="hidden" value="CONTRACT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/htdocs/core/modules/contract/doc/pdf_strato.modules.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $this->posxdesc = $this->marge_gauche + 1;
129 129
     }
130 130
 
131
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
131
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
132 132
     /**
133 133
      *  Function to build pdf onto disk
134 134
      *
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
144 144
     {
145
-		// phpcs:enable
145
+        // phpcs:enable
146 146
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
147 147
 
148 148
         if (!is_object($outputlangs)) {
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
         }
494 494
     }
495 495
 
496
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
496
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
497 497
     /**
498 498
      *   Show table for lines
499 499
      *
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
         $pdf->MultiCell($this->page_largeur - $this->marge_droite - $posmiddle - 5, 20, '', 1);
576 576
     }
577 577
 
578
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
578
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
579 579
     /**
580 580
      *  Show top header of page.
581 581
      *
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
      */
590 590
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null, $titlekey = "Contract")
591 591
     {
592
-		// phpcs:enable
592
+        // phpcs:enable
593 593
         global $conf;
594 594
 
595 595
         $top_shift = 0;
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
         return $top_shift;
794 794
     }
795 795
 
796
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
796
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
797 797
     /**
798 798
      *      Show footer of page. Need this->emetteur object
799 799
      *
Please login to merge, or discard this patch.