Test Failed
Push — main ( 1f99c7...ac1cad )
by Rafael
61:18
created
htdocs/ecm/class/ecmfiles.class.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -952,7 +952,7 @@  discard block
 block discarded – undo
952 952
         return $this->LibStatut($this->status, $mode);
953 953
     }
954 954
 
955
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
955
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
956 956
     /**
957 957
      *  Return the status
958 958
      *
@@ -962,7 +962,7 @@  discard block
 block discarded – undo
962 962
      */
963 963
     public static function LibStatut($status, $mode = 0)
964 964
     {
965
-		// phpcs:enable
965
+        // phpcs:enable
966 966
         global $langs;
967 967
         return '';
968 968
     }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -163,16 +163,16 @@
 block discarded – undo
163 163
         'label' => array('type' => 'varchar(128)', 'label' => 'Label', 'enabled' => 1, 'position' => 30, 'notnull' => 0, 'visible' => -1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "contains hash of file content"),
164 164
         'share' => array('type' => 'varchar(128)', 'label' => 'Share', 'enabled' => 1, 'position' => 40, 'notnull' => 0, 'visible' => -1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "contains hash for file sharing"),
165 165
         'entity' => array('type' => 'integer', 'label' => 'Entity', 'default' => '1', 'enabled' => 1, 'visible' => -2, 'notnull' => -1, 'position' => 50, 'index' => 1),
166
-        'filepath' => array('type' => 'varchar(255)', 'label' => 'FilePath', 'enabled' => 1, 'position' => 60, 'notnull' => 0, 'visible' => 0, 'searchall' => 0, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1,'comment' => "relative to dolibarr document dir. Example module/def"),
167
-        'filename' => array('type' => 'varchar(255)', 'label' => 'FileName', 'enabled' => 1, 'position' => 70, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1,'comment' => "file name only without any directory"),
168
-        'src_object_type' => array('type' => 'varchar(64)', 'label' => 'SourceType', 'enabled' => 1, 'position' => 80, 'notnull' => 0, 'visible' => 0, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1,'comment' => "Source object type ('proposal', 'invoice', ...)"),
166
+        'filepath' => array('type' => 'varchar(255)', 'label' => 'FilePath', 'enabled' => 1, 'position' => 60, 'notnull' => 0, 'visible' => 0, 'searchall' => 0, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "relative to dolibarr document dir. Example module/def"),
167
+        'filename' => array('type' => 'varchar(255)', 'label' => 'FileName', 'enabled' => 1, 'position' => 70, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "file name only without any directory"),
168
+        'src_object_type' => array('type' => 'varchar(64)', 'label' => 'SourceType', 'enabled' => 1, 'position' => 80, 'notnull' => 0, 'visible' => 0, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "Source object type ('proposal', 'invoice', ...)"),
169 169
         'src_object_id' => array('type' => 'integer', 'label' => 'SourceID', 'default' => '1', 'enabled' => 1, 'visible' => 0, 'notnull' => 1, 'position' => 90, 'index' => 1, 'comment' => "Source object id"),
170
-        'fullpath_orig' => array('type' => 'varchar(750)', 'label' => 'FullPathOrig', 'enabled' => 1, 'position' => 100, 'notnull' => 0, 'visible' => 0, 'searchall' => 0, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1,'comment' => "full path of original filename, when file is uploaded from a local computer"),
170
+        'fullpath_orig' => array('type' => 'varchar(750)', 'label' => 'FullPathOrig', 'enabled' => 1, 'position' => 100, 'notnull' => 0, 'visible' => 0, 'searchall' => 0, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "full path of original filename, when file is uploaded from a local computer"),
171 171
         'description' => array('type' => 'text', 'label' => 'Description', 'enabled' => 1, 'visible' => 0, 'position' => 110),
172
-        'keywords' => array('type' => 'varchar(750)', 'label' => 'Keywords', 'enabled' => 1, 'position' => 120, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1,'comment' => "list of keywords, separated with comma. Must be limited to most important keywords."),
172
+        'keywords' => array('type' => 'varchar(750)', 'label' => 'Keywords', 'enabled' => 1, 'position' => 120, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "list of keywords, separated with comma. Must be limited to most important keywords."),
173 173
         'cover' => array('type' => 'text', 'label' => 'Cover', 'enabled' => 1, 'visible' => 0, 'position' => 130, 'comment' => "is this file a file to use for a cover"),
174 174
         'position' => array('type' => 'integer', 'label' => 'Position', 'default' => '1', 'enabled' => 1, 'visible' => -2, 'notnull' => 1, 'position' => 140, 'index' => 1, 'comment' => "position of file among others"),
175
-        'gen_or_uploaded' => array('type' => 'varchar(12)', 'label' => 'GenOrUpload', 'enabled' => 1, 'position' => 150, 'notnull' => 0, 'visible' => -1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1,'comment' => "'generated' or 'uploaded'"),
175
+        'gen_or_uploaded' => array('type' => 'varchar(12)', 'label' => 'GenOrUpload', 'enabled' => 1, 'position' => 150, 'notnull' => 0, 'visible' => -1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "'generated' or 'uploaded'"),
176 176
         'extraparams' => array('type' => 'varchar(255)', 'label' => 'ExtraParams', 'enabled' => 1, 'position' => 160, 'notnull' => 0, 'visible' => 1, 'searchall' => 1, 'css' => 'minwidth300', 'cssview' => 'wordbreak', 'help' => "Help text", 'showoncombobox' => 2, 'validate' => 1, 'comment' => "for stocking other parameters with json format"),
177 177
         'date_c' => array('type' => 'datetime', 'label' => 'DateCreation', 'enabled' => 1, 'visible' => -1, 'position' => 170),
178 178
         'tms' => array('type' => 'timestamp', 'label' => 'DateModification', 'enabled' => 1, 'visible' => -1, 'notnull' => 1, 'position' => 175),
Please login to merge, or discard this patch.
htdocs/ecm/class/ecmdirectory.class.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
         return $ret;
559 559
     }
560 560
 
561
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
561
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
562 562
     /**
563 563
      *  Load this->motherof that is array(id_son=>id_parent, ...)
564 564
      *
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
      */
567 567
     public function load_motherof()
568 568
     {
569
-		// phpcs:enable
569
+        // phpcs:enable
570 570
         global $conf;
571 571
 
572 572
         $this->motherof = array();
@@ -603,7 +603,7 @@  discard block
 block discarded – undo
603 603
         return $this->LibStatut($this->status, $mode);
604 604
     }
605 605
 
606
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
606
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
607 607
     /**
608 608
      *  Return the status
609 609
      *
@@ -613,13 +613,13 @@  discard block
 block discarded – undo
613 613
      */
