Passed
Push — main ( 324b47...7af4bb )
by Rafael
43:55
created
htdocs/core/modules/usergroup/modules_usergroup.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
  */
35 35
 abstract class ModelePDFUserGroup extends CommonDocGenerator
36 36
 {
37
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
37
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
38 38
     /**
39 39
      *  Return list of active generation modules
40 40
      *
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public static function liste_modeles($db, $maxfilenamelength = 0)
46 46
     {
47
-		// phpcs:enable
47
+        // phpcs:enable
48 48
         $type = 'group';
49 49
         $list = array();
50 50
 
Please login to merge, or discard this patch.
htdocs/core/modules/societe/modules_societe.class.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
  */
38 38
 abstract class ModeleThirdPartyDoc extends CommonDocGenerator
39 39
 {
40
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
40
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
41 41
     /**
42 42
      *  Return list of active generation modules
43 43
      *
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public static function liste_modeles($dbs, $maxfilenamelength = 0)
49 49
     {
50
-		// phpcs:enable
50
+        // phpcs:enable
51 51
         $type = 'company';
52 52
         $list = array();
53 53
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     }
86 86
 
87 87
 
88
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
88
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
89 89
     /**
90 90
      *  Renvoie la liste des modeles de numérotation
91 91
      *
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public static function liste_modeles($dbs, $maxfilenamelength = 0)
97 97
     {
98
-		// phpcs:enable
98
+        // phpcs:enable
99 99
         $list = array();
100 100
         $sql = "";
101 101
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         return $s;
186 186
     }
187 187
 
188
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
188
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
189 189
     /**
190 190
      *   Check if mask/numbering use prefix
191 191
      *
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      */
194 194
     public function verif_prefixIsUsed()
195 195
     {
196
-		// phpcs:enable
196
+        // phpcs:enable
197 197
         return 0;
198 198
     }
199 199
 }
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
         return $s;
251 251
     }
252 252
 
253
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
253
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
254 254
     /**
255 255
      *  Set accountancy account code for a third party into this->code
256 256
      *
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
      */
262 262
     public function get_code($db, $societe, $type = '')
263 263
     {
264
-		// phpcs:enable
264
+        // phpcs:enable
265 265
         global $langs;
266 266
 
267 267
         return $langs->trans("NotAvailable");
Please login to merge, or discard this patch.
htdocs/core/modules/societe/mod_codecompta_aquarium.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     }
148 148
 
149 149
 
150
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
150
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
151 151
     /**
152 152
      *  Set accountancy account code for a third party into this->code
153 153
      *
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function get_code($db, $societe, $type = '')
160 160
     {
161
-		// phpcs:enable
161
+        // phpcs:enable
162 162
         global $conf;
163 163
 
164 164
         $i = 0;
Please login to merge, or discard this patch.
htdocs/core/modules/societe/mod_codecompta_digitaria.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         return $s;
186 186
     }
187 187
 
188
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
188
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
189 189
     /**
190 190
      *  Set accountancy account code for a third party into this->code
191 191
      *
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function get_code($db, $societe, $type = '')
198 198
     {
199
-		// phpcs:enable
199
+        // phpcs:enable
200 200
         global $conf;
201 201
         $i = 0;
202 202
         $this->code = '';
Please login to merge, or discard this patch.
htdocs/core/modules/societe/mod_codeclient_monkey.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     }
191 191
 
192 192
 
193
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
193
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
194 194
     /**
195 195
      *      Indicates if the code is available or not (by another third party)
196 196
      *
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public function verif_dispo($db, $code, $soc, $type = 0)
204 204
     {
205
-		// phpcs:enable
205
+        // phpcs:enable
206 206
         $sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "societe";
207 207
         if ($type == 1) {
208 208
             $sql .= " WHERE code_fournisseur = '" . $db->escape($code) . "'";
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     }
229 229
 
230 230
 
231
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
231
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
232 232
     /**
233 233
      *  Renvoi si un code respecte la syntax
234 234
      *
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      */
238 238
     public function verif_syntax($code)
