Passed
Push — GENERAL_BUG_REVIEW_240911 ( 776d89...c757bd )
by Rafael
50:33
created
public/htdocs/mrp/mo_movements.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@
 block discarded – undo
56 56
 
57 57
 $msid  = GETPOSTINT('msid');
58 58
 
59
-$year  = GETPOST("year");       // TODO Rename into search_year
60
-$month = GETPOST("month");      // TODO Rename into search_month
59
+$year  = GETPOST("year"); // TODO Rename into search_year
60
+$month = GETPOST("month"); // TODO Rename into search_month
61 61
 
62 62
 $search_ref = GETPOST('search_ref', 'alpha');
63 63
 $search_movement = GETPOST("search_movement", 'alpha');
Please login to merge, or discard this patch.
public/htdocs/mrp/mo_production.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -960,7 +960,7 @@  discard block
 block discarded – undo
960 960
 
961 961
         // Lines to consume
962 962
 
963
-        $bomcostupdated = 0;    // We will recalculate the unitary cost to produce a product using the real "products to consume into MO"
963
+        $bomcostupdated = 0; // We will recalculate the unitary cost to produce a product using the real "products to consume into MO"
964 964
 
965 965
         if (!empty($object->lines)) {
966 966
             $nblinetoconsume = 0;
@@ -1007,15 +1007,15 @@  discard block
 block discarded – undo
1007 1007
                             }
1008 1008
 
1009 1009
                             if ($qtyhourservice && $qtyhourforline) {
1010
-                                $linecost = price2num(($qtyhourforline / $qtyhourservice * $costprice) / $object->qty, 'MT');   // price for line for all quantities
1011
-                                $bomcostupdated += price2num(($qtyhourforline / $qtyhourservice * $costprice) / $object->qty, 'MU');    // same but with full accuracy
1010
+                                $linecost = price2num(($qtyhourforline / $qtyhourservice * $costprice) / $object->qty, 'MT'); // price for line for all quantities
1011
+                                $bomcostupdated += price2num(($qtyhourforline / $qtyhourservice * $costprice) / $object->qty, 'MU'); // same but with full accuracy
1012 1012
                             } else {
1013
-                                $linecost = price2num(($line->qty * $costprice) / $object->qty, 'MT');  // price for line for all quantities
1014
-                                $bomcostupdated += price2num(($line->qty * $costprice) / $object->qty, 'MU');   // same but with full accuracy
1013
+                                $linecost = price2num(($line->qty * $costprice) / $object->qty, 'MT'); // price for line for all quantities
1014
+                                $bomcostupdated += price2num(($line->qty * $costprice) / $object->qty, 'MU'); // same but with full accuracy
1015 1015
                             }
1016 1016
                         } else {
1017
-                            $linecost = price2num(($line->qty * $costprice) / $object->qty, 'MT');  // price for line for all quantities
1018
-                            $bomcostupdated += price2num(($line->qty * $costprice) / $object->qty, 'MU');   // same but with full accuracy
1017
+                            $linecost = price2num(($line->qty * $costprice) / $object->qty, 'MT'); // price for line for all quantities
1018
+                            $bomcostupdated += price2num(($line->qty * $costprice) / $object->qty, 'MU'); // same but with full accuracy
1019 1019
                         }
1020 1020
                     }
1021 1021
 
Please login to merge, or discard this patch.
public/htdocs/mrp/mo_card.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 $backtopage = GETPOST('backtopage', 'alpha');
54 54
 $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
55 55
 $TBomLineId = GETPOST('bomlineid', 'array');
56
-$lineid   = GETPOSTINT('lineid');
56
+$lineid = GETPOSTINT('lineid');
57 57
 $socid = GETPOSTINT("socid");
58 58
 
59 59
 // Initialize technical objects
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         $objectbomchildline = new BOMLine($db);
155 155
 
156 156
         foreach ($TBomLineId as $id_bom_line) {
157
-            $object = new Mo($db);  // modified by the actions_addupdatedelete.inc.php
157
+            $object = new Mo($db); // modified by the actions_addupdatedelete.inc.php
158 158
 
159 159
             $objectbomchildline->fetch($id_bom_line);
160 160
 
Please login to merge, or discard this patch.
public/htdocs/recruitment/admin/setup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 // Parameters
69 69
 $action = GETPOST('action', 'aZ09');
70 70
 $backtopage = GETPOST('backtopage', 'alpha');
71
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
71
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
72 72
 
73 73
 $value = GETPOST('value', 'alpha');
74 74
 $label = GETPOST('label', 'alpha');
Please login to merge, or discard this patch.
public/htdocs/recruitment/admin/setup_candidatures.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 // Parameters
69 69
 $action = GETPOST('action', 'aZ09');
70 70
 $backtopage = GETPOST('backtopage', 'alpha');
71
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
71
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
72 72
 
73 73
 $value = GETPOST('value', 'alpha');
74 74
 $label = GETPOST('label', 'alpha');
Please login to merge, or discard this patch.
modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     }
177 177
 
178 178
 
179
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
179
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
180 180
     /**
181 181
      *  Function to build pdf onto disk
182 182
      *
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      */
191 191
     public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0)
192 192
     {
193
-		// phpcs:enable
193
+        // phpcs:enable
194 194
         global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines;
195 195
         global $action;
196 196
 
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
         }
644 644
     }
645 645
 
646
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
646
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
647 647
     /**
648 648
      *  Return list of active generation modules
649 649
      *
@@ -653,11 +653,11 @@  discard block
 block discarded – undo
653 653
      */
654 654
     public static function liste_modeles($db, $maxfilenamelength = 0)
655 655
     {
656
-		// phpcs:enable
656
+        // phpcs:enable
657 657
         return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub
658 658
     }
659 659
 
660
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
660
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
661 661
     /**
662 662
      *   Show table for lines
663 663
      *
@@ -709,7 +709,7 @@  discard block
 block discarded – undo
709 709
         }
710 710
     }
711 711
 
712
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
712
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
713 713
     /**
714 714
      *  Show top header of page.
715 715
      *
@@ -951,7 +951,7 @@  discard block
 block discarded – undo
951 951
         return $top_shift;
952 952
     }
953 953
 
954
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
954
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
955 955
     /**
956 956
      * Show footer of page. Need this->emetteur object
957 957
      *
Please login to merge, or discard this patch.
modules/recruitment/doc/doc_generic_recruitmentjobposition_odt.modules.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         return $texte;
207 207
     }
208 208
 
209
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
209
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
210 210
     /**
211 211
      *  Function to build a document on disk using the generic odt module.
212 212
      *
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
      */
221 221
     public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0)
222 222
     {
223
-		// phpcs:enable
223
+        // phpcs:enable
224 224
         global $user, $langs, $conf, $mysoc, $hookmanager;
225 225
         global $action;
226 226
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@
 block discarded – undo
188 188
         $maxfilesizearray = getMaxFileSizeArray();
189 189
         $maxmin = $maxfilesizearray['maxmin'];
190 190
         if ($maxmin > 0) {
191
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
191
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
192 192
         }
193 193
         $texte .= ' <input type="file" name="uploadfile">';
194 194
         $texte .= '<input type="hidden" value="RECRUITMENT_RECRUITMENTJOBPOSITION_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
recruitment/core/modules/recruitment/modules_recruitmentcandidature.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
  */
40 40
 abstract class ModelePDFRecruitmentCandidature extends CommonDocGenerator
41 41
 {
42
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
42
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
43 43
     /**
44 44
      *  Return list of active generation modules
45 45
      *
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public static function liste_modeles($db, $maxfilenamelength = 0)
51 51
     {
52
-		// phpcs:enable
52
+        // phpcs:enable
53 53
         $type = 'recruitmentjobcandidature';
54 54
         $list = array();
55 55
 
Please login to merge, or discard this patch.
recruitment/core/modules/recruitment/modules_recruitmentjobposition.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
  */
40 40
 abstract class ModelePDFRecruitmentJobPosition extends CommonDocGenerator
41 41
 {
42
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
42
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
43 43
     /**
44 44
      *  Return list of active generation modules
45 45
      *
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public static function liste_modeles($db, $maxfilenamelength = 0)
51 51
     {
52
-		// phpcs:enable
52
+        // phpcs:enable
53 53
         $type = 'recruitmentjobposition';
54 54
         $list = array();
55 55
 
Please login to merge, or discard this patch.