Passed
Push — GENERAL_BUG_REVIEW_240911 ( 3362b2...8cbbee )
by Rafael
49:13
created
public/htdocs/core/modules/project/doc/pdf_timespent.modules.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     }
132 132
 
133 133
 
134
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
134
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
135 135
     /**
136 136
      *  Function to build pdf project onto disk
137 137
      *
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function write_file($object, $outputlangs)
143 143
     {
144
-		// phpcs:enable
144
+        // phpcs:enable
145 145
         global $conf, $hookmanager, $langs, $user;
146 146
 
147 147
         if (!is_object($outputlangs)) {
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
         }
500 500
     }
501 501
 
502
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
502
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
503 503
     /**
504 504
      *   Show table for lines
505 505
      *
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
         $pdf->MultiCell($this->page_largeur - $this->marge_droite - $this->posxuser, 3, '', 0, 'C');
548 548
     }
549 549
 
550
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
550
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
551 551
     /**
552 552
      *  Show top header of page.
553 553
      *
@@ -639,7 +639,7 @@  discard block
 block discarded – undo
639 639
         return 0;
640 640
     }
641 641
 
642
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
642
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
643 643
     /**
644 644
      *  Show footer of page. Need this->emetteur object
645 645
      *
Please login to merge, or discard this patch.
public/htdocs/core/modules/project/doc/doc_generic_project_odt.modules.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         }
131 131
     }
132 132
 
133
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
133
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
134 134
     /**
135 135
      * Define array with couple substitution key => substitution value
136 136
      *
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function get_substitutionarray_object($object, $outputlangs, $array_key = 'object')
143 143
     {
144
-		// phpcs:enable
144
+        // phpcs:enable
145 145
         if (!$object instanceof Project) {
146 146
             dol_syslog("Expected Project object, got " . gettype($object), LOG_ERR);
147 147
             return array();
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
         return $resarray;
173 173
     }
174 174
 
175
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
175
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
176 176
     /**
177 177
      *  Define array with couple substitution key => substitution value
178 178
      *
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      */
183 183
     public function get_substitutionarray_tasks(Task $task, $outputlangs)
