Passed
Push — dev ( 162356...096618 )
by Rafael
70:47 queued 05:12
created
Dolibarr/Code/FichInter/Classes/FichinterRec.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
     }
350 350
 
351 351
 
352
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
352
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
353 353
     /**
354 354
      *  Load all lines of template of intervention into this->lines
355 355
      *
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
      */
359 359
     public function fetch_lines($sall = 0)
360 360
     {
361
-		// phpcs:enable
361
+        // phpcs:enable
362 362
         $this->lines = array();
363 363
 
364 364
         $sql = 'SELECT l.rowid, l.fk_product, l.product_type as product_type, l.label as custom_label, l.description,';
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
     }
589 589
 
590 590
 
591
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
591
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
592 592
     /**
593 593
      *  Rend la fichinter automatique
594 594
      *
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
      */
600 600
     public function set_auto($user, $freq, $courant)
601 601
     {
602
-		// phpcs:enable
602
+        // phpcs:enable
603 603
         if ($user->hasRight('fichinter', 'creer')) {
604 604
             $sql = "UPDATE " . MAIN_DB_PREFIX . "fichinter_rec ";
605 605
             $sql .= " SET frequency='" . $this->db->escape($freq) . "'";
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@
 block discarded – undo
320 320
                 $this->duration = $obj->duree;
321 321
                 $this->socid = $obj->fk_soc;
322 322
                 $this->status = $obj->status;
323
-                $this->statut = $obj->status;   // deprecated
323
+                $this->statut = $obj->status; // deprecated
324 324
                 $this->fk_project = $obj->fk_projet;
325 325
                 $this->fk_contrat = $obj->fk_contrat;
326 326
                 $this->note_private = $obj->note_private;
Please login to merge, or discard this patch.
Dolibarr/Code/FichInter/Classes/FichinterLigne.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         }
284 284
     }
285 285
 
286
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
286
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
287 287
     /**
288 288
      *  Update total duration into llx_fichinter
289 289
      *
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
      */
292 292
     public function update_total()
293 293
     {
294
-		// phpcs:enable
294
+        // phpcs:enable
295 295
         global $conf;
296 296
 
297 297
         $this->db->begin();
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,19 +52,19 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public $fk_fichinter;
54 54
 
55
-    public $desc;       // Description ligne
55
+    public $desc; // Description ligne
56 56
 
57 57
     /**
58 58
      * @var int Date of intervention
59 59
      */
60
-    public $date;       // Date intervention
60
+    public $date; // Date intervention
61 61
     /**
62 62
      * @var int Date of intervention
63 63
      * @deprecated
64 64
      */
65
-    public $datei;      // Date intervention
65
+    public $datei; // Date intervention
66 66
 
67
-    public $duration;   // Duration of intervention
67
+    public $duration; // Duration of intervention
68 68
     public $rang = 0;
69 69
     public $tva_tx;
70 70
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             $this->id               = $objp->rowid;
123 123
             $this->fk_fichinter     = $objp->fk_fichinter;
124 124
             $this->date = $this->db->jdate($objp->date);
125
-            $this->datei = $this->db->jdate($objp->date);   // For backward compatibility
125
+            $this->datei = $this->db->jdate($objp->date); // For backward compatibility
126 126
             $this->desc             = $objp->description;
127 127
             $this->duration         = $objp->duree;
128 128
             $this->rang             = $objp->rang;
Please login to merge, or discard this patch.
Dolibarr/Code/FichInter/Classes/Fichinter.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
834 834
         return $this->LibStatut((isset($this->statut) ? $this->statut : $this->status), $mode);
835 835
     }
836 836
 
837
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
837
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
838 838
     /**
839 839
      *  Returns the label of a status
840 840
      *
@@ -844,7 +844,7 @@  discard block
 block discarded – undo
844 844
      */
845 845
     public function LibStatut($status, $mode = 0)
846 846
     {
847
-		// phpcs:enable
847
+        // phpcs:enable
848 848
         // Init/load array of translation of status
849 849
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
850 850
             global $langs;
@@ -1198,7 +1198,7 @@  discard block
 block discarded – undo
1198 1198
         }
1199 1199
     }
1200 1200
 
1201
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1201
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1202 1202
     /**
1203 1203
      *  Defines a delivery date of intervention
1204 1204
      *
@@ -1208,7 +1208,7 @@  discard block
 block discarded – undo
1208 1208
      */
1209 1209
     public function set_date_delivery($user, $date_delivery)
1210 1210
     {
1211
-		// phpcs:enable
1211
+        // phpcs:enable
1212 1212
         if ($user->hasRight('ficheinter', 'creer')) {
1213 1213
             $sql = "UPDATE " . MAIN_DB_PREFIX . "fichinter ";
1214 1214
             $sql .= " SET datei = '" . $this->db->idate($date_delivery) . "'";
@@ -1228,7 +1228,7 @@  discard block
 block discarded – undo
1228 1228
         return 0;
1229 1229
     }
1230 1230
 
1231
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1231
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1232 1232
     /**
1233 1233
      *  Define the label of the intervention
1234 1234
      *
@@ -1238,7 +1238,7 @@  discard block
 block discarded – undo
1238 1238
      */
1239 1239
     public function set_description($user, $description)
1240 1240
     {
1241
-		// phpcs:enable
1241
+        // phpcs:enable
1242 1242
         if ($user->hasRight('ficheinter', 'creer')) {
1243 1243
             $sql = "UPDATE " . MAIN_DB_PREFIX . "fichinter ";
1244 1244
             $sql .= " SET description = '" . $this->db->escape($description) . "',";
@@ -1259,7 +1259,7 @@  discard block
 block discarded – undo
1259 1259
     }
1260 1260
 
1261 1261
 
1262
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1262
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1263 1263
     /**
1264 1264
      *  Link intervention to a contract
1265 1265
      *
@@ -1269,7 +1269,7 @@  discard block
 block discarded – undo
1269 1269
      */
1270 1270
     public function set_contrat($user, $contractid)
1271 1271
     {
1272
-		// phpcs:enable
1272
+        // phpcs:enable
1273 1273
         if ($user->hasRight('ficheinter', 'creer')) {
1274 1274
             $sql = "UPDATE " . MAIN_DB_PREFIX . "fichinter ";
1275 1275
             $sql .= " SET fk_contrat = " . ((int) $contractid);
@@ -1466,7 +1466,7 @@  discard block
 block discarded – undo
1466 1466
         return 1;
1467 1467
     }
1468 1468
 
1469
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1469
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1470 1470
     /**
1471 1471
      *  Load array lines ->lines
1472 1472
      *
@@ -1474,7 +1474,7 @@  discard block
 block discarded – undo
1474 1474
      */
1475 1475
     public function fetch_lines()
1476 1476
     {
1477
-		// phpcs:enable
1477
+        // phpcs:enable
1478 1478
         $this->lines = array();
1479 1479
 
1480 1480
         $sql = "SELECT rowid, fk_fichinter, description, duree, date, rang";
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -199,12 +199,12 @@  discard block
 block discarded – undo
199 199
     /**
200 200
      * No signature
201 201
      */
202
-    const STATUS_NO_SIGNATURE    = 0;
202
+    const STATUS_NO_SIGNATURE = 0;
203 203
 
204 204
     /**
205 205
      * Signed by sender
206 206
      */
207
-    const STATUS_SIGNED_SENDER   = 1;
207
+    const STATUS_SIGNED_SENDER = 1;
208 208
 
209 209
     /**
210 210
      * Signed by receiver
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     /**
215 215
      * Signed by all
216 216
      */
217
-    const STATUS_SIGNED_ALL      = 9; // To handle future kind of signature (ex: tripartite contract)
217
+    const STATUS_SIGNED_ALL = 9; // To handle future kind of signature (ex: tripartite contract)
218 218
 
219 219
 
220 220
     /**
@@ -1406,7 +1406,7 @@  discard block
 block discarded – undo
1406 1406
             $line->fk_fichinter = $fichinterid;
1407 1407
             $line->desc         = $desc;
1408 1408
             $line->date         = $date_intervention;
1409
-            $line->datei        = $date_intervention;   // For backward compatibility
1409
+            $line->datei        = $date_intervention; // For backward compatibility
1410 1410
             $line->duration     = $duration;
1411 1411
 
1412 1412
             if (is_array($array_options) && count($array_options) > 0) {
@@ -1503,7 +1503,7 @@  discard block
 block discarded – undo
1503 1503
                 //For invoicing we calculing hours
1504 1504
                 $line->qty = round($objp->duree / 3600, 2);
1505 1505
                 $line->date = $this->db->jdate($objp->date);
1506
-                $line->datei = $this->db->jdate($objp->date);   // For backward compatibility
1506
+                $line->datei = $this->db->jdate($objp->date); // For backward compatibility
1507 1507
                 $line->rang = $objp->rang;
1508 1508
                 $line->product_type = 1;
1509 1509
                 $line->fetch_optionals();
Please login to merge, or discard this patch.
Dolibarr/Code/FichInter/Api/Interventions.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -40,18 +40,18 @@  discard block
 block discarded – undo
40 40
      * @var array   $FIELDS     Mandatory fields, checked when create and update object
41 41
      */
42 42
     public static $FIELDS = array(
43
-      'socid',
44
-      'fk_project',
45
-      'description',
43
+        'socid',
44
+        'fk_project',
45
+        'description',
46 46
     );
47 47
 
48 48
     /**
49 49
      * @var array   $FIELDS     Mandatory fields, checked when create and update object
50 50
      */
51 51
     public static $FIELDSLINE = array(
52
-      'description',
53
-      'date',
54
-      'duree',
52
+        'description',
53
+        'date',
54
+        'duree',
55 55
     );
56 56
 
57 57
     /**
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
     }
432 432
 
433 433
 
434
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
434
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
435 435
     /**
436 436
      * Clean sensible object datas
437 437
      *
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
      */
441 441
     protected function _cleanObjectDatas($object)
442 442
     {
443
-		// phpcs:enable
443
+        // phpcs:enable
444 444
         $object = parent::_cleanObjectDatas($object);
445 445
 
446 446
         unset($object->labelStatus);
Please login to merge, or discard this patch.
Dolibarr/Code/Ecm/Classes/EcmFiles.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.
Dolibarr/Code/EventOrganizaction/Classes/ConferenceOrBooth.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
         return $this->LibStatutEvent($this->status, $mode);
629 629
     }
630 630
 
631
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
631
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
632 632
     /**
633 633
      *  Return the status
634 634
      *
@@ -638,7 +638,7 @@  discard block
 block discarded – undo
638 638
      */
639 639
     public function LibStatutEvent($status, $mode = 0)
640 640
     {
641
-		// phpcs:enable
641
+        // phpcs:enable
642 642
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
643 643
             global $langs;
644 644
             //$langs->load("eventorganization@eventorganization");
Please login to merge, or discard this patch.
Dolibarr/Code/Hrm/Classes/Position.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -804,7 +804,7 @@  discard block
 block discarded – undo
804 804
         return $this->LibStatut($this->status, $mode);
805 805
     }
806 806
 
807
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
807
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
808 808
 
809 809
     /**
810 810
      *  Return the status
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
      */
816 816
     public function LibStatut($status, $mode = 0)
817 817
     {
818
-		// phpcs:enable
818
+        // phpcs:enable
819 819
         if (is_null($status)) {
820 820
             return '';
821 821
         }
Please login to merge, or discard this patch.
Dolibarr/Code/Hrm/Classes/Skill.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -873,7 +873,7 @@  discard block
 block discarded – undo
873 873
         return $this->LibStatut($this->status, $mode);
874 874
     }
875 875
 
876
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
876
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
877 877
     /**
878 878
      *  Return the status
879 879
      *
@@ -887,7 +887,7 @@  discard block
 block discarded – undo
887 887
             $status = 0;
888 888
         }
889 889
 
890
-		// phpcs:enable
890
+        // phpcs:enable
891 891
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
892 892
             global $langs;
893 893
             //$langs->load("hrm");
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      */
228 228
     public function create(User $user, $notrigger = 0)
229 229
     {
230
-        global $langs,$conf;
230
+        global $langs, $conf;
231 231
 
232 232
         $resultcreate = $this->createCommon($user, $notrigger);
233 233
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
             $skilldet->rankorder = $i;
267 267
             $skilldet->fk_skill = $this->id;
268 268
 
269
-            $result =  $skilldet->create($user);
269
+            $result = $skilldet->create($user);
270 270
             if ($result <= 0) {
271 271
                 $error++;
272 272
             }
Please login to merge, or discard this patch.
Dolibarr/Code/Hrm/Classes/SkillRank.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -786,7 +786,7 @@  discard block
 block discarded – undo
786 786
         return $this->LibStatut($this->status, $mode);
787 787
     }
788 788
 
789
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
789
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
790 790
     /**
791 791
      *  Return the status
792 792
      *
@@ -796,7 +796,7 @@  discard block
 block discarded – undo
796 796
      */
797 797
     public function LibStatut($status, $mode = 0)
798 798
     {
799
-		// phpcs:enable
799
+        // phpcs:enable
800 800
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
801 801
             global $langs;
802 802
             //$langs->load("hrm");
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -383,13 +383,13 @@
 block discarded – undo
383 383
         global $user;
384 384
 
385 385
         $this->fk_skill         = $currentSkill->fk_skill;
386
-        $this->rankorder            = $currentSkill->rankorder;
386
+        $this->rankorder = $currentSkill->rankorder;
387 387
         $this->fk_object        = $fk_user;
388 388
         $this->date_creation    = dol_now();
389 389
         $this->fk_user_creat    = $user->id;
390 390
         $this->fk_user_modif    = $user->id;
391 391
         $this->objecttype       = self::SKILLRANK_TYPE_USER;
392
-        $result =  $this->create($user);
392
+        $result = $this->create($user);
393 393
 
394 394
         return $result;
395 395
     }
Please login to merge, or discard this patch.