Passed
Push — GENERAL_BUG_REVIEW_241017 ( bdd305...ea216b )
by Rafael
47:51
created
public/htdocs/core/boxes/box_graph_invoices_permonth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
             if (empty($endyear)) {
128 128
                 $endyear = $nowarray['year'];
129 129
             }
130
-            $startyear = $endyear - getDolGlobalInt('MAIN_NB_OF_YEAR_IN_WIDGET_GRAPH', 3) + 1;  // Default is 3 years
130
+            $startyear = $endyear - getDolGlobalInt('MAIN_NB_OF_YEAR_IN_WIDGET_GRAPH', 3) + 1; // Default is 3 years
131 131
 
132 132
             $mode = 'customer';
133 133
             $WIDTH = (($shownb && $showtot) || !empty($conf->dol_optimize_smallscreen)) ? '256' : '320';
Please login to merge, or discard this patch.
public/htdocs/core/boxes/box_graph_product_distribution.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
         $userid = 0; // No filter on user creation
142 142
 
143 143
         $WIDTH = ($nbofgraph >= 2 || !empty($conf->dol_optimize_smallscreen)) ? '300' : '320';
144
-        $HEIGHT = '150';    // Height require to have 5+1 entries into legend visible.
144
+        $HEIGHT = '150'; // Height require to have 5+1 entries into legend visible.
145 145
 
146 146
         if (isModEnabled("propal") && $user->hasRight('propal', 'lire')) {
147 147
             // Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
Please login to merge, or discard this patch.
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/core/search_page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 $title = $langs->trans("Search");
104 104
 
105 105
 // URL http://mydolibarr/core/search_page?dol_use_jmobile=1 can be used for tests
106
-$head = '<!-- Quick access -->' . "\n";   // This is used by DoliDroid to know page is a search page
106
+$head = '<!-- Quick access -->' . "\n"; // This is used by DoliDroid to know page is a search page
107 107
 $arrayofjs = array();
108 108
 $arrayofcss = array();
109 109
 top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
         $accesskey = '';
145 145
         if (empty($accesskeyalreadyassigned[$val['label'][0]])) {
146
-            $accesskey = $val['label'][0];  // First char of string
146
+            $accesskey = $val['label'][0]; // First char of string
147 147
             $accesskeyalreadyassigned[$accesskey] = $accesskey;
148 148
         }
149 149
 
Please login to merge, or discard this patch.