184 184
     {
185
-		// phpcs:enable
185
+        // phpcs:enable
186 186
         $resarray = array(
187 187
             'task_ref' => $task->ref,
188 188
             'task_fk_project' => $task->fk_project,
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
         return $resarray;
214 214
     }
215 215
 
216
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
216
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
217 217
     /**
218 218
      *  Define array with couple substitution key => substitution value
219 219
      *
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      */
224 224
     public function get_substitutionarray_project_contacts($contact, $outputlangs)
225 225
     {
226
-		// phpcs:enable
226
+        // phpcs:enable
227 227
         $pc = 'projcontacts_'; // prefix to avoid typos
228 228
 
229 229
         $ret = array(
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         return $ret;
271 271
     }
272 272
 
273
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
273
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
274 274
     /**
275 275
      *  Define array with couple substitution key => substitution value
276 276
      *
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      */
281 281
     public function get_substitutionarray_project_file($file, $outputlangs)
282 282
     {
283
-		// phpcs:enable
283
+        // phpcs:enable
284 284
         return array(
285 285
             'projfile_name' => $file['name'],
286 286
             'projfile_date' => dol_print_date($file['date'], 'day'),
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
         );
289 289
     }
290 290
 
291
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
291
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
292 292
     /**
293 293
      *  Define array with couple substitution key => substitution value
294 294
      *
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
      */
299 299
     public function get_substitutionarray_project_reference($refdetail, $outputlangs)
300 300
     {
301
-		// phpcs:enable
301
+        // phpcs:enable
302 302
         global $conf;
303 303
 
304 304
         return array(
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
         );
313 313
     }
314 314
 
315
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
315
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
316 316
     /**
317 317
      *  Define array with couple substitution key => substitution value
318 318
      *
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
      */
323 323
     public function get_substitutionarray_tasksressource($taskresource, $outputlangs)
324 324
     {
325
-		// phpcs:enable
325
+        // phpcs:enable
326 326
 
327 327
         //dol_syslog(get_class($this).'::get_substitutionarray_tasksressource taskressource='.var_export($taskressource,true),LOG_DEBUG);
328 328
         return array(
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
         );
337 337
     }
338 338
 
339
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
339
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
340 340
     /**
341 341
      *  Define array with couple substitution key => substitution value
342 342
      *
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
      */
347 347
     public function get_substitutionarray_taskstime($tasktime, $outputlangs)
348 348
     {
349
-		// phpcs:enable
349
+        // phpcs:enable
350 350
         return array(
351 351
             'tasktime_rowid' => $tasktime['rowid'],
352 352
             'tasktime_task_date' => dol_print_date($tasktime['task_date'], 'day'),
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         );
364 364
     }
365 365
 
366
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
366
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
367 367
     /**
368 368
      *  Define array with couple substitution key => substitution value
369 369
      *
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
      */
374 374
     public function get_substitutionarray_task_file($file, $outputlangs)
375 375
     {
376
-		// phpcs:enable
376
+        // phpcs:enable
377 377
         return array(
378 378
             'tasksfile_name' => $file['name'],
379 379
             'tasksfile_date' => dol_print_date($file['date'], 'day'),
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
         return $texte;
483 483
     }
484 484
 
485
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
485
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
486 486
     /**
487 487
      *  Function to build a document on disk using the generic odt module.
488 488
      *
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
      */
494 494
     public function write_file($object, $outputlangs, $srctemplatepath)
495 495
     {
496
-		// phpcs:enable
496
+        // phpcs:enable
497 497
         global $user, $langs, $conf, $mysoc, $hookmanager;
498 498
 
499 499
         if (empty($srctemplatepath)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -466,7 +466,7 @@
 block discarded – undo
466 466
         $maxfilesizearray = getMaxFileSizeArray();
467 467
         $maxmin = $maxfilesizearray['maxmin'];
468 468
         if ($maxmin > 0) {
469
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
469
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
470 470
         }
471 471
         $texte .= ' <input type="file" name="uploadfile">';
472 472
         $texte .= '<input type="hidden" value="PROJECT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
htdocs/core/modules/project/task/doc/doc_generic_task_odt.modules.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     }
131 131
 
132 132
 
133
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
133
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
134 134
     /**
135 135
      * Define array with couple substitution key => substitution value
136 136
      *
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function get_substitutionarray_object($object, $outputlangs, $array_key = 'object')
143 143
     {
144
-		// phpcs:enable
144
+        // phpcs:enable
145 145
         global $extrafields;
146 146
 
147 147
         if (!$object instanceof Project) {
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         return $resarray;
175 175
     }
176 176
 
177
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
177
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
178 178
     /**
179 179
      *  Define array with couple substitution key => substitution value
180 180
      *
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      */
186 186
     public function get_substitutionarray_tasks($task, $outputlangs, $array_key = 'task')
187 187
     {
188
-		// phpcs:enable
188
+        // phpcs:enable
189 189
         global $extrafields;
190 190
 
191 191
         $resarray = array(
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         return $resarray;
219 219
     }
220 220
 
221
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
221
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
222 222
     /**
223 223
      *  Define array with couple substitution key => substitution value
224 224
      *
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      */
229 229
     public function get_substitutionarray_project_contacts($contact, $outputlangs)
230 230
     {
231
-		// phpcs:enable
231
+        // phpcs:enable
232 232
         return array(
233 233
             'projcontacts_id' => $contact['id'],
234 234
             'projcontacts_rowid' => $contact['rowid'],
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         );
242 242
     }
243 243
 
244
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
244
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
245 245
     /**
246 246
      *  Define array with couple substitution key => substitution value
247 247
      *
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      */
252 252
     public function get_substitutionarray_project_file($file, $outputlangs)
253 253
     {
254
-		// phpcs:enable
254
+        // phpcs:enable
255 255
         return array(
256 256
             'projfile_name' => $file['name'],
257 257
             'projfile_date' => dol_print_date($file['date'], 'day'),
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
         );
260 260
     }
261 261
 
262
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
262
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
263 263
     /**
264 264
      *  Define array with couple substitution key => substitution value
265 265
      *
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
      */
270 270
     public function get_substitutionarray_project_reference($refdetail, $outputlangs)
271 271
     {
272
-		// phpcs:enable
272
+        // phpcs:enable
273 273
         return array(
274 274
             'projref_type' => $refdetail['type'],
275 275
             'projref_ref' => $refdetail['ref'],
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
         );
282 282
     }
283 283
 
284
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
284
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
285 285
     /**
286 286
      *  Define array with couple substitution key => substitution value
287 287
      *
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
      */
292 292
     public function get_substitutionarray_tasksressource($taskresource, $outputlangs)
293 293
     {
294
-		// phpcs:enable
294
+        // phpcs:enable
295 295
 
296 296
         //dol_syslog(get_class($this).'::get_substitutionarray_tasksressource taskressource='.var_export($taskressource,true),LOG_DEBUG);
297 297
         return array(
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         );
306 306
     }
307 307
 
308
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
308
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
309 309
     /**
310 310
      *  Define array with couple substitution key => substitution value
311 311
      *
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
      */
316 316
     public function get_substitutionarray_taskstime($tasktime, $outputlangs)
317 317
     {
318
-		// phpcs:enable
318
+        // phpcs:enable
319 319
         global $conf;
320 320
 
321 321
         return array(
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
         );
331 331
     }
332 332
 
333
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
333
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
334 334
     /**
335 335
      *  Define array with couple substitution key => substitution value
336 336
      *
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
      */
341 341
     public function get_substitutionarray_task_file($file, $outputlangs)
342 342
     {
343
-		// phpcs:enable
343
+        // phpcs:enable
344 344
         return array(
345 345
             'tasksfile_name' => $file['name'],
346 346
             'tasksfile_date' => dol_print_date($file['date'], 'day'),
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
         return $texte;
450 450
     }
451 451
 
452
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
452
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
453 453
     /**
454 454
      *  Function to build a document on disk using the generic odt module.
455 455
      *
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
      */
461 461
     public function write_file($object, $outputlangs, $srctemplatepath)
462 462
     {
463
-		// phpcs:enable
463
+        // phpcs:enable
464 464
         global $user, $langs, $conf, $mysoc, $hookmanager;
465 465
 
466 466
         if (empty($srctemplatepath)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -434,7 +434,7 @@
 block discarded – undo
434 434
         $maxfilesizearray = getMaxFileSizeArray();
435 435
         $maxmin = $maxfilesizearray['maxmin'];
436 436
         if ($maxmin > 0) {
437
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
437
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
438 438
         }
439 439
         $texte .= ' <input type="file" name="uploadfile">';
440 440
         $texte .= '<input type="hidden" value="PROJECT_TASK_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/htdocs/core/modules/reception/doc/pdf_squille.modules.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
         }
128 128
     }
129 129
 
130
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
130
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
131 131
     /**
132 132
      *  Function to build pdf onto disk
133 133
      *
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
143 143
     {
144
-		// phpcs:enable
144
+        // phpcs:enable
145 145
         global $user, $conf, $langs, $hookmanager;
146 146
 
147 147
         $object->fetch_thirdparty();
@@ -676,8 +676,8 @@  discard block
 block discarded – undo
676 676
         }
677 677
     }
678 678
 
679
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
680
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
679
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
680
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
681 681
     /**
682 682
      *  Show total to pay
683 683
      *
@@ -692,7 +692,7 @@  discard block
 block discarded – undo
692 692
      */
693 693
     protected function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs, $totalOrdered, $totalAmount = 0)
694 694
     {
695
-		// phpcs:enable
695
+        // phpcs:enable
696 696
         global $conf, $mysoc;
697 697
 
698 698
         $sign = 1;
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
         return ($tab2_top + ($tab2_hl * $index));
795 795
     }
796 796
 
797
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
797
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
798 798
     /**
799 799
      *   Show table for lines
800 800
      *
@@ -888,7 +888,7 @@  discard block
 block discarded – undo
888 888
         }
889 889
     }
890 890
 
891
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
891
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
892 892
     /**
893 893
      *  Show top header of page.
894 894
      *
@@ -1129,7 +1129,7 @@  discard block
 block discarded – undo
1129 1129
         return $top_shift;
1130 1130
     }
1131 1131
 
1132
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1132
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1133 1133
     /**
1134 1134
      *      Show footer of page. Need this->emetteur object
1135 1135
      *
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@
 block discarded – undo
293 293
                 $pdf->MultiCell(0, 3, ''); // Set interline to 3
294 294
                 $pdf->SetTextColor(0, 0, 0);
295 295
 
296
-                $tab_top = 90;  // position of top tab
296
+                $tab_top = 90; // position of top tab
297 297
                 $tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 : 10);
298 298
 
299 299
                 $tab_height = $this->page_hauteur - $tab_top - $heightforfooter - $heightforfreetext;
Please login to merge, or discard this patch.
htdocs/core/modules/reception/doc/doc_generic_reception_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
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
         $maxfilesizearray = getMaxFileSizeArray();
171 171
         $maxmin = $maxfilesizearray['maxmin'];
172 172
         if ($maxmin > 0) {
173
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
173
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
174 174
         }
175 175
         $texte .= ' <input type="file" name="uploadfile">';
176 176
         $texte .= '<input type="hidden" value="RECEPTION_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/htdocs/core/modules/dons/html_generic.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
         return 1;
184 184
     }
185 185
 
186
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
186
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
187 187
     /**
188 188
      *  Write the object to document file to disk
189 189
      *
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      */
195 195
     public function write_file($don, $outputlangs, $currency = '')
196 196
     {
197
-		// phpcs:enable
197
+        // phpcs:enable
198 198
         global $user, $conf, $langs, $mysoc;
199 199
 
200 200
         $id = (!is_object($don) ? $don : '');
Please login to merge, or discard this patch.
public/htdocs/core/modules/dons/html_cerfafr.modules.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     }
67 67
 
68 68
 
69
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
69
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
70 70
     /**
71 71
      *  Write the object to document file to disk
72 72
      *
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function write_file($don, $outputlangs, $currency = '')
79 79
     {
80
-		// phpcs:enable
80
+        // phpcs:enable
81 81
         global $user, $conf, $langs, $mysoc;
82 82
 
83 83
         $now = dol_now();
Please login to merge, or discard this patch.
public/htdocs/core/modules/facture/doc/pdf_sponge.modules.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     }
183 183
 
184 184
 
185
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
185
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
186 186
     /**
187 187
      *  Function to build pdf onto disk
188 188
      *
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
198 198
     {
199
-		// phpcs:enable
199
+        // phpcs:enable
200 200
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
201 201
 
202 202
         dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null'));
@@ -1974,7 +1974,7 @@  discard block
 block discarded – undo
1974 1974
         return ($tab2_top + ($tab2_hl * $index));
1975 1975
     }
1976 1976
 
1977
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1977
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1978 1978
     /**
1979 1979
      *  Return list of active generation modules
1980 1980
      *
@@ -1984,11 +1984,11 @@  discard block
 block discarded – undo
1984 1984
      */
1985 1985
     public static function liste_modeles($db, $maxfilenamelength = 0)
1986 1986
     {
1987
-		// phpcs:enable
1987
+        // phpcs:enable
1988 1988
         return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub
1989 1989
     }
1990 1990
 
1991
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1991
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1992 1992
     /**
1993 1993
      *   Show table for lines
1994 1994
      *
@@ -2056,7 +2056,7 @@  discard block
 block discarded – undo
2056 2056
         }
2057 2057
     }
2058 2058
 
2059
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2059
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2060 2060
     /**
2061 2061
      *  Show top header of page. This include the logo, ref and address blocks
2062 2062
      *
@@ -2069,7 +2069,7 @@  discard block
 block discarded – undo
2069 2069
      */
2070 2070
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null)
2071 2071
     {
2072
-		// phpcs:enable
2072
+        // phpcs:enable
2073 2073
         global $conf, $langs;
2074 2074
 
2075 2075
         $ltrdirection = 'L';
@@ -2449,7 +2449,7 @@  discard block
 block discarded – undo
2449 2449
         return $pagehead;
2450 2450
     }
2451 2451
 
2452
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2452
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2453 2453
     /**
2454 2454
      *      Show footer of page. Need this->emetteur object
2455 2455
      *
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
                 // $pdf->GetY() here can't be used. It is bottom of the second address box but first one may be higher
454 454
 
455 455
                 // $this->tab_top is y where we must continue content (90 = 42 + 48: 42 is height of logo and ref, 48 is address blocks)
456
-                $this->tab_top = 90 + $top_shift + $shipp_shift;        // top_shift is an addition for linked objects or addons (0 in most cases)
456
+                $this->tab_top = 90 + $top_shift + $shipp_shift; // top_shift is an addition for linked objects or addons (0 in most cases)
457 457
                 $this->tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10);
458 458
 
459 459
                 // You can add more thing under header here, if you increase $extra_under_address_shift too.
@@ -690,7 +690,7 @@  discard block
 block discarded – undo
690 690
                     }
691 691
 
692 692
                     $pdf->setTopMargin($this->tab_top_newpage);
693
-                    $page_bottom_margin =  $this->heightforfooter + $this->heightforfreetext + $this->heightforinfotot + $this->getHeightForQRInvoice($pdf->getPage(), $object, $langs);
693
+                    $page_bottom_margin = $this->heightforfooter + $this->heightforfreetext + $this->heightforinfotot + $this->getHeightForQRInvoice($pdf->getPage(), $object, $langs);
694 694
                     $pdf->setPageOrientation('', 1, $page_bottom_margin);
695 695
                     $pageposbefore = $pdf->getPage();
696 696
 
@@ -934,7 +934,7 @@  discard block
 block discarded – undo
934 934
                     if (!isset($this->tva[$vatrate])) {
935 935
                         $this->tva[$vatrate] = 0;
936 936
                     }
937
-                    $this->tva[$vatrate] += $tvaligne;  // ->tva is abandoned, we use now ->tva_array that is more complete
937
+                    $this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete
938 938
                     $vatcode = $object->lines[$i]->vat_src_code;
939 939
                     if (empty($this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'])) {
940 940
                         $this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'] = 0;
@@ -1228,7 +1228,7 @@  discard block
 block discarded – undo
1228 1228
             $posy = $pdf->GetY() + 4;
1229 1229
         }
1230 1230
 
1231
-        $posxval = 52;  // Position of values of properties shown on left side
1231
+        $posxval = 52; // Position of values of properties shown on left side
1232 1232
         $posxend = 110; // End of x for text on left side
1233 1233
         if ($this->page_largeur < 210) { // To work with US executive format
1234 1234
             $posxend -= 10;
Please login to merge, or discard this patch.
public/htdocs/core/modules/facture/doc/pdf_octopus.modules.php 3 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     }
183 183
 
184 184
 
185
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
185
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
186 186
     /**
187 187
      *  Function to build pdf onto disk
188 188
      *
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
198 198
     {
199
-		// phpcs:enable
199
+        // phpcs:enable
200 200
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
201 201
 
202 202
         dol_syslog("write_file outputlangs->defaultlang=" . (is_object($outputlangs) ? $outputlangs->defaultlang : 'null'));
@@ -1974,7 +1974,7 @@  discard block
 block discarded – undo
1974 1974
         return ($tab2_top + ($tab2_hl * $index));
1975 1975
     }
1976 1976
 
1977
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1977
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1978 1978
     /**
1979 1979
      *  Return list of active generation modules
1980 1980
      *
@@ -1984,11 +1984,11 @@  discard block
 block discarded – undo
1984 1984
      */
1985 1985
     public static function liste_modeles($db, $maxfilenamelength = 0)
1986 1986
     {
1987
-		// phpcs:enable
1987
+        // phpcs:enable
1988 1988
         return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub
1989 1989
     }
1990 1990
 
1991
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1991
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
1992 1992
     /**
1993 1993
      *   Show table for lines
1994 1994
      *
@@ -2056,7 +2056,7 @@  discard block
 block discarded – undo
2056 2056
         }
2057 2057
     }
2058 2058
 
2059
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2059
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2060 2060
     /**
2061 2061
      *  Show top header of page. This include the logo, ref and address blocks
2062 2062
      *
@@ -2069,7 +2069,7 @@  discard block
 block discarded – undo
2069 2069
      */
2070 2070
     protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null)
2071 2071
     {
2072
-		// phpcs:enable
2072
+        // phpcs:enable
2073 2073
         global $conf, $langs;
2074 2074
 
2075 2075
         $ltrdirection = 'L';
@@ -2449,7 +2449,7 @@  discard block
 block discarded – undo
2449 2449
         return $pagehead;
2450 2450
     }
2451 2451
 
2452
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2452
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
2453 2453
     /**
2454 2454
      *      Show footer of page. Need this->emetteur object
2455 2455
      *
Please login to merge, or discard this patch.
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * Dolibarr version of the loaded document
79 79
      * @var string
80 80
      */
81
-    public $version = 'disabled';   // Disabled by default. Enabled in constructor if option INVOICE_USE_SITUATION is 2.
81
+    public $version = 'disabled'; // Disabled by default. Enabled in constructor if option INVOICE_USE_SITUATION is 2.
82 82
 
83 83
     /**
84 84
      * @var int height for info total
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
             $outputlangsbis->loadLangs(array("main", "bills", "products", "dict", "companies"));
293 293
         }
294 294
 
295
-        if (empty($object) || ($object->type != Facture::TYPE_SITUATION && ($object->type != Facture::TYPE_CREDIT_NOTE &&  !empty($object->situation_cycle_ref)))) {
295
+        if (empty($object) || ($object->type != Facture::TYPE_SITUATION && ($object->type != Facture::TYPE_CREDIT_NOTE && !empty($object->situation_cycle_ref)))) {
296 296
             setEventMessage($langs->trans('WarningsObjectIsNotASituation'), 'warnings');
297 297
             return 1;
298 298
         }
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
                 $pdf->SetAutoPageBreak(1, 0);
412 412
 
413 413
                 // compute height for situation invoices
414
-                $this->heightforinfotot = 45;   // Height reserved to output the info and total part and payment part
414
+                $this->heightforinfotot = 45; // Height reserved to output the info and total part and payment part
415 415
                 if (!getDolGlobalString('INVOICE_NO_PAYMENT_DETAILS') && $nbpayments > 0) {
416 416
                     $this->heightforinfotot += 4 * ($nbpayments + 3);
417 417
                 }
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
                 // $pdf->GetY() here can't be used. It is bottom of the second address box but first one may be higher
526 526
 
527 527
                 // $this->tab_top is y where we must continue content (90 = 42 + 48: 42 is height of logo and ref, 48 is address blocks)
528
-                $this->tab_top = 90 + $top_shift + $shipp_shift;        // top_shift is an addition for linked objects or addons (0 in most cases)
528
+                $this->tab_top = 90 + $top_shift + $shipp_shift; // top_shift is an addition for linked objects or addons (0 in most cases)
529 529
                 $this->tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10);
530 530
 
531 531
                 // You can add more thing under header here, if you increase $extra_under_address_shift too.
@@ -1037,7 +1037,7 @@  discard block
 block discarded – undo
1037 1037
                     if (!isset($this->tva[$vatrate])) {
1038 1038
                         $this->tva[$vatrate] = 0;
1039 1039
                     }
1040
-                    $this->tva[$vatrate] += $tvaligne;  // ->tva is abandoned, we use now ->tva_array that is more complete
1040
+                    $this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete
1041 1041
                     $vatcode = $object->lines[$i]->vat_src_code;
1042 1042
                     if (empty($this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'])) {
1043 1043
                         $this->tva_array[$vatrate . ($vatcode ? ' (' . $vatcode . ')' : '')]['amount'] = 0;
@@ -1337,7 +1337,7 @@  discard block
 block discarded – undo
1337 1337
             $posy = $pdf->GetY() + 4;
1338 1338
         }
1339 1339
 
1340
-        $posxval = 52;  // Position of values of properties shown on left side
1340
+        $posxval = 52; // Position of values of properties shown on left side
1341 1341
         $posxend = 110; // End of x for text on left side
1342 1342
         if ($this->page_largeur < 210) { // To work with US executive format
1343 1343
             $posxend -= 10;
@@ -1700,7 +1700,7 @@  discard block
 block discarded – undo
1700 1700
                     if (($object->lines[$i]->info_bits & 0x01) == 0x01) {
1701 1701
                         $vatrate .= '*';
1702 1702
                     }
1703
-                    if (! isset($tvas[$vatrate])) {
1703
+                    if (!isset($tvas[$vatrate])) {
1704 1704
                         $tvas[$vatrate] = 0;
1705 1705
                     }
1706 1706
                     $tvas[$vatrate] += $tvaligne;
@@ -2013,7 +2013,7 @@  discard block
 block discarded – undo
2013 2013
         $pdf->SetFont('', '', $default_font_size - 1);
2014 2014
 
2015 2015
         if (empty($hidetop)) {
2016
-            $pdf->line($this->marge_gauche, $tab_top + 5, $this->page_largeur - $this->marge_droite, $tab_top + 5);   // line prend une position y en 2eme param et 4eme param
2016
+            $pdf->line($this->marge_gauche, $tab_top + 5, $this->page_largeur - $this->marge_droite, $tab_top + 5); // line prend une position y en 2eme param et 4eme param
2017 2017
         }
2018 2018
     }
2019 2019
 
@@ -2583,7 +2583,7 @@  discard block
 block discarded – undo
2583 2583
             'overtitle' => array(
2584 2584
                 'textkey' => 'Chantier', // use lang key is useful in somme case with module
2585 2585
                 'align' => 'C',
2586
-                'padding' => array(0.5,0.5,0.5,0.5), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
2586
+                'padding' => array(0.5, 0.5, 0.5, 0.5), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
2587 2587
                 'width' => 18
2588 2588
             ),
2589 2589
         );
@@ -2610,11 +2610,11 @@  discard block
 block discarded – undo
2610 2610
             'overtitle' => array(
2611 2611
                 'textkey' => $outputlangs->transnoentities('SituationInvoiceDate', $derniere_situation->situation_counter, dol_print_date($derniere_situation->date, "%d/%m/%Y")), // use lang key is useful in somme case with module
2612 2612
                 'align' => 'C',
2613
-                'padding' => array(0.5,0.2,0.5,0.2), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
2613
+                'padding' => array(0.5, 0.2, 0.5, 0.2), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
2614 2614
                 'width' => 10 + 15 //current width + amount cell width
2615 2615
             ),
2616 2616
         );
2617
-        if ($this->situationinvoice && ! empty($this->TDataSituation['date_derniere_situation'])) {
2617
+        if ($this->situationinvoice && !empty($this->TDataSituation['date_derniere_situation'])) {
2618 2618
             $this->cols['prev_progress']['status'] = true;
2619 2619
         }
2620 2620
 
@@ -2629,7 +2629,7 @@  discard block
 block discarded – undo
2629 2629
             ),
2630 2630
             'border-left' => true, // add left line separator
2631 2631
         );
2632
-        if ($this->situationinvoice && ! empty($this->TDataSituation['date_derniere_situation'])) {
2632
+        if ($this->situationinvoice && !empty($this->TDataSituation['date_derniere_situation'])) {
2633 2633
             $this->cols['prev_progress_amount']['status'] = true;
2634 2634
         }
2635 2635
 
@@ -2646,7 +2646,7 @@  discard block
 block discarded – undo
2646 2646
             'overtitle' => array(
2647 2647
                 'textkey' => $outputlangs->transnoentities('SituationInvoiceDate', $object->situation_counter, dol_print_date($object->date, "%d/%m/%Y")), // use lang key is useful in somme case with module
2648 2648
                 'align' => 'C',
2649
-                'padding' => array(0.5,0.2,0.5,0.2), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
2649
+                'padding' => array(0.5, 0.2, 0.5, 0.2), // Like css 0 => top , 1 => right, 2 => bottom, 3 => left
2650 2650
                 'width' => 10 + 15
2651 2651
             ),
2652 2652
         );
@@ -2769,7 +2769,7 @@  discard block
 block discarded – undo
2769 2769
 
2770 2770
         // Output Rect
2771 2771
         // KEEPTHIS => Affiche les bords extérieurs
2772
-        $this->printRectBtp($pdf, $this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $tab_height, $hidetop, $hidebottom);  // Rect prend une longueur en 3eme param et 4eme param
2772
+        $this->printRectBtp($pdf, $this->marge_gauche, $tab_top, $this->page_largeur - $this->marge_gauche - $this->marge_droite, $tab_height, $hidetop, $hidebottom); // Rect prend une longueur en 3eme param et 4eme param
2773 2773
 
2774 2774
         $pdf->line($this->posx_cumul_anterieur - 1, $tab_top, $this->posx_cumul_anterieur - 1, $tab_top + $tab_height);
2775 2775
         if (empty($hidetop)) {
@@ -2826,7 +2826,7 @@  discard block
 block discarded – undo
2826 2826
             $pdf->SetXY($this->marge_gauche + 10, $tab_top + 24 + $i);
2827 2827
             $pdf->MultiCell(80, 2, $outputlangs->transnoentities("TotalHT") . ' ' . $TVatInfo['label'], '', 'L');
2828 2828
 
2829
-            if (! empty($this->TDataSituation['current'][$tva_tx_formated]['TVA'])) {
2829
+            if (!empty($this->TDataSituation['current'][$tva_tx_formated]['TVA'])) {
2830 2830
                 $pdf->SetXY($this->marge_gauche + 10, $tab_top + 28 + $i);
2831 2831
                 $pdf->MultiCell(80, 2, $outputlangs->transnoentities("VAT") . ' ' . $TVatInfo['label'], '', 'L');
2832 2832
             } else {
@@ -2890,7 +2890,7 @@  discard block
 block discarded – undo
2890 2890
                 $pdf->MultiCell(32, 2, price($this->TDataSituation[$col][$tva_tx_formated]['HT'], 0, '', 1, -1, 2), '', 'R');
2891 2891
 
2892 2892
                 // Total TVA
2893
-                if (! empty($this->TDataSituation['current'][$tva_tx_formated]['TVA'])) {
2893
+                if (!empty($this->TDataSituation['current'][$tva_tx_formated]['TVA'])) {
2894 2894
                     $pdf->SetXY($x, $tab_top + 28 + $i);
2895 2895
                     $pdf->MultiCell(32, 2, price($this->TDataSituation[$col][$tva_tx_formated]['TVA'], 0, '', 1, -1, 2), '', 'R');
2896 2896
                 } else {
@@ -2970,7 +2970,7 @@  discard block
 block discarded – undo
2970 2970
 
2971 2971
         $TDataSituation = array();
2972 2972
 
2973
-        if (! empty($facDerniereSituation)) {
2973
+        if (!empty($facDerniereSituation)) {
2974 2974
             $TDataSituation['derniere_situation'] = $facDerniereSituation;
2975 2975
             $TDataSituation['date_derniere_situation'] = $facDerniereSituation->date;
2976 2976
         }
@@ -2979,9 +2979,9 @@  discard block
 block discarded – undo
2979 2979
         $retenue_garantie_anterieure = 0;
2980 2980
         // Init tous les champs à 0
2981 2981
         $TDataSituation['cumul_anterieur'] = array(
2982
-            'HT' => 0,  //montant HT normal
2983
-            'TVA' => 0,   //montant de la TVA sur le HTnet
2984
-            'TTC' => 0,   //montant TTC (HTnet + TVA)
2982
+            'HT' => 0, //montant HT normal
2983
+            'TVA' => 0, //montant de la TVA sur le HTnet
2984
+            'TTC' => 0, //montant TTC (HTnet + TVA)
2985 2985
             'retenue_garantie' => 0,
2986 2986
             'travaux_sup' => 0,
2987 2987
             'HTnet' => 0, //montant HT
@@ -3011,7 +3011,7 @@  discard block
 block discarded – undo
3011 3011
                     $isFirstSituation = false;
3012 3012
                     if (!empty($l->fk_prev_id)) {
3013 3013
                         $prevSituationPercent = $l->get_prev_progress($previousInvoice->id, true);
3014
-                    } elseif (! array_key_exists($i + 1, $TPreviousInvoices)) {
3014
+                    } elseif (!array_key_exists($i + 1, $TPreviousInvoices)) {
3015 3015
                         $isFirstSituation = true;
3016 3016
                     }
3017 3017
 
@@ -3021,7 +3021,7 @@  discard block
 block discarded – undo
3021 3021
 
3022 3022
                     //1ere ligne
3023 3023
                     $amounttva = $calc_ht * ($ltvatx / 100);
3024
-                    if (! isset($TDataSituation['cumul_anterieur'][$ltvatx])) {
3024
+                    if (!isset($TDataSituation['cumul_anterieur'][$ltvatx])) {
3025 3025
                         $TDataSituation['cumul_anterieur'][$ltvatx]['HT'] = $calc_ht;
3026 3026
                         $TDataSituation['cumul_anterieur'][$ltvatx]['TVA'] = $amounttva;
3027 3027
                     } else {
@@ -3033,14 +3033,14 @@  discard block
 block discarded – undo
3033 3033
                     //le grand total de TVA
3034 3034
                     // $TDataSituation['cumul_anterieur']['TVA'] += $amounttva;
3035 3035
 
3036
-                    if (empty($l->fk_prev_id) && ! $isFirstSituation) {
3036
+                    if (empty($l->fk_prev_id) && !$isFirstSituation) {
3037 3037
                         // TODO: à clarifier, mais pour moi, un facture de situation précédente qui a des progressions à 0% c'est pas logique
3038 3038
                         $TDataSituation['cumul_anterieur']['travaux_sup'] += $calc_ht;
3039 3039
                     }
3040 3040
                 }
3041 3041
             }
3042 3042
 
3043
-            if (! empty($previousInvoice->retained_warranty) && !getDolGlobalString('USE_RETAINED_WARRANTY_ONLY_FOR_SITUATION_FINAL')) {
3043
+            if (!empty($previousInvoice->retained_warranty) && !getDolGlobalString('USE_RETAINED_WARRANTY_ONLY_FOR_SITUATION_FINAL')) {
3044 3044
                 $retenue_garantie_anterieure += $previousInvoice->getRetainedWarrantyAmount();
3045 3045
             }
3046 3046
 
@@ -3054,7 +3054,7 @@  discard block
 block discarded – undo
3054 3054
         // print json_encode($facDerniereSituation->lines);exit;
3055 3055
         $TDataSituation['current'] = $this->btpGetInvoiceAmounts($object->id);
3056 3056
 
3057
-        if (! empty($facDerniereSituation->lines)) {
3057
+        if (!empty($facDerniereSituation->lines)) {
3058 3058
             $TFacLinesKey = array_keys($facDerniereSituation->lines);
3059 3059
             $TObjectLinesKey = array_keys($object->lines);
3060 3060
             $TDiffKey = array_diff($TObjectLinesKey, $TFacLinesKey);
@@ -3220,7 +3220,7 @@  discard block
 block discarded – undo
3220 3220
      */
3221 3221
     public function btpGetInvoiceAmounts($id, $forceReadFromDB = false)
3222 3222
     {
3223
-        global $user,$langs,$conf,$mysoc,$db,$hookmanager,$nblignes;
3223
+        global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblignes;
3224 3224
 
3225 3225
         $object = new Facture($db);
3226 3226
         $object->fetch($id);
@@ -3238,16 +3238,16 @@  discard block
 block discarded – undo
3238 3238
         $facDerniereSituation = $TPreviousInvoices[0];
3239 3239
 
3240 3240
         $ret = array(
3241
-            'HT' => 0,  //montant HT normal
3241
+            'HT' => 0, //montant HT normal
3242 3242
             'HTnet' => 0, //montant HT
3243
-            'TVA' => 0,   //montant de la TVA sur le HTnet
3244
-            'TTC' => 0,   //montant TTC (HTnet + TVA)
3243
+            'TVA' => 0, //montant de la TVA sur le HTnet
3244
+            'TTC' => 0, //montant TTC (HTnet + TVA)
3245 3245
             'retenue_garantie' => 0,
3246 3246
             'travaux_sup' => 0,
3247 3247
             'total_a_payer' => 0 //montant "a payer" sur la facture
3248 3248
         );
3249 3249
 
3250
-        if (! empty($facDerniereSituation)) {
3250
+        if (!empty($facDerniereSituation)) {
3251 3251
             $ret['derniere_situation'] = $facDerniereSituation;
3252 3252
             $ret['date_derniere_situation'] = $facDerniereSituation->date;
3253 3253
         }
@@ -3379,14 +3379,14 @@  discard block
 block discarded – undo
3379 3379
             $label = $outputlangs->transnoentities("SituationInvoiceTotalProposal");
3380 3380
             $pdf->MultiCell($this->page_largeur - ($this->marge_droite + $this->marge_gauche), 3, $label, 0, 'L', 0, 1, $posx, $posy + 1);
3381 3381
 
3382
-            $amount = price($sign * ($total_ht + (! empty($propal->remise) ? $propal->remise : 0)));
3382
+            $amount = price($sign * ($total_ht + (!empty($propal->remise) ? $propal->remise : 0)));
3383 3383
             $pdf->MultiCell($width2, 3, $amount, 0, 'R', 0, 1, $posx + $width, $posy + 1);
3384 3384
 
3385 3385
             $pdf->SetFont('', '', $default_font_size - 1);
3386 3386
 
3387 3387
             // Output Rect
3388 3388
             $pdf->SetDrawColor(128, 128, 128);
3389
-            $this->printRect($pdf, $posx, $posy, $this->page_largeur - $this->marge_gauche - $this->marge_droite, 6);   // Rect prend une longueur en 3eme param et 4eme param
3389
+            $this->printRect($pdf, $posx, $posy, $this->page_largeur - $this->marge_gauche - $this->marge_droite, 6); // Rect prend une longueur en 3eme param et 4eme param
3390 3390
 
3391 3391
             $posy += 4;
3392 3392
         } elseif (count($orders)) {
@@ -3421,7 +3421,7 @@  discard block
 block discarded – undo
3421 3421
 
3422 3422
         $force_to_zero = false;
3423 3423
 
3424
-        $idinv = 0;//count($previousinvoices);
3424
+        $idinv = 0; //count($previousinvoices);
3425 3425
         while ($idinv < count($previousinvoices)) {
3426 3426
             $invoice = $previousinvoices[$idinv];
3427 3427
 
@@ -3471,7 +3471,7 @@  discard block
 block discarded – undo
3471 3471
                 if (($invoice->lines[$i]->info_bits & 0x01) == 0x01) {
3472 3472
                     $vatrate .= '*';
3473 3473
                 }
3474
-                if (! isset($tvas[$vatrate])) {
3474
+                if (!isset($tvas[$vatrate])) {
3475 3475
                     $tvas[$vatrate] = 0;
3476 3476
                 }
3477 3477
                 $tvas[$vatrate] += $tvaligne;
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3558,7 +3558,9 @@  discard block
 block discarded – undo
3558 3558
             $deja_regle = $invoice->getSommePaiement();
3559 3559
 
3560 3560
             $resteapayer = price2num($invoice->total_ttc - $deja_regle - $total_ttc_rg - $creditnoteamount - $depositsamount, 'MT');
3561
-            if ($invoice->paye) $resteapayer = 0;
3561
+            if ($invoice->paye) {
3562
+                $resteapayer = 0;
3563
+            }
3562 3564
 
3563 3565
             $y = 0;
3564 3566
 
@@ -3608,7 +3610,9 @@  discard block
 block discarded – undo
3608 3610
 
3609 3611
             if ($deja_regle > 0) {
3610 3612
                 $title = $outputlangs->transnoentities("PaymentsAlreadyDone");
3611
-                if ($invoice->type == 2) $title = $outputlangs->transnoentities("PaymentsBackAlreadyDone");
3613
+                if ($invoice->type == 2) {
3614
+                    $title = $outputlangs->transnoentities("PaymentsBackAlreadyDone");
3615
+                }
3612 3616
 
3613 3617
                 $pdf->SetFont('', '', $default_font_size - 3);
3614 3618
                 $pdf->SetXY($posx, $posy + $height * $index);
@@ -3671,7 +3675,9 @@  discard block
 block discarded – undo
3671 3675
                 if (!empty($this->tplidx)) {
3672 3676
                     $pdf->useTemplate($this->tplidx);
3673 3677
                 }
3674
-                if (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD')) $this->_pagehead($pdf, $object, 0, $outputlangs);
3678
+                if (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD')) {
3679
+                    $this->_pagehead($pdf, $object, 0, $outputlangs);
3680
+                }
3675 3681
                 $pdf->setPage($pageposafter + 1);
3676 3682
                 $pdf->setPageOrientation('', 1, 0); // The only function to edit the bottom margin of current page to set it.
3677 3683
 
Please login to merge, or discard this patch.