239 239
     {
240
-		// phpcs:enable
240
+        // phpcs:enable
241 241
         $res = 0;
242 242
 
243 243
         if (dol_strlen($code) < 11) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $code = strtoupper(trim($code));
166 166
 
167 167
         if (empty($code) && $this->code_null && !getDolGlobalString('MAIN_COMPANY_CODE_ALWAYS_REQUIRED')) {
168
-            $result = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
168
+            $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
169 169
         } elseif (empty($code) && (!$this->code_null || getDolGlobalString('MAIN_COMPANY_CODE_ALWAYS_REQUIRED'))) {
170 170
             $result = -2;
171 171
         } else {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                 if ($is_dispo != 0) {
175 175
                     $result = -3;
176 176
                 } else {
177
-                    $result = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
177
+                    $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
178 178
                 }
179 179
             } else {
180 180
                 if (dol_strlen($code) == 0) {
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         if (dol_strlen($code) < 11) {
244 244
             $res = -1;
245 245
         } else {
246
-            $res = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
246
+            $res = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
247 247
         }
248 248
         return $res;
249 249
     }
Please login to merge, or discard this patch.
htdocs/core/modules/societe/mod_codecompta_panicum.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         return '';
85 85
     }
86 86
 
87
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
87
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
88 88
     /**
89 89
      *  Set accountancy account code for a third party into this->code
90 90
      *
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function get_code($db, $societe, $type = '')
97 97
     {
98
-		// phpcs:enable
98
+        // phpcs:enable
99 99
         $this->code = '';
100 100
 
101 101
         if (is_object($societe)) {
Please login to merge, or discard this patch.
htdocs/core/modules/societe/mod_codeclient_elephant.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     }
224 224
 
225 225
 
226
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
226
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
227 227
     /**
228 228
      *   Check if mask/numbering use prefix
229 229
      *
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public function verif_prefixIsUsed()
233 233
     {
234
-		// phpcs:enable
234
+        // phpcs:enable
235 235
         global $conf;
236 236
 
237 237
         $mask = getDolGlobalString('COMPANY_ELEPHANT_MASK_CUSTOMER');
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
     }
307 307
 
308 308
 
309
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
309
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
310 310
     /**
311 311
      *      Indicate if the code is available or not (by another third party)
312 312
      *
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
      */
319 319
     public function verif_dispo($db, $code, $soc, $type = 0)
320 320
     {
321
-		// phpcs:enable
321
+        // phpcs:enable
322 322
         $sql = "SELECT rowid FROM " . MAIN_DB_PREFIX . "societe";
323 323
         if ($type == 1) {
324 324
             $sql .= " WHERE code_fournisseur = '" . $db->escape($code) . "'";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -257,7 +257,7 @@
 block discarded – undo
257 257
         $code = strtoupper(trim($code));
258 258
 
259 259
         if (empty($code) && $this->code_null && !getDolGlobalString('MAIN_COMPANY_CODE_ALWAYS_REQUIRED')) {
260
-            $result = 0;  // @phan-suppress-current-line PhanPluginRedundantAssignment
260
+            $result = 0; // @phan-suppress-current-line PhanPluginRedundantAssignment
261 261
         } elseif (empty($code) && (!$this->code_null || getDolGlobalString('MAIN_COMPANY_CODE_ALWAYS_REQUIRED'))) {
262 262
             $result = -2;
263 263
         } else {
Please login to merge, or discard this patch.
htdocs/core/modules/expedition/doc/pdf_merou.modules.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     }
109 109
 
110 110
 
111
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
111
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
112 112
     /**
113 113
      *  Function to build pdf onto disk
114 114
      *
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function write_file(&$object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
124 124
     {
125
-		// phpcs:enable
125
+        // phpcs:enable
126 126
         global $user, $conf, $langs, $mysoc, $hookmanager;
127 127
 
128 128
         $object->fetch_thirdparty();
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
         }
400 400
     }
401 401
 
402
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
402
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
403 403
     /**
404 404
      *   Show table for lines
405 405
      *
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
         $pdf->Rect(10, $tab_top, 190, $tab_height);
441 441
     }
442 442
 
443
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
443
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
444 444
     /**
445 445
      *      Show footer of page. Need this->emetteur object
446 446
      *
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
         //}
470 470
     }
471 471
 
472
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
472
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
473 473
     /**
474 474
      *  Show top header of page.
475 475
      *
Please login to merge, or discard this patch.
htdocs/core/modules/expedition/doc/pdf_espadon.modules.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         $this->tabTitleHeight = 5; // default height
113 113
     }
114 114
 
115
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
115
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
116 116
     /**
117 117
      *  Function to build pdf onto disk
118 118
      *
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
128 128
     {
129
-		// phpcs:enable
129
+        // phpcs:enable
130 130
         global $user, $conf, $langs, $hookmanager;
131 131
 
132 132
         $object->fetch_thirdparty();
@@ -769,8 +769,8 @@  discard block
 block discarded – undo
769 769
         }
770 770
     }
771 771
 
772
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
773
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
772
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
773
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
774 774
     /**
775 775
      *  Show total to pay
776 776
      *
@@ -783,7 +783,7 @@  discard block
 block discarded – undo
783 783
      */
784 784
     protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
785 785
     {
786
-		// phpcs:enable
786
+        // phpcs:enable
787 787
         global $conf, $mysoc;
788 788
 
789 789
         $sign = 1;
@@ -876,7 +876,7 @@  discard block
 block discarded – undo
876 876
         return ($tab2_top + ($tab2_hl * $index));
877 877
     }
878 878
 
879
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
879
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
880 880
     /**
881 881
      *   Show table for lines
882 882
      *
@@ -929,7 +929,7 @@  discard block
 block discarded – undo
929 929
         }
930 930
     }
931 931
 
932
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
932
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
933 933
     /**
934 934
      *  Show top header of page.
935 935
      *
@@ -1194,7 +1194,7 @@  discard block
 block discarded – undo
1194 1194
         return $top_shift;
1195 1195
     }
1196 1196
 
1197
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1197
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1198 1198
     /**
1199 1199
      *      Show footer of page. Need this->emetteur object
1200 1200
      *
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -838,7 +838,7 @@
 block discarded – undo
838 838
             if ($object->volume_units < 50) {
839 839
                 $totalVolumetoshow = showDimensionInBestUnit($object->trueVolume, $object->volume_units, "volume", $outputlangs);
840 840
             } else {
841
-                $totalVolumetoshow =  price($object->trueVolume, 0, $outputlangs, 0, 0) . ' ' . measuringUnitString(0, "volume", $object->volume_units);
841
+                $totalVolumetoshow = price($object->trueVolume, 0, $outputlangs, 0, 0) . ' ' . measuringUnitString(0, "volume", $object->volume_units);
842 842
             }
843 843
         }
844 844
 
Please login to merge, or discard this patch.