614 614
     public static function LibStatut($status, $mode = 0)
615 615
     {
616
-		// phpcs:enable
616
+        // phpcs:enable
617 617
         global $langs;
618 618
         return '';
619 619
     }
620 620
 
621 621
 
622
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
622
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
623 623
     /**
624 624
      *  Reconstruit l'arborescence des categories sous la forme d'un tableau à partir de la base de donnée
625 625
      *  Renvoi un tableau de tableau('id','id_mere',...) trie selon arbre et avec:
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
      */
642 642
     public function get_full_arbo($force = 0)
643 643
     {
644
-		// phpcs:enable
644
+        // phpcs:enable
645 645
         global $conf;
646 646
 
647 647
         if (empty($force) && !empty($this->full_arbo_loaded)) {
@@ -789,7 +789,7 @@  discard block
 block discarded – undo
789 789
         }
790 790
     }
791 791
 
792
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
792
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
793 793
     /**
794 794
      * Call trigger based on this instance.
795 795
      * We implement it here because this class doe not extend CommonObject.
@@ -804,7 +804,7 @@  discard block
 block discarded – undo
804 804
      */
805 805
     public function call_trigger($triggerName, $user)
806 806
     {
807
-		// phpcs:enable
807
+        // phpcs:enable
808 808
         global $langs, $conf;
809 809
 
810 810
         include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
Please login to merge, or discard this patch.
htdocs/reception/card.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -966,7 +966,7 @@
 block discarded – undo
966 966
             /**
967 967
              * @var array $suffix2numAsked map HTTP query parameter suffixes (like '1_0') to line indices so that
968 968
              *                             extrafields from HTTP query can be assigned to the correct dispatch line
969
-            */
969
+             */
970 970
             $suffix2numAsked = array();
971 971
             $dispatchLines = array();
972 972
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 
344 344
         // Loop lines to calculate $totalqty
345 345
         for ($i = 1; $i <= $num; $i++) {
346
-            $idl = "idl" . $i;    // id line source
346
+            $idl = "idl" . $i; // id line source
347 347
 
348 348
             //$sub_qty = array();
349 349
             //$subtotalqty = 0;
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
             //$j = 0;
352 352
             //$batch = "batchl".$i."_0";
353 353
             //$stockLocation = "ent1".$i."_0";
354
-            $qty = "qtyl" . $i;   // qty
354
+            $qty = "qtyl" . $i; // qty
355 355
 
356 356
             //reception line for product with no batch management and no multiple stock location
357 357
             if (GETPOST($qty, 'alpha') > 0) {
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
 
366 366
         if ($totalqty > 0) {  // There is at least one thing to ship
367 367
             for ($i = 1; $i <= $num; $i++) {
368
-                $idl = "idl" . $i;    // id line source
368
+                $idl = "idl" . $i; // id line source
369 369
                 $lineToTest = '';
370 370
                 $lineId = GETPOSTINT($idl);
371 371
                 foreach ($objectsrc->lines as $linesrc) {
@@ -1144,7 +1144,7 @@  discard block
 block discarded – undo
1144 1144
 
1145 1145
                     print '<input type="hidden" name="productl' . $indiceAsked . '" value="' . $line->fk_product . '">';
1146 1146
 
1147
-                    if (! array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1147
+                    if (!array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1148 1148
                         print '<input type="hidden" name="productid' . $indiceAsked . '" value="' . $line->fk_product . '">';
1149 1149
 
1150 1150
                         // Show product and description
@@ -1166,7 +1166,7 @@  discard block
 block discarded – undo
1166 1166
                     print '</td>';
1167 1167
                 } else {
1168 1168
                     print "<td>";
1169
-                    if (! array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1169
+                    if (!array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1170 1170
                         if ($type == 1) {
1171 1171
                             $text = img_object($langs->trans('Service'), 'service');
1172 1172
                         } else {
@@ -1195,7 +1195,7 @@  discard block
 block discarded – undo
1195 1195
 
1196 1196
                 // Qty in source purchase order line
1197 1197
                 print '<td class="center">';
1198
-                if (! array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1198
+                if (!array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1199 1199
                     print $line->qty;
1200 1200
                 }
1201 1201
                 print '<input type="hidden" name="fk_commandefournisseurdet' . $indiceAsked . '" value="' . $line->id . '">';
@@ -1207,7 +1207,7 @@  discard block
 block discarded – undo
1207 1207
                 // Qty already received
1208 1208
                 print '<td class="center">';
1209 1209
                 $quantityDelivered = $objectsrc->receptions[$line->id];
1210
-                if (! array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1210
+                if (!array_key_exists($line->id, $arrayofpurchaselinealreadyoutput)) { // Add test to avoid to show qty twice
1211 1211
                     print $quantityDelivered;
1212 1212
                 }
1213 1213
                 print '<input name="qtydelivered' . $indiceAsked . '" id="qtydelivered' . $indiceAsked . '" type="hidden" value="' . $quantityDelivered . '">';
Please login to merge, or discard this patch.
htdocs/admin/dolistore/class/dolistore.class.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         }
199 199
     }
200 200
 
201
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
201
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
202 202
     /**
203 203
      * Return tree of Dolistore categories. $this->categories must have been loaded before.
204 204
      *
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      */
208 208
     public function get_categories($parent = 0)
209 209
     {
210
-		// phpcs:enable
210
+        // phpcs:enable
211 211
         if (!isset($this->categories)) {
212 212
             die('not possible');
213 213
         }
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
         }
246 246
     }
247 247
 
248
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
248
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
249 249
     /**
250 250
      * Return list of product formatted for output
251 251
      *
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
      */
254 254
     public function get_products()
255 255
     {
256
-		// phpcs:enable
256
+        // phpcs:enable
257 257
         global $langs, $conf;
258 258
         $html       = "";
259 259
         $last_month = time() - (30 * 24 * 60 * 60);
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         return $html;
343 343
     }
344 344
 
345
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
345
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
346 346
     /**
347 347
      * get previous link
348 348
      *
@@ -351,11 +351,11 @@  discard block
 block discarded – undo
351 351
      */
352 352
     public function get_previous_link($text = '<<')
353 353
     {
354
-		// phpcs:enable
354
+        // phpcs:enable
355 355
         return '<a href="' . $this->get_previous_url() . '" class="button">' . dol_escape_htmltag($text) . '</a>';
356 356
     }
357 357
 
358
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
358
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
359 359
     /**
360 360
      * get next link
361 361
      *
@@ -364,11 +364,11 @@  discard block
 block discarded – undo
364 364
      */
365 365
     public function get_next_link($text = '>>')
366 366
     {
367
-		// phpcs:enable
367
+        // phpcs:enable
368 368
         return '<a href="' . $this->get_next_url() . '" class="button">' . dol_escape_htmltag($text) . '</a>';
369 369
     }
370 370
 
371
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
371
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
372 372
     /**
373 373
      * get previous url
374 374
      *
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      */
377 377
     public function get_previous_url()
378 378
     {
379
-		// phpcs:enable
379
+        // phpcs:enable
380 380
         $param_array = array();
381 381
         if ($this->start < $this->per_page) {
382 382
             $sub = 0;
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
         return $this->url . "&" . $param;
393 393
     }
394 394
 
395
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
395
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
396 396
     /**
397 397
      * get next url
398 398
      *
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
      */
401 401
     public function get_next_url()
402 402
     {
403
-		// phpcs:enable
403
+        // phpcs:enable
404 404
         $param_array = array();
405 405
         if (count($this->products) < $this->per_page) {
406 406
             $add = 0;
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
         return $this->url . "&" . $param;
417 417
     }
418 418
 
419
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
419
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
420 420
     /**
421 421
      * version compare
422 422
      *
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
      */
427 427
     public function version_compare($v1, $v2)
428 428
     {
429
-		// phpcs:enable
429
+        // phpcs:enable
430 430
         $v1       = explode('.', $v1);
431 431
         $v2       = explode('.', $v2);
432 432
         $ret      = 0;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -324,12 +324,12 @@
 block discarded – undo
324 324
             //output template
325 325
             $html .= '<tr class="app oddeven ' . dol_escape_htmltag($compatible) . '">';
326 326
             $html .= '<td class="center" width="210"><div class="newAppParent">';
327
-            $html .= $newapp . $images;   // No dol_escape_htmltag, it is already escape html
327
+            $html .= $newapp . $images; // No dol_escape_htmltag, it is already escape html
328 328
             $html .= '</div></td>';
329 329
             $html .= '<td class="margeCote"><h2 class="appTitle">';
330 330
             $html .= dol_escape_htmltag($product->name->language[$this->lang - 1]);
331 331
             $html .= '<br><small>';
332
-            $html .= $version;          // No dol_escape_htmltag, it is already escape html
332
+            $html .= $version; // No dol_escape_htmltag, it is already escape html
333 333
             $html .= '</small></h2>';
334 334
             $html .= '<small> ' . dol_print_date(dol_stringtotime($product->date_upd), 'dayhour') . ' - ' . $langs->trans('Ref') . ': ' . dol_escape_htmltag($product->reference) . ' - ' . dol_escape_htmltag($langs->trans('Id')) . ': ' . ((int) $product->id) . '</small><br><br>' . dol_escape_htmltag($product->description_short->language[$this->lang - 1]) . '</td>';
335 335
             // do not load if display none
Please login to merge, or discard this patch.
htdocs/core/tpl/contacts.tpl.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
         <div class="tagtd center noborderbottom">
190 190
             <input type="submit" id="add-customer-contact" class="button small" value="<?php echo $langs->trans("Add"); ?>"<?php if (!$nbofcontacts) {
191 191
                 echo ' disabled';
192
-                                                                                       } ?>>
192
+                                                                                        } ?>>
193 193
         </div>
194 194
     </form>
195 195
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 $module = $object->element;
41 41
 
42 42
 // Special cases
43
-if (isset($permissiontoadd) && ! isset($permission)) {
43
+if (isset($permissiontoadd) && !isset($permission)) {
44 44
     $permission = $permissiontoadd;
45 45
 }
46 46
 // TODO Remove this section. We already got $permissiontoadd.
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         <div class="tagtd nowrap noborderbottom">
165 165
             <?php
166 166
             $selectedCompany = GETPOSTISSET("newcompany") ? GETPOSTINT("newcompany") : (empty($object->socid) ? 0 : $object->socid);
167
-            $selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp');  // This also print the select component?>
167
+            $selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp'); // This also print the select component?>
168 168
         </div>
169 169
         <div class="tagtd noborderbottom minwidth500imp">
170 170
             <?php
Please login to merge, or discard this patch.
htdocs/core/db/pgsql.class.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
         return $line;
377 377
     }
378 378
 
379
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
379
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
380 380
     /**
381 381
      *  Select a database
382 382
      *  PostgreSQL does not have an equivalent for `mysql_select_db`
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
      */
388 388
     public function select_db($database)
389 389
     {
390
-		// phpcs:enable
390
+        // phpcs:enable
391 391
         if ($database == $this->database_name) {
392 392
             return true;
393 393
         } else {
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
         return $ret;
585 585
     }
586 586
 
587
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
587
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
588 588
     /**
589 589
      *  Returns the current line (as an object) for the resultset cursor
590 590
      *
@@ -593,7 +593,7 @@  discard block
 block discarded – undo
593 593
      */
594 594
     public function fetch_object($resultset)
595 595
     {
596
-		// phpcs:enable
596
+        // phpcs:enable
597 597
         // If resultset not provided, we take the last used by connection
598 598
         if (!is_resource($resultset) && !is_object($resultset)) {
599 599
             $resultset = $this->_results;
@@ -601,7 +601,7 @@  discard block
 block discarded – undo
601 601
         return pg_fetch_object($resultset);
602 602
     }
603 603
 
604
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
604
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
605 605
     /**
606 606
      *  Return datas as an array
607 607
      *
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
      */
611 611
     public function fetch_array($resultset)
612 612
     {
613
-		// phpcs:enable
613
+        // phpcs:enable
614 614
         // If resultset not provided, we take the last used by connection
615 615
         if (!is_resource($resultset) && !is_object($resultset)) {
616 616
             $resultset = $this->_results;
@@ -618,7 +618,7 @@  discard block
 block discarded – undo
618 618
         return pg_fetch_array($resultset);
619 619
     }
620 620
 
621
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
621
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
622 622
     /**
623 623
      *  Return datas as an array
624 624
      *
@@ -627,7 +627,7 @@  discard block
 block discarded – undo
627 627
      */
628 628
     public function fetch_row($resultset)
629 629
     {
630
-		// phpcs:enable
630
+        // phpcs:enable
631 631
         // Si le resultset n'est pas fourni, on prend le dernier utilise sur cette connection
632 632
         if (!is_resource($resultset) && !is_object($resultset)) {
633 633
             $resultset = $this->_results;
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
         return pg_fetch_row($resultset);
636 636
     }
637 637
 
638
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
638
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
639 639
     /**
640 640
      *  Return number of lines for result of a SELECT
641 641
      *
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
      */
646 646
     public function num_rows($resultset)
647 647
     {
648
-		// phpcs:enable
648
+        // phpcs:enable
649 649
         // If resultset not provided, we take the last used by connection
650 650
         if (!is_resource($resultset) && !is_object($resultset)) {
651 651
             $resultset = $this->_results;
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
         return pg_num_rows($resultset);
654 654
     }
655 655
 
656
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
656
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
657 657
     /**
658 658
      * Return the number of lines in the result of a request INSERT, DELETE or UPDATE
659 659
      *
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
      */
664 664
     public function affected_rows($resultset)
665 665
     {
666
-		// phpcs:enable
666
+        // phpcs:enable
667 667
         // If resultset not provided, we take the last used by connection
668 668
         if (!is_resource($resultset) && !is_object($resultset)) {
669 669
             $resultset = $this->_results;
@@ -844,7 +844,7 @@  discard block
 block discarded – undo
844 844
         return pg_last_error($this->db);
845 845
     }
846 846
 
847
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
847
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
848 848
     /**
849 849
      * Get last ID after an insert INSERT
850 850
      *
@@ -854,7 +854,7 @@  discard block
 block discarded – undo
854 854
      */
855 855
     public function last_insert_id($tab, $fieldid = 'rowid')
856 856
     {
857
-		// phpcs:enable
857
+        // phpcs:enable
858 858
         //$result = pg_query($this->db,"SELECT MAX(".$fieldid.") FROM ".$tab);
859 859
         $result = pg_query($this->db, "SELECT currval('" . $tab . "_" . $fieldid . "_seq')");
860 860
         if (!$result) {
@@ -910,7 +910,7 @@  discard block
 block discarded – undo
910 910
     }
911 911
 
912 912
 
913
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
913
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
914 914
     /**
915 915
      * Return connection ID
916 916
      *
@@ -918,13 +918,13 @@  discard block
 block discarded – undo
918 918
      */
919 919
     public function DDLGetConnectId()
920 920
     {
921
-		// phpcs:enable
921
+        // phpcs:enable
922 922
         return '?';
923 923
     }
924 924
 
925 925
 
926 926
 
927
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
927
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
928 928
     /**
929 929
      *  Create a new database
930 930
      *  Do not use function xxx_create_db (xxx=mysql, ...) as they are deprecated
@@ -938,7 +938,7 @@  discard block
 block discarded – undo
938 938
      */
939 939
     public function DDLCreateDb($database, $charset = '', $collation = '', $owner = '')
940 940
     {
941
-		// phpcs:enable
941
+        // phpcs:enable
942 942
         if (empty($charset)) {
943 943
             $charset = $this->forcecharset;
944 944
         }
@@ -956,7 +956,7 @@  discard block
 block discarded – undo
956 956
         return $ret;
957 957
     }
958 958
 
959
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
959
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
960 960
     /**
961 961
      *  List tables into a database
962 962
      *
@@ -966,7 +966,7 @@  discard block
 block discarded – undo
966 966
      */
967 967
     public function DDLListTables($database, $table = '')
968 968
     {
969
-		// phpcs:enable
969
+        // phpcs:enable
970 970
         $listtables = array();
971 971
 
972 972
         $escapedlike = '';
@@ -984,7 +984,7 @@  discard block
 block discarded – undo
984 984
         return $listtables;
985 985
     }
986 986
 
987
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
987
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
988 988
     /**
989 989
      *  List tables into a database
990 990
      *
@@ -994,7 +994,7 @@  discard block
 block discarded – undo
994 994
      */
995 995
     public function DDLListTablesFull($database, $table = '')
996 996
     {
997
-		// phpcs:enable
997
+        // phpcs:enable
998 998
         $listtables = array();
999 999
 
1000 1000
         $escapedlike = '';
@@ -1012,7 +1012,7 @@  discard block
 block discarded – undo
1012 1012
         return $listtables;
1013 1013
     }
1014 1014
 
1015
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1015
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1016 1016
     /**
1017 1017
      *  List information of columns into a table.
1018 1018
      *
@@ -1022,7 +1022,7 @@  discard block
 block discarded – undo
1022 1022
      */
1023 1023
     public function DDLInfoTable($table)
1024 1024
     {
1025
-		// phpcs:enable
1025
+        // phpcs:enable
1026 1026
         $infotables = array();
1027 1027
 
1028 1028
         $sql = "SELECT ";
@@ -1052,7 +1052,7 @@  discard block
 block discarded – undo
1052 1052
     }
1053 1053
 
1054 1054
 
1055
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1055
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1056 1056
     /**
1057 1057
      *  Create a table into database
1058 1058
      *
@@ -1067,7 +1067,7 @@  discard block
 block discarded – undo
1067 1067
      */
1068 1068
     public function DDLCreateTable($table, $fields, $primary_key, $type, $unique_keys = null, $fulltext_keys = null, $keys = null)
1069 1069
     {
1070
-		// phpcs:enable
1070
+        // phpcs:enable
1071 1071
         // FIXME: $fulltext_keys parameter is unused
1072 1072
 
1073 1073
         $sqlfields = array();
@@ -1136,7 +1136,7 @@  discard block
 block discarded – undo
1136 1136
         }
1137 1137
     }
1138 1138
 
1139
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1139
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1140 1140
     /**
1141 1141
      *  Drop a table into database
1142 1142
      *
@@ -1145,7 +1145,7 @@  discard block
 block discarded – undo
1145 1145
      */
1146 1146
     public function DDLDropTable($table)
1147 1147
     {
1148
-		// phpcs:enable
1148
+        // phpcs:enable
1149 1149
         $tmptable = preg_replace('/[^a-z0-9\.\-\_]/i', '', $table);
1150 1150
 
1151 1151
         $sql = "DROP TABLE " . $tmptable;
@@ -1157,7 +1157,7 @@  discard block
 block discarded – undo
1157 1157
         }
1158 1158
     }
1159 1159
 
1160
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1160
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1161 1161
     /**
1162 1162
      *  Create a user to connect to database
1163 1163
      *
@@ -1169,7 +1169,7 @@  discard block
 block discarded – undo
1169 1169
      */
1170 1170
     public function DDLCreateUser($dolibarr_main_db_host, $dolibarr_main_db_user, $dolibarr_main_db_pass, $dolibarr_main_db_name)
1171 1171
     {
1172
-		// phpcs:enable
1172
+        // phpcs:enable
1173 1173
         // Note: using ' on user does not works with pgsql
1174 1174
         $sql = "CREATE USER " . $this->escape($dolibarr_main_db_user) . " with password '" . $this->escape($dolibarr_main_db_pass) . "'";
1175 1175
 
@@ -1182,7 +1182,7 @@  discard block
 block discarded – undo
1182 1182
         return 1;
1183 1183
     }
1184 1184
 
1185
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1185
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1186 1186
     /**
1187 1187
      *  Return a pointer of line with description of a table or field
1188 1188
      *
@@ -1192,7 +1192,7 @@  discard block
 block discarded – undo
1192 1192
      */
1193 1193
     public function DDLDescTable($table, $field = "")
1194 1194
     {
1195
-		// phpcs:enable
1195
+        // phpcs:enable
1196 1196
         $sql = "SELECT attname FROM pg_attribute, pg_type WHERE typname = '" . $this->escape($table) . "' AND attrelid = typrelid";
1197 1197
         $sql .= " AND attname NOT IN ('cmin', 'cmax', 'ctid', 'oid', 'tableoid', 'xmin', 'xmax')";
1198 1198
         if ($field) {
@@ -1204,7 +1204,7 @@  discard block
 block discarded – undo
1204 1204
         return $this->_results;
1205 1205
     }
1206 1206
 
1207
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1207
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1208 1208
     /**
1209 1209
      *  Create a new field into table
1210 1210
      *
@@ -1216,7 +1216,7 @@  discard block
 block discarded – undo
1216 1216
      */
1217 1217
     public function DDLAddField($table, $field_name, $field_desc, $field_position = "")
1218 1218
     {
1219
-		// phpcs:enable
1219
+        // phpcs:enable
1220 1220
         // cles recherchees dans le tableau des descriptions (field_desc) : type,value,attribute,null,default,extra
1221 1221
         // ex. : $field_desc = array('type'=>'int','value'=>'11','null'=>'not null','extra'=> 'auto_increment');
1222 1222
         $sql = "ALTER TABLE " . $table . " ADD " . $field_name . " ";
@@ -1251,7 +1251,7 @@  discard block
 block discarded – undo
1251 1251
         return 1;
1252 1252
     }
1253 1253
 
1254
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1254
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1255 1255
     /**
1256 1256
      *  Update format of a field into a table
1257 1257
      *
@@ -1262,7 +1262,7 @@  discard block
 block discarded – undo
1262 1262
      */
1263 1263
     public function DDLUpdateField($table, $field_name, $field_desc)
1264 1264
     {
1265
-		// phpcs:enable
1265
+        // phpcs:enable
1266 1266
         $sql = "ALTER TABLE " . $table;
1267 1267
         $sql .= " ALTER COLUMN " . $this->escape($field_name) . " TYPE " . $field_desc['type'];
1268 1268
         if (preg_match("/^[^\s]/i", $field_desc['value'])) {
@@ -1297,7 +1297,7 @@  discard block
 block discarded – undo
1297 1297
         return 1;
1298 1298
     }
1299 1299
 
1300
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1300
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1301 1301
     /**
1302 1302
      *  Drop a field from table
1303 1303
      *
@@ -1307,7 +1307,7 @@  discard block
 block discarded – undo
1307 1307
      */
1308 1308
     public function DDLDropField($table, $field_name)
1309 1309
     {
1310
-		// phpcs:enable
1310
+        // phpcs:enable
1311 1311
         $tmp_field_name = preg_replace('/[^a-z0-9\.\-\_]/i', '', $field_name);
1312 1312
 
1313 1313
         $sql = "ALTER TABLE " . $table . " DROP COLUMN " . $tmp_field_name;
Please login to merge, or discard this patch.
htdocs/core/db/Database.interface.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      */
37 37
     public function ifsql($test, $resok, $resko);
38 38
 
39
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
39
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
40 40
     /**
41 41
      * Return datas as an array
42 42
      *
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @return  array                    Array
45 45
      */
46 46
     public function fetch_row($resultset);
47
-	// phpcs:enable
47
+    // phpcs:enable
48 48
 
49 49
     /**
50 50
      * Convert (by PHP) a GM Timestamp date into a string date with PHP server TZ to insert into a date field.
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function begin($textinlog = '');
72 72
 
73
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
73
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
74 74
     /**
75 75
      * Create a new database
76 76
      * Do not use function xxx_create_db (xxx=mysql, ...) as they are deprecated
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @return  resource                    resource defined if OK, null if KO
84 84
      */
85 85
     public function DDLCreateDb($database, $charset = '', $collation = '', $owner = '');
86
-	// phpcs:enable
86
+    // phpcs:enable
87 87
 
88 88
     /**
89 89
      * Return version of database server into an array
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function convertSQLFromMysql($line, $type = 'ddl');
103 103
 
104
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
104
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
105 105
     /**
106 106
      * Return the number of lines in the result of a request INSERT, DELETE or UPDATE
107 107
      *
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      * @see     num_rows()
111 111
      */
112 112
     public function affected_rows($resultset);
113
-	// phpcs:enable
113
+    // phpcs:enable
114 114
 
115 115
     /**
116 116
      * Return description of last error
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function error();
121 121
 
122
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
122
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
123 123
     /**
124 124
      *  List tables into a database
125 125
      *
@@ -128,9 +128,9 @@  discard block
 block discarded – undo
128 128
      *  @return array                   List of tables in an array
129 129
      */
130 130
     public function DDLListTables($database, $table = '');
131
-	// phpcs:enable
131
+    // phpcs:enable
132 132
 
133
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
133
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
134 134
     /**
135 135
      *  List tables into a database with table type
136 136
      *
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      *  @return array                   List of tables in an array
140 140
      */
141 141
     public function DDLListTablesFull($database, $table = '');
142
-	// phpcs:enable
142
+    // phpcs:enable
143 143
 
144 144
     /**
145 145
      * Return last request executed with query()
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      */
166 166
     public function decrypt($value);
167 167
 
168
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
168
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
169 169
     /**
170 170
      *    Return datas as an array
171 171
      *
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      * @return  array                    Array
174 174
      */
175 175
     public function fetch_array($resultset);
176
-	// phpcs:enable
176
+    // phpcs:enable
177 177
 
178 178
     /**
179 179
      * Return last error label
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
      */
208 208
     public function sanitize($stringtosanitize);
209 209
 
210
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
210
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
211 211
     /**
212 212
      * Get last ID after an insert INSERT
213 213
      *
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      * @return  int                 Id of row
217 217
      */
218 218
     public function last_insert_id($tab, $fieldid = 'rowid');
219
-	// phpcs:enable
219
+    // phpcs:enable
220 220
 
221 221
     /**
222 222
      *    Return full path of restore program
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
      */
291 291
     public function getDefaultCollationDatabase();
292 292
 
293
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
293
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
294 294
     /**
295 295
      * Return number of lines for result of a SELECT
296 296
      *
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
      * @see     affected_rows()
300 300
      */
301 301
     public function num_rows($resultset);
302
-	// phpcs:enable
302
+    // phpcs:enable
303 303
 
304 304
     /**
305 305
      * Return full path of dump program
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
      */
323 323
     public function errno();
324 324
 
325
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
325
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
326 326
     /**
327 327
      * Create a table into database
328 328
      *
@@ -336,9 +336,9 @@  discard block
 block discarded – undo
336 336
      * @return       int                    Return integer <0 if KO, >=0 if OK
337 337
      */
338 338
     public function DDLCreateTable($table, $fields, $primary_key, $type, $unique_keys = null, $fulltext_keys = null, $keys = null);
339
-	// phpcs:enable
339
+    // phpcs:enable
340 340
 
341
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
341
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
342 342
     /**
343 343
      * Drop a table into database
344 344
      *
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
      * @return       int                    Return integer <0 if KO, >=0 if OK
347 347
      */
348 348
     public function DDLDropTable($table);
349
-	// phpcs:enable
349
+    // phpcs:enable
350 350
 
351 351
     /**
352 352
      * Return list of available charset that can be used to store data in database
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
      */
356 356
     public function getListOfCharacterSet();
357 357
 
358
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
358
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
359 359
     /**
360 360
      * Create a new field into table
361 361
      *
@@ -366,9 +366,9 @@  discard block
 block discarded – undo
366 366
      * @return   int                        Return integer <0 if KO, >0 if OK
367 367
      */
368 368
     public function DDLAddField($table, $field_name, $field_desc, $field_position = "");
369
-	// phpcs:enable
369
+    // phpcs:enable
370 370
 
371
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
371
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
372 372
     /**
373 373
      * Drop a field from table
374 374
      *
@@ -377,9 +377,9 @@  discard block
 block discarded – undo
377 377
      * @return   int                        Return integer <0 if KO, >0 if OK
378 378
      */
379 379
     public function DDLDropField($table, $field_name);
380
-	// phpcs:enable
380
+    // phpcs:enable
381 381
 
382
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
382
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
383 383
     /**
384 384
      * Update format of a field into a table
385 385
      *
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
      * @return   int                        Return integer <0 if KO, >0 if OK
390 390
      */
391 391
     public function DDLUpdateField($table, $field_name, $field_desc);
392
-	// phpcs:enable
392
+    // phpcs:enable
393 393
 
394 394
     /**
395 395
      * Return list of available collation that can be used for database
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
      */
399 399
     public function getListOfCollation();
400 400
 
401
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
401
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
402 402
     /**
403 403
      * Return a pointer of line with description of a table or field
404 404
      *
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
      * @return   resource                   Resource
408 408
      */
409 409
     public function DDLDescTable($table, $field = "");
410
-	// phpcs:enable
410
+    // phpcs:enable
411 411
 
412 412
     /**
413 413
      * Return version of database server
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
      */
424 424
     public function getDefaultCharacterSetDatabase();
425 425
 
426
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
426
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
427 427
     /**
428 428
      * Create a user and privileges to connect to database (even if database does not exists yet)
429 429
      *
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
         $dolibarr_main_db_pass,
440 440
         $dolibarr_main_db_name
441 441
     );
442
-	// phpcs:enable
442
+    // phpcs:enable
443 443
 
444 444
     /**
445 445
      * Convert (by PHP) a PHP server TZ string date into a Timestamps date (GMT if gm=true)
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
      */
471 471
     public function commit($log = '');
472 472
 
473
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
473
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
474 474
     /**
475 475
      * List information of columns into a table.
476 476
      *
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
      * @return  array                           Array with information on table
479 479
      */
480 480
     public function DDLInfoTable($table);
481
-	// phpcs:enable
481
+    // phpcs:enable
482 482
 
483 483
     /**
484 484
      * Free last resultset used.
@@ -503,16 +503,16 @@  discard block
 block discarded – undo
503 503
      */
504 504
     public function lastqueryerror();
505 505
 
506
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
506
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
507 507
     /**
508 508
      * Return connection ID
509 509
      *
510 510
      * @return  string      Id connection
511 511
      */
512 512
     public function DDLGetConnectId();
513
-	// phpcs:enable
513
+    // phpcs:enable
514 514
 
515
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
515
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
516 516
     /**
517 517
      * Returns the current line (as an object) for the resultset cursor
518 518
      *
@@ -520,9 +520,9 @@  discard block
 block discarded – undo
520 520
      * @return  Object|false                                    Object result line or false if KO or end of cursor
521 521
      */
522 522
     public function fetch_object($resultset);
523
-	// phpcs:enable
523
+    // phpcs:enable
524 524
 
525
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
525
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
526 526
     /**
527 527
      * Select a database
528 528
      *
@@ -530,5 +530,5 @@  discard block
 block discarded – undo
530 530
      * @return  boolean            true if OK, false if KO
531 531
      */
532 532
     public function select_db($database);
533
-	// phpcs:enable
533
+    // phpcs:enable
534 534
 }
Please login to merge, or discard this patch.
htdocs/core/db/sqlite3.class.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
         return $line;
292 292
     }
293 293
 
294
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
294
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
295 295
     /**
296 296
      *  Select a database
297 297
      *
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      */
301 301
     public function select_db($database)
302 302
     {
303
-		// phpcs:enable
303
+        // phpcs:enable
304 304
         dol_syslog(get_class($this) . "::select_db database=" . $database, LOG_DEBUG);
305 305
         // sqlite_select_db() does not exist
306 306
         //return sqlite_select_db($this->db,$database);
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
         return $ret;
508 508
     }
509 509
 
510
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
510
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
511 511
     /**
512 512
      *  Returns the current line (as an object) for the resultset cursor
513 513
      *
@@ -516,7 +516,7 @@  discard block
 block discarded – undo
516 516
      */
517 517
     public function fetch_object($resultset)
518 518
     {
519
-		// phpcs:enable
519
+        // phpcs:enable
520 520
         // Si le resultset n'est pas fourni, on prend le dernier utilise sur cette connection
521 521
         if (!is_object($resultset)) {
522 522
             $resultset = $this->_results;
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
     }
531 531
 
532 532
 
533
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
533
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
534 534
     /**
535 535
      *  Return datas as an array
536 536
      *
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
      */
540 540
     public function fetch_array($resultset)
541 541
     {
542
-		// phpcs:enable
542
+        // phpcs:enable
543 543
         // If resultset not provided, we take the last used by connection
544 544
         if (!is_object($resultset)) {
545 545
             $resultset = $this->_results;
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
         return $ret;
550 550
     }
551 551
 
552
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
552
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
553 553
     /**
554 554
      *  Return datas as an array
555 555
      *
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
      */
559 559
     public function fetch_row($resultset)
560 560
     {
561
-		// phpcs:enable
561
+        // phpcs:enable
562 562
         // If resultset not provided, we take the last used by connection
563 563
         if (!is_bool($resultset)) {
564 564
             if (!is_object($resultset)) {
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
         }
572 572
     }
573 573
 
574
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
574
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
575 575
     /**
576 576
      *  Return number of lines for result of a SELECT
577 577
      *
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
      */
582 582
     public function num_rows($resultset)
583 583
     {
584
-		// phpcs:enable
584
+        // phpcs:enable
585 585
         // FIXME: SQLite3Result does not have a queryString member
586 586
 
587 587
         // If resultset not provided, we take the last used by connection
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
         return 0;
595 595
     }
596 596
 
597
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
597
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
598 598
     /**
599 599
      *  Return number of lines for result of a SELECT
600 600
      *
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
      */
605 605
     public function affected_rows($resultset)
606 606
     {
607
-		// phpcs:enable
607
+        // phpcs:enable
608 608
         // FIXME: SQLite3Result does not have a queryString member
609 609
 
610 610
         // If resultset not provided, we take the last used by connection
@@ -744,7 +744,7 @@  discard block
 block discarded – undo
744 744
         }
745 745
     }
746 746
 
747
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
747
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
748 748
     /**
749 749
      * Get last ID after an insert INSERT
750 750
      *
@@ -754,7 +754,7 @@  discard block
 block discarded – undo
754 754
      */
755 755
     public function last_insert_id($tab, $fieldid = 'rowid')
756 756
     {
757
-		// phpcs:enable
757
+        // phpcs:enable
758 758
         return $this->db->lastInsertRowId();
759 759
     }
760 760
 
@@ -819,7 +819,7 @@  discard block
 block discarded – undo
819 819
     }
820 820
 
821 821
 
822
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
822
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
823 823
     /**
824 824
      * Return connection ID
825 825
      *
@@ -827,12 +827,12 @@  discard block
 block discarded – undo
827 827
      */
828 828
     public function DDLGetConnectId()
829 829
     {
830
-		// phpcs:enable
830
+        // phpcs:enable
831 831
         return '?';
832 832
     }
833 833
 
834 834
 
835
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
835
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
836 836
     /**
837 837
      *  Create a new database
838 838
      *  Do not use function xxx_create_db (xxx=mysql, ...) as they are deprecated
@@ -846,7 +846,7 @@  discard block
 block discarded – undo
846 846
      */
847 847
     public function DDLCreateDb($database, $charset = '', $collation = '', $owner = '')
848 848
     {
849
-		// phpcs:enable
849
+        // phpcs:enable
850 850
         if (empty($charset)) {
851 851
             $charset = $this->forcecharset;
852 852
         }
@@ -864,7 +864,7 @@  discard block
 block discarded – undo
864 864
         return $ret;
865 865
     }
866 866
 
867
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
867
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
868 868
     /**
869 869
      *  List tables into a database
870 870
      *
@@ -874,7 +874,7 @@  discard block
 block discarded – undo
874 874
      */
875 875
     public function DDLListTables($database, $table = '')
876 876
     {
877
-		// phpcs:enable
877
+        // phpcs:enable
878 878
         $listtables = array();
879 879
 
880 880
         $like = '';
@@ -896,7 +896,7 @@  discard block
 block discarded – undo
896 896
         return $listtables;
897 897
     }
898 898
 
899
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
899
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
900 900
     /**
901 901
      *  List tables into a database with table type
902 902
      *
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
      */
907 907
     public function DDLListTablesFull($database, $table = '')
908 908
     {
909
-		// phpcs:enable
909
+        // phpcs:enable
910 910
         $listtables = array();
911 911
 
912 912
         $like = '';
@@ -928,7 +928,7 @@  discard block
 block discarded – undo
928 928
         return $listtables;
929 929
     }
930 930
 
931
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
931
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
932 932
     /**
933 933
      *  List information of columns into a table.
934 934
      *
@@ -938,7 +938,7 @@  discard block
 block discarded – undo
938 938
      */
939 939
     public function DDLInfoTable($table)
940 940
     {
941
-		// phpcs:enable
941
+        // phpcs:enable
942 942
         $infotables = array();
943 943
 
944 944
         $tmptable = preg_replace('/[^a-z0-9\.\-\_]/i', '', $table);
@@ -955,7 +955,7 @@  discard block
 block discarded – undo
955 955
         return $infotables;
956 956
     }
957 957
 
958
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
958
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
959 959
     /**
960 960
      *  Create a table into database
961 961
      *
@@ -970,7 +970,7 @@  discard block
 block discarded – undo
970 970
      */
971 971
     public function DDLCreateTable($table, $fields, $primary_key, $type, $unique_keys = null, $fulltext_keys = null, $keys = null)
972 972
     {
973
-		// phpcs:enable
973
+        // phpcs:enable
974 974
         // FIXME: $fulltext_keys parameter is unused
975 975
 
976 976
         $sqlfields = array();
@@ -1038,7 +1038,7 @@  discard block
 block discarded – undo
1038 1038
         return 1;
1039 1039
     }
1040 1040
 
1041
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1041
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1042 1042
     /**
1043 1043
      *  Drop a table into database
1044 1044
      *
@@ -1047,7 +1047,7 @@  discard block
 block discarded – undo
1047 1047
      */
1048 1048
     public function DDLDropTable($table)
1049 1049
     {
1050
-		// phpcs:enable
1050
+        // phpcs:enable
1051 1051
         $tmptable = preg_replace('/[^a-z0-9\.\-\_]/i', '', $table);
1052 1052
 
1053 1053
         $sql = "DROP TABLE " . $tmptable;
@@ -1059,7 +1059,7 @@  discard block
 block discarded – undo
1059 1059
         }
1060 1060
     }
1061 1061
 
1062
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1062
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1063 1063
     /**
1064 1064
      *  Return a pointer of line with description of a table or field
1065 1065
      *
@@ -1069,7 +1069,7 @@  discard block
 block discarded – undo
1069 1069
      */
1070 1070
     public function DDLDescTable($table, $field = "")
1071 1071
     {
1072
-		// phpcs:enable
1072
+        // phpcs:enable
1073 1073
         $sql = "DESC " . $table . " " . $field;
1074 1074
 
1075 1075
         dol_syslog(get_class($this) . "::DDLDescTable " . $sql, LOG_DEBUG);
@@ -1077,7 +1077,7 @@  discard block
 block discarded – undo
1077 1077
         return $this->_results;
1078 1078
     }
1079 1079
 
1080
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1080
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1081 1081
     /**
1082 1082
      *  Create a new field into table
1083 1083
      *
@@ -1089,7 +1089,7 @@  discard block
 block discarded – undo
1089 1089
      */
1090 1090
     public function DDLAddField($table, $field_name, $field_desc, $field_position = "")
1091 1091
     {
1092
-		// phpcs:enable
1092
+        // phpcs:enable
1093 1093
         // cles recherchees dans le tableau des descriptions (field_desc) : type,value,attribute,null,default,extra
1094 1094
         // ex. : $field_desc = array('type'=>'int','value'=>'11','null'=>'not null','extra'=> 'auto_increment');
1095 1095
         $sql = "ALTER TABLE " . $table . " ADD " . $field_name . " ";
@@ -1124,7 +1124,7 @@  discard block
 block discarded – undo
1124 1124
         return 1;
1125 1125
     }
1126 1126
 
1127
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1127
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1128 1128
     /**
1129 1129
      *  Update format of a field into a table
1130 1130
      *
@@ -1135,7 +1135,7 @@  discard block
 block discarded – undo
1135 1135
      */
1136 1136
     public function DDLUpdateField($table, $field_name, $field_desc)
1137 1137
     {
1138
-		// phpcs:enable
1138
+        // phpcs:enable
1139 1139
         $sql = "ALTER TABLE " . $table;
1140 1140
         $sql .= " MODIFY COLUMN " . $field_name . " " . $field_desc['type'];
1141 1141
         if ($field_desc['type'] == 'tinyint' || $field_desc['type'] == 'int' || $field_desc['type'] == 'varchar') {
@@ -1149,7 +1149,7 @@  discard block
 block discarded – undo
1149 1149
         return 1;
1150 1150
     }
1151 1151
 
1152
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1152
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1153 1153
     /**
1154 1154
      *  Drop a field from table
1155 1155
      *
@@ -1159,7 +1159,7 @@  discard block
 block discarded – undo
1159 1159
      */
1160 1160
     public function DDLDropField($table, $field_name)
1161 1161
     {
1162
-		// phpcs:enable
1162
+        // phpcs:enable
1163 1163
         $tmp_field_name = preg_replace('/[^a-z0-9\.\-\_]/i', '', $field_name);
1164 1164
 
1165 1165
         $sql = "ALTER TABLE " . $table . " DROP COLUMN `" . $tmp_field_name . "`";
@@ -1171,7 +1171,7 @@  discard block
 block discarded – undo
1171 1171
     }
1172 1172
 
1173 1173
 
1174
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1174
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1175 1175
     /**
1176 1176
      *  Create a user and privileges to connect to database (even if database does not exists yet)
1177 1177
      *
@@ -1183,7 +1183,7 @@  discard block
 block discarded – undo
1183 1183
      */
1184 1184
     public function DDLCreateUser($dolibarr_main_db_host, $dolibarr_main_db_user, $dolibarr_main_db_pass, $dolibarr_main_db_name)
1185 1185
     {
1186
-		// phpcs:enable
1186
+        // phpcs:enable
1187 1187
         $sql = "INSERT INTO user ";
1188 1188
         $sql .= "(Host,User,password,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Drop_priv,Index_Priv,Alter_priv,Lock_tables_priv)";
1189 1189
         $sql .= " VALUES ('" . $this->escape($dolibarr_main_db_host) . "','" . $this->escape($dolibarr_main_db_user) . "',password('" . addslashes($dolibarr_main_db_pass) . "')";
@@ -1398,7 +1398,7 @@  discard block
 block discarded – undo
1398 1398
         }
1399 1399
     }
1400 1400
 
1401
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1401
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1402 1402
     /**
1403 1403
      * calc_daynr
1404 1404
      *
@@ -1409,7 +1409,7 @@  discard block
 block discarded – undo
1409 1409
      */
1410 1410
     private static function calc_daynr($year, $month, $day)
1411 1411
     {
1412
-		// phpcs:enable
1412
+        // phpcs:enable
1413 1413
         $y = $year;
1414 1414
         if ($y == 0 && $month == 0) {
1415 1415
             return 0;
@@ -1424,7 +1424,7 @@  discard block
 block discarded – undo
1424 1424
         return (int) ($num + floor($y / 4) - $temp);
1425 1425
     }
1426 1426
 
1427
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1427
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1428 1428
     /**
1429 1429
      * calc_weekday
1430 1430
      *
@@ -1434,12 +1434,12 @@  discard block
 block discarded – undo
1434 1434
      */
1435 1435
     private static function calc_weekday($daynr, $sunday_first_day_of_week)
1436 1436
     {
1437
-		// phpcs:enable
1437
+        // phpcs:enable
1438 1438
         $ret = (int) floor(($daynr + 5 + ($sunday_first_day_of_week ? 1 : 0)) % 7);
1439 1439
         return $ret;
1440 1440
     }
1441 1441
 
1442
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1442
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1443 1443
     /**
1444 1444
      * calc_days_in_year
1445 1445
      *
@@ -1448,11 +1448,11 @@  discard block
 block discarded – undo
1448 1448
      */
1449 1449
     private static function calc_days_in_year($year)
1450 1450
     {
1451
-		// phpcs:enable
1451
+        // phpcs:enable
1452 1452
         return (($year & 3) == 0 && ($year % 100 || ($year % 400 == 0 && $year)) ? 366 : 365);
1453 1453
     }
1454 1454
 
1455
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1455
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1456 1456
     /**
1457 1457
      * calc_week
1458 1458
      *
@@ -1465,7 +1465,7 @@  discard block
 block discarded – undo
1465 1465
      */
1466 1466
     private static function calc_week($year, $month, $day, $week_behaviour, &$calc_year)
1467 1467
     {
1468
-		// phpcs:enable
1468
+        // phpcs:enable
1469 1469
         $daynr = self::calc_daynr($year, $month, $day);
1470 1470
         $first_daynr = self::calc_daynr($year, 1, 1);
1471 1471
         $monday_first = ($week_behaviour & self::WEEK_MONDAY_FIRST) ? 1 : 0;
Please login to merge, or discard this patch.
htdocs/core/lib/prelevement.lib.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -118,13 +118,13 @@
 block discarded – undo
118 118
 }
119 119
 
120 120
     /**
121
- *  Return array head with list of tabs to view object information
122
- *
123
- *  @param  BonPrelevement  $object             Member
124
- *  @param  int             $nbOfInvoices       No of invoices
125
- *  @param  int             $nbOfSalaryInvoice  No of salary invoices
126
- *  @return array                               head
127
- */
121
+     *  Return array head with list of tabs to view object information
122
+     *
123
+     *  @param  BonPrelevement  $object             Member
124
+     *  @param  int             $nbOfInvoices       No of invoices
125
+     *  @param  int             $nbOfSalaryInvoice  No of salary invoices
126
+     *  @return array                               head
127
+     */
128 128
 function bon_prelevement_prepare_head(BonPrelevement $object, $nbOfInvoices, $nbOfSalaryInvoice)
129 129
 {
130 130
     global $langs, $conf;
Please login to merge, or discard this patch.