Test Setup Failed
Push — dependabot/github_actions/mdew... ( 6edcb7 )
by
unknown
55:37
created
htdocs/product/canvas/product/actions_card_product.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     }
94 94
 
95 95
 
96
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
96
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
97 97
     /**
98 98
      *    Assign custom values for canvas (for example into this->tpl to be used by templates)
99 99
      *
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function assign_values(&$action, $id = 0, $ref = '')
106 106
     {
107
-		// phpcs:enable
107
+        // phpcs:enable
108 108
         global $conf, $langs, $user, $mysoc, $canvas;
109 109
         global $form, $formproduct;
110 110
 
Please login to merge, or discard this patch.
htdocs/product/canvas/service/actions_card_service.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     }
103 103
 
104 104
 
105
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
105
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
106 106
     /**
107 107
      *    Assign custom values for canvas (for example into this->tpl to be used by templates)
108 108
      *
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function assign_values(&$action, $id = 0, $ref = '')
115 115
     {
116
-		// phpcs:enable
116
+        // phpcs:enable
117 117
         global $conf, $langs, $user, $mysoc, $canvas;
118 118
         global $form;
119 119
 
Please login to merge, or discard this patch.
htdocs/product/inventory/class/inventory.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
         return $this->LibStatut($this->status, $mode);
649 649
     }
650 650
 
651
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
651
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
652 652
     /**
653 653
      *  Return the status
654 654
      *
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
      */
659 659
     public static function LibStatut($status, $mode = 0)
660 660
     {
661
-		// phpcs:enable
661
+        // phpcs:enable
662 662
         global $langs;
663 663
 
664 664
         $labelStatus = array();
Please login to merge, or discard this patch.
htdocs/product/stock/stocktransfer/class/stocktransfer.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
         return $this->LibStatut($this->status, $mode);
856 856
     }
857 857
 
858
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
858
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
859 859
     /**
860 860
      *  Return the status
861 861
      *
@@ -865,7 +865,7 @@  discard block
 block discarded – undo
865 865
      */
866 866
     public function LibStatut($status, $mode = 0)
867 867
     {
868
-		// phpcs:enable
868
+        // phpcs:enable
869 869
         if (empty($this->labelStatus) || empty($this->labelStatusShort)) {
870 870
             global $langs;
871 871
             //$langs->load("stocktransfer@stocktransfer");
Please login to merge, or discard this patch.
htdocs/product/stock/class/api_stockmovements.class.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      * $price Can be set to update AWP (Average Weighted Price) when you make a stock increase
157 157
      * $dlc Eat-by date. Will be used if lot does not exists yet and will be created.
158 158
      * $dluo Sell-by date. Will be used if lot does not exists yet and will be created.
159
-         *
159
+     *
160 160
      * @param int $product_id Id product id {@min 1} {@from body} {@required true}
161 161
      * @param int $warehouse_id Id warehouse {@min 1} {@from body} {@required true}
162 162
      * @param float $qty Qty to add (Use negative value for a stock decrease) {@from body} {@required true}
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 
279 279
 
280 280
 
281
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
281
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
282 282
     /**
283 283
      * Clean sensible object datas
284 284
      *
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
      */
288 288
     protected function _cleanObjectDatas($object)
289 289
     {
290
-		// phpcs:enable
290
+        // phpcs:enable
291 291
         $object = parent::_cleanObjectDatas($object);
292 292
 
293 293
         // Remove useless data
Please login to merge, or discard this patch.
htdocs/product/stock/class/productstockentrepot.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
         return $this->LibStatut($this->status, $mode);
548 548
     }
549 549
 
550
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
550
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
551 551
     /**
552 552
      *  Renvoi le libelle d'un status donne
553 553
      *
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
      */
558 558
     public function LibStatut($status, $mode = 0)
559 559
     {
560
-		// phpcs:enable
560
+        // phpcs:enable
561 561
         global $langs;
562 562
 
563 563
         if ($mode == 0) {
Please login to merge, or discard this patch.
htdocs/product/stock/class/productlot.class.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1062,7 +1062,7 @@  discard block
 block discarded – undo
1062 1062
         return $this->LibStatut(0, $mode);
1063 1063
     }
1064 1064
 
1065
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1065
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1066 1066
     /**
1067 1067
      *  Return label of a given status
1068 1068
      *
@@ -1072,7 +1072,7 @@  discard block
 block discarded – undo
1072 1072
      */
1073 1073
     public function LibStatut($status, $mode = 0)
1074 1074
     {
1075
-		// phpcs:enable
1075
+        // phpcs:enable
1076 1076
         //global $langs;
1077 1077
 
1078 1078
         //$langs->load('stocks');
Please login to merge, or discard this patch.
htdocs/product/stock/class/api_warehouses.class.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@  discard block
 block discarded – undo
16 16
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
17 17
  */
18 18
 
19
- use Luracast\Restler\RestException;
19
+    use Luracast\Restler\RestException;
20 20
 
21
- require_once DOL_DOCUMENT_ROOT . '/product/stock/class/entrepot.class.php';
22
- require_once DOL_DOCUMENT_ROOT . '/product/class/product.class.php';
21
+    require_once DOL_DOCUMENT_ROOT . '/product/stock/class/entrepot.class.php';
22
+    require_once DOL_DOCUMENT_ROOT . '/product/class/product.class.php';
23 23
 
24 24
 /**
25 25
  * API class for warehouses
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
     }
262 262
 
263 263
 
264
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
264
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
265 265
     /**
266 266
      * Clean sensible object datas
267 267
      *
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      */
271 271
     protected function _cleanObjectDatas($object)
272 272
     {
273
-		// phpcs:enable
273
+        // phpcs:enable
274 274
         $object = parent::_cleanObjectDatas($object);
275 275
 
276 276
         // Remove the subscriptions because they are handled as a subresource.
Please login to merge, or discard this patch.
htdocs/product/stock/class/entrepot.class.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -563,7 +563,7 @@  discard block
 block discarded – undo
563 563
     }
564 564
 
565 565
 
566
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
566
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
567 567
     /**
568 568
      *  Return list of all warehouses
569 569
      *
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
      */
573 573
     public function list_array($status = 1)
574 574
     {
575
-		// phpcs:enable
575
+        // phpcs:enable
576 576
         $liste = array();
577 577
 
578 578
         $sql = "SELECT rowid, ref as label";
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
         return $liste;
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 unique different product into a warehouse
600 600
      *
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
      */
603 603
     public function nb_different_products()
604 604
     {
605
-		// phpcs:enable
605
+        // phpcs:enable
606 606
         $ret = array();
607 607
 
608 608
         $sql = "SELECT count(distinct p.rowid) as nb";
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
         return $ret;
626 626
     }
627 627
 
628
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
628
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
629 629
     /**
630 630
      *  Return stock and value of warehosue
631 631
      *
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
     public function nb_products()
635 635
     {
636 636
         global $conf;
637
-		// phpcs:enable
637
+        // phpcs:enable
638 638
         $ret = array();
639 639
 
640 640
         //For MultiCompany PMP per entity
@@ -684,7 +684,7 @@  discard block
 block discarded – undo
684 684
         return $this->LibStatut($this->statut, $mode);
685 685
     }
686 686
 
687
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
687
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
688 688
     /**
689 689
      *  Return label of a given status
690 690
      *
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
      */
695 695
     public function LibStatut($status, $mode = 0)
696 696
     {
697
-		// phpcs:enable
697
+        // phpcs:enable
698 698
         global $langs;
699 699
 
700 700
         $statusType = 'status5';
@@ -868,7 +868,7 @@  discard block
 block discarded – undo
868 868
         return 1;
869 869
     }
870 870
 
871
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
871
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
872 872
     /**
873 873
      *  Return full path to current warehouse
874 874
      *
@@ -876,7 +876,7 @@  discard block
 block discarded – undo
876 876
      */
877 877
     public function get_full_arbo()
878 878
     {
879
-		// phpcs:enable
879
+        // phpcs:enable
880 880
         global $user, $langs, $conf;
881 881
 
882 882
         $TArbo = array($this->label);
@@ -909,7 +909,7 @@  discard block
 block discarded – undo
909 909
         return implode(' >> ', array_reverse($TArbo));
910 910
     }
911 911
 
912
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
912
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
913 913
     /**
914 914
      * Return array of children warehouses ids from $id warehouse (recursive function)
915 915
      *
@@ -919,7 +919,7 @@  discard block
 block discarded – undo
919 919
      */
920 920
     public function get_children_warehouses($id, &$TChildWarehouses)
921 921
     {
922
-		// phpcs:enable
922
+        // phpcs:enable
923 923
 
924 924
         $sql = "SELECT rowid
925 925
 				FROM " . $this->db->prefix() . "entrepot
Please login to merge, or discard this patch.