Passed
Push — dev ( f7d146...05f415 )
by Rafael
60:50
created
Dolibarr/Code/Adherents/Classes/Subscription.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
         return '';
469 469
     }
470 470
 
471
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
471
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
472 472
     /**
473 473
      *  Return the label of a given status
474 474
      *
@@ -478,7 +478,7 @@  discard block
 block discarded – undo
478 478
      */
479 479
     public function LibStatut($status, $mode = 0)
480 480
     {
481
-		// phpcs:enable
481
+        // phpcs:enable
482 482
 
483 483
         //$langs->load("members");
484 484
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
                 $this->dateh          = $this->db->jdate($obj->dateh);
242 242
                 $this->datef          = $this->db->jdate($obj->datef);
243 243
                 $this->amount         = $obj->subscription;
244
-                $this->note           = $obj->note_public;  // deprecated
244
+                $this->note           = $obj->note_public; // deprecated
245 245
                 $this->note_public    = $obj->note_public;
246 246
                 $this->fk_bank        = $obj->fk_bank;
247 247
                 return 1;
Please login to merge, or discard this patch.
Dolibarr/Code/Ai/Classes/Ai.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
                 if ($this->apiService == 'groq') {
119 119
                     $this->apiEndpoint = 'https://api.groq.com/openai/v1/chat/completions';
120 120
                     if ($model == 'auto') {
121
-                        $model = getDolGlobalString('AI_API_GROK_MODEL_TEXT', 'mixtral-8x7b-32768');    // 'llama3-8b-8192', 'gemma-7b-it'
121
+                        $model = getDolGlobalString('AI_API_GROK_MODEL_TEXT', 'mixtral-8x7b-32768'); // 'llama3-8b-8192', 'gemma-7b-it'
122 122
                     }
123 123
                 } elseif ($this->apiService == 'chatgpt') {
124 124
                     $this->apiEndpoint = 'https://api.openai.com/v1/chat/completions';
Please login to merge, or discard this patch.
Dolibarr/Code/BookCal/Classes/Availabilities.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
         return $this->LibStatut($this->status, $mode);
848 848
     }
849 849
 
850
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
850
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
851 851
     /**
852 852
      *  Return the status
853 853
      *
@@ -857,7 +857,7 @@  discard block
 block discarded – undo
857 857
      */
858 858
     public function LibStatut($status, $mode = 0)
859 859
     {
860
-		// phpcs:enable
860
+        // phpcs:enable
861 861
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
862 862
             global $langs;
863 863
             //$langs->load("agenda");
Please login to merge, or discard this patch.
Dolibarr/Code/BookCal/Classes/Calendar.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -837,7 +837,7 @@  discard block
 block discarded – undo
837 837
         return $this->LibStatut($this->status, $mode);
838 838
     }
839 839
 
840
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
840
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
841 841
     /**
842 842
      *  Return the label of a given status
843 843
      *
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
      */
848 848
     public function LibStatut($status, $mode = 0)
849 849
     {
850
-		// phpcs:enable
850
+        // phpcs:enable
851 851
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
852 852
             global $langs;
853 853
 
Please login to merge, or discard this patch.
Dolibarr/Code/Bom/Classes/BOM.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1430,7 +1430,7 @@  discard block
 block discarded – undo
1430 1430
             foreach ($this->lines as &$line) {
1431 1431
                 $tmpproduct->cost_price = 0;
1432 1432
                 $tmpproduct->pmp = 0;
1433
-                $result = $tmpproduct->fetch($line->fk_product, '', '', '', 0, 1, 1);   // We discard selling price and language loading
1433
+                $result = $tmpproduct->fetch($line->fk_product, '', '', '', 0, 1, 1); // We discard selling price and language loading
1434 1434
 
1435 1435
                 if ($tmpproduct->type == $tmpproduct::TYPE_PRODUCT) {
1436 1436
                     if (empty($line->fk_bom_child)) {
@@ -1625,7 +1625,7 @@  discard block
 block discarded – undo
1625 1625
      */
1626 1626
     public function getKanbanView($option = '', $arraydata = null)
1627 1627
     {
1628
-        global $db,$langs;
1628
+        global $db, $langs;
1629 1629
 
1630 1630
         $selected = (empty($arraydata['selected']) ? 0 : $arraydata['selected']);
1631 1631
 
Please login to merge, or discard this patch.
Indentation   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -437,7 +437,6 @@  discard block
 block discarded – undo
437 437
      * Load object lines in memory from the database by type of product
438 438
      *
439 439
      *  @param int    $typeproduct   0 type product, 1 type service
440
-
441 440
      * @return int         Return integer <0 if KO, 0 if not found, >0 if OK
442 441
      */
443 442
     public function fetchLinesbytypeproduct($typeproduct = 0)
@@ -1206,7 +1205,7 @@  discard block
 block discarded – undo
1206 1205
         return $this->LibStatut($this->status, $mode);
1207 1206
     }
1208 1207
 
1209
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1208
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1210 1209
     /**
1211 1210
      *  Return the status
1212 1211
      *
@@ -1216,7 +1215,7 @@  discard block
 block discarded – undo
1216 1215
      */
1217 1216
     public function LibStatut($status, $mode = 0)
1218 1217
     {
1219
-		// phpcs:enable
1218
+        // phpcs:enable
1220 1219
         if (empty($this->labelStatus)) {
1221 1220
             global $langs;
1222 1221
             //$langs->load("mrp");
@@ -1325,7 +1324,7 @@  discard block
 block discarded – undo
1325 1324
         }
1326 1325
     }
1327 1326
 
1328
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1327
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1329 1328
     /**
1330 1329
      *  Return if at least one photo is available
1331 1330
      *
@@ -1334,7 +1333,7 @@  discard block
 block discarded – undo
1334 1333
      */
1335 1334
     public function is_photo_available($sdir)
1336 1335
     {
1337
-		// phpcs:enable
1336
+        // phpcs:enable
1338 1337
         include_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
1339 1338
         include_once DOL_DOCUMENT_ROOT . '/core/lib/images.lib.php';
1340 1339
 
Please login to merge, or discard this patch.
Dolibarr/Code/Bom/Api/Boms.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
         }
717 717
     }
718 718
 
719
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
719
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
720 720
     /**
721 721
      * Clean sensible object datas
722 722
      *
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
      */
726 726
     protected function _cleanObjectDatas($object)
727 727
     {
728
-		// phpcs:enable
728
+        // phpcs:enable
729 729
         $object = parent::_cleanObjectDatas($object);
730 730
 
731 731
         unset($object->rowid);
Please login to merge, or discard this patch.
Dolibarr/Code/Asset/Classes/AssetAccountancyCodes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
                 'receivable_on_assignment' => array('label' => 'AssetAccountancyCodeReceivableOnAssignment'),
49 49
                 'proceeds_from_sales' => array('label' => 'AssetAccountancyCodeProceedsFromSales'),
50 50
                 'vat_collected' => array('label' => 'AssetAccountancyCodeVatCollected'),
51
-                'vat_deductible' => array('label' => 'AssetAccountancyCodeVatDeductible','column_break' => true),
51
+                'vat_deductible' => array('label' => 'AssetAccountancyCodeVatDeductible', 'column_break' => true),
52 52
             ),
53 53
         ),
54 54
         'accelerated_depreciation' => array(
Please login to merge, or discard this patch.
Dolibarr/Code/Asset/Classes/AssetModel.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1438,7 +1438,7 @@  discard block
 block discarded – undo
1438 1438
         return $this->LibStatut($this->status, $mode);
1439 1439
     }
1440 1440
 
1441
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1441
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1442 1442
     /**
1443 1443
      *  Return the status
1444 1444
      *
@@ -1448,7 +1448,7 @@  discard block
 block discarded – undo
1448 1448
      */
1449 1449
     public function LibStatut($status, $mode = 0)
1450 1450
     {
1451
-		// phpcs:enable
1451
+        // phpcs:enable
1452 1452
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
1453 1453
             global $langs;
1454 1454
             //$langs->load("assets");
Please login to merge, or discard this patch.
Dolibarr/Code/Asset/Classes/Asset.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1438,7 +1438,7 @@  discard block
 block discarded – undo
1438 1438
         return $this->LibStatut($this->status, $mode);
1439 1439
     }
1440 1440
 
1441
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1441
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1442 1442
     /**
1443 1443
      *  Return the status
1444 1444
      *
@@ -1448,7 +1448,7 @@  discard block
 block discarded – undo
1448 1448
      */
1449 1449
     public function LibStatut($status, $mode = 0)
1450 1450
     {
1451
-		// phpcs:enable
1451
+        // phpcs:enable
1452 1452
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
1453 1453
             global $langs;
1454 1454
             //$langs->load("assets");
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,8 @@
 block discarded – undo
63 63
      */
64 64
     public $picto = 'asset';
65 65
 
66
-    const STATUS_DRAFT = 0;     // In progress
67
-    const STATUS_DISPOSED = 9;  // Disposed
66
+    const STATUS_DRAFT = 0; // In progress
67
+    const STATUS_DISPOSED = 9; // Disposed
68 68
 
69 69
     /**
70 70
      *  'type' field format ('integer', 'integer:ObjectClass:PathToClass[:AddCreateButtonOrNot[:Filter[:Sortfield]]]', 'sellist:TableName:LabelFieldName[:KeyFieldName[:KeyFieldParent[:Filter[:Sortfield]]]]', 'varchar(x)', 'double(24,8)', 'real', 'price', 'text', 'text:none', 'html', 'date', 'datetime', 'timestamp', 'duration', 'mail', 'phone', 'url', 'password')
Please login to merge, or discard this patch.