Passed
Pull Request — dev (#14)
by Rafael
51:23
created
public/htdocs/core/menus/standard/eldy_menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -322,7 +322,7 @@
 block discarded – undo
322 322
 
323 323
                             // Add font-awesome (if $val2['level'] == 0, we are on level2
324 324
                             if ($val2['level'] == 0 && !empty($val2['prefix'])) {
325
-                                print $val2['prefix'];  // the picto must have class="pictofixedwidth paddingright"
325
+                                print $val2['prefix']; // the picto must have class="pictofixedwidth paddingright"
326 326
                             }
327 327
 
328 328
                             print $val2['titre'];
Please login to merge, or discard this patch.
public/htdocs/core/menus/standard/empty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
             // $this->menu->liste is top menu
177 177
             //var_dump($this->menu->liste);exit;
178 178
             $lastlevel = array();
179
-            $showmenu = true;  // Is current menu shown - define here to keep static code checker happy
179
+            $showmenu = true; // Is current menu shown - define here to keep static code checker happy
180 180
             print '<!-- Generate menu list from menu handler ' . $this->name . ' -->' . "\n";
181 181
             foreach ($this->menu->liste as $key => $val) {      // $val['url','titre','level','enabled'=0|1|2,'target','mainmenu','leftmenu'
182 182
                 print '<ul class="ulmenu" data-inset="true">';
Please login to merge, or discard this patch.
public/htdocs/core/menus/standard/auguria_menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
176 176
             // $this->menu->liste is top menu
177 177
             //var_dump($this->menu->liste);exit;
178 178
             $lastlevel = array();
179
-            $showmenu = true;  // Is current menu shown - define here to keep static code checker happy
179
+            $showmenu = true; // Is current menu shown - define here to keep static code checker happy
180 180
             print '<!-- Generate menu list from menu handler ' . $this->name . ' -->' . "\n";
181 181
             foreach ($this->menu->liste as $key => $val) {      // $val['url','titre','level','enabled'=0|1|2,'target','mainmenu','leftmenu'
182 182
                 print '<ul class="ulmenu" data-inset="true">';
Please login to merge, or discard this patch.
public/htdocs/core/tpl/extrafields_list_search_sql.tpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 $mode_search = 2; // Search on a foreign key int
58 58
             }
59 59
             if (in_array($typ, array('sellist')) && !is_numeric($crit)) {
60
-                $mode_search = 0;// Search on a foreign key string
60
+                $mode_search = 0; // Search on a foreign key string
61 61
             }
62 62
             if (in_array($typ, array('chkbxlst', 'checkbox', 'select'))) {
63 63
                 $mode_search = 4; // Search on a multiselect field with sql type = text
Please login to merge, or discard this patch.
public/htdocs/core/tpl/objectline_view.tpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@
 block discarded – undo
198 198
             // we need to fetch product associated to line for some test
199 199
             if ($object->element == 'propal' || $object->element == 'order' || $object->element == 'facture' || $object->element == 'propal_supplier' || $object->element == 'supplier_proposal' || $object->element == 'commande') {
200 200
                 $res = $line->fetch_product();
201
-                if ($res  > 0) {
201
+                if ($res > 0) {
202 202
                     if ($line->product->isService() && $line->product->isMandatoryPeriod()) {
203 203
                         print '<div><span class="clearboth nowraponall warning">' . $langs->trans("mandatoryPeriodNeedTobeSet") . '</span></div>';
204 204
                     }
Please login to merge, or discard this patch.
public/htdocs/core/tpl/massactions_pre.tpl.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             $result = $objecttmp->fetch($toselectid);
190 190
             if ($result > 0) {
191 191
                 $listofselectedid[$toselectid] = $toselectid;
192
-                $thirdpartyid = ($objecttmp->fk_soc ? $objecttmp->fk_soc : $objecttmp->socid);  // For proposal, order, invoice, conferenceorbooth, ...
192
+                $thirdpartyid = ($objecttmp->fk_soc ? $objecttmp->fk_soc : $objecttmp->socid); // For proposal, order, invoice, conferenceorbooth, ...
193 193
                 if (in_array($objecttmp->element, array('societe', 'conferenceorboothattendee'))) {
194 194
                     $thirdpartyid = $objecttmp->id;
195 195
                 } elseif ($objecttmp->element == 'contact') {
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         $formmail->withfile = 0;
271 271
         $formmail->withmaindocfile = 0; // Add a checkbox "Attach also main document"
272 272
     } else {
273
-        $formmail->withfile = 1;    // $formmail->withfile = 2 to allow to upload files is not yet supported in mass action
273
+        $formmail->withfile = 1; // $formmail->withfile = 2 to allow to upload files is not yet supported in mass action
274 274
         // Add a checkbox "Attach also main document"
275 275
         if (isset($withmaindocfilemail)) {
276 276
             $formmail->withmaindocfile = $withmaindocfilemail;
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
 
308 308
     // Tableau des parameters complementaires du post
309 309
     $formmail->param['action'] = $action;
310
-    $formmail->param['models'] = $modelmail;    // the filter to know which kind of template emails to show. 'none' means no template suggested.
310
+    $formmail->param['models'] = $modelmail; // the filter to know which kind of template emails to show. 'none' means no template suggested.
311 311
     $formmail->param['models_id'] = GETPOSTINT('modelmailselected') ? GETPOSTINT('modelmailselected') : '-1';
312 312
     $formmail->param['id'] = implode(',', $arrayofselected);
313 313
     // $formmail->param['returnurl']=$_SERVER["PHP_SELF"].'?id='.$object->id;
Please login to merge, or discard this patch.
public/htdocs/supplier_proposal/list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 $search_date_endday = GETPOSTINT('search_date_endday');
81 81
 $search_date_endmonth = GETPOSTINT('search_date_endmonth');
82 82
 $search_date_endyear = GETPOSTINT('search_date_endyear');
83
-$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear);   // Use tzserver
83
+$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver
84 84
 $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear);
85 85
 $search_date_valid_startday = GETPOSTINT('search_date_valid_startday');
86 86
 $search_date_valid_startmonth = GETPOSTINT('search_date_valid_startmonth');
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 $search_date_valid_endday = GETPOSTINT('search_date_valid_endday');
89 89
 $search_date_valid_endmonth = GETPOSTINT('search_date_valid_endmonth');
90 90
 $search_date_valid_endyear = GETPOSTINT('search_date_valid_endyear');
91
-$search_date_valid_start = dol_mktime(0, 0, 0, $search_date_valid_startmonth, $search_date_valid_startday, $search_date_valid_startyear);   // Use tzserver
91
+$search_date_valid_start = dol_mktime(0, 0, 0, $search_date_valid_startmonth, $search_date_valid_startday, $search_date_valid_startyear); // Use tzserver
92 92
 $search_date_valid_end = dol_mktime(23, 59, 59, $search_date_valid_endmonth, $search_date_valid_endday, $search_date_valid_endyear);
93 93
 $search_type_thirdparty = GETPOST("search_type_thirdparty", 'intcomma');
94 94
 $search_montant_ht = GETPOST('search_montant_ht', 'alpha');
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 
199 199
 $object->fields = dol_sort_array($object->fields, 'position');
200 200
 $arrayfields = dol_sort_array($arrayfields, 'position');
201
-'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields';  // dol_sort_array looses type for Phan
201
+'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan
202 202
 
203 203
 if (!$user->hasRight('societe', 'client', 'voir')) {
204 204
     $search_sale = $user->id;
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.