Passed
Push — main ( 324b47...7af4bb )
by Rafael
43:55
created
htdocs/admin/knowledgemanagement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 $action = GETPOST('action', 'aZ09');
42 42
 $backtopage = GETPOST('backtopage', 'alpha');
43 43
 $value = GETPOST('value', 'alpha');
44
-$modulepart = GETPOST('modulepart', 'aZ09');    // Used by actions_setmoduleoptions.inc.php
44
+$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php
45 45
 
46 46
 $label = GETPOST('label', 'alpha');
47 47
 $scandir = GETPOST('scan_dir', 'alpha');
Please login to merge, or discard this patch.
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.
htdocs/core/get_menudiv.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 $title = $langs->trans("Menu");
98 98
 
99 99
 // URL http://mydolibarr/core/get_menudiv.php?dol_use_jmobile=1 can be used for tests
100
-$head = '<!-- Menu -->' . "\n";   // This is used by DoliDroid to know page is a menu page
100
+$head = '<!-- Menu -->' . "\n"; // This is used by DoliDroid to know page is a menu page
101 101
 $arrayofjs = array();
102 102
 $arrayofcss = array();
103 103
 top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
Please login to merge, or discard this patch.
htdocs/core/tpl/objectline_edit.tpl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
         }
407 407
 
408 408
         $res = $line->fetch_product();
409
-        if ($res  > 0) {
409
+        if ($res > 0) {
410 410
             if ($line->product->isMandatoryPeriod() && $line->product->isService()) {
411 411
                 print  'jQuery("#date_start").addClass("error");';
412 412
             }
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 
423 423
         $res = $line->fetch_product();
424 424
         // on doit fetch le product là !!! pour connaître le type
425
-        if ($res  > 0) {
425
+        if ($res > 0) {
426 426
             if ($line->product->isMandatoryperiod() && $line->product->isService()) {
427 427
                 print  'jQuery("#date_end").addClass("error");';
428 428
             }
Please login to merge, or discard this patch.
htdocs/core/tpl/login.tpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -399,7 +399,7 @@
 block discarded – undo
399 399
     ?>
400 400
     <div class="center login_main_message">
401 401
     <?php
402
-    $message = $_SESSION['dol_loginmesg'];  // By default this is an error message
402
+    $message = $_SESSION['dol_loginmesg']; // By default this is an error message
403 403
     if (preg_match('/<!-- warning -->/', $message)) {   // if it contains this comment, this is a warning message
404 404
         $message = str_replace('<!-- warning -->', '', $message);
405 405
         print '<div class="warning" role="alert">';
Please login to merge, or discard this patch.
htdocs/core/tpl/massactions_pre.tpl.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
             $result = $objecttmp->fetch($toselectid);
186 186
             if ($result > 0) {
187 187
                 $listofselectedid[$toselectid] = $toselectid;
188
-                $thirdpartyid = ($objecttmp->fk_soc ? $objecttmp->fk_soc : $objecttmp->socid);  // For proposal, order, invoice, conferenceorbooth, ...
188
+                $thirdpartyid = ($objecttmp->fk_soc ? $objecttmp->fk_soc : $objecttmp->socid); // For proposal, order, invoice, conferenceorbooth, ...
189 189
                 if (in_array($objecttmp->element, array('societe', 'conferenceorboothattendee'))) {
190 190
                     $thirdpartyid = $objecttmp->id;
191 191
                 } elseif ($objecttmp->element == 'contact') {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         $formmail->withfile = 0;
267 267
         $formmail->withmaindocfile = 0; // Add a checkbox "Attach also main document"
268 268
     } else {
269
-        $formmail->withfile = 1;    // $formmail->withfile = 2 to allow to upload files is not yet supported in mass action
269
+        $formmail->withfile = 1; // $formmail->withfile = 2 to allow to upload files is not yet supported in mass action
270 270
         // Add a checkbox "Attach also main document"
271 271
         if (isset($withmaindocfilemail)) {
272 272
             $formmail->withmaindocfile = $withmaindocfilemail;
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 
304 304
     // Tableau des parameters complementaires du post
305 305
     $formmail->param['action'] = $action;
306
-    $formmail->param['models'] = $modelmail;    // the filter to know which kind of template emails to show. 'none' means no template suggested.
306
+    $formmail->param['models'] = $modelmail; // the filter to know which kind of template emails to show. 'none' means no template suggested.
307 307
     $formmail->param['models_id'] = GETPOSTINT('modelmailselected') ? GETPOSTINT('modelmailselected') : '-1';
308 308
     $formmail->param['id'] = implode(',', $arrayofselected);
309 309
     // $formmail->param['returnurl']=$_SERVER['PHP_SELF'].'?id='.$object->id;
Please login to merge, or discard this patch.
htdocs/core/tpl/contacts.tpl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 $module = $object->element;
41 41
 
42 42
 // Special cases
43
-if (isset($permissiontoadd) && ! isset($permission)) {
43
+if (isset($permissiontoadd) && !isset($permission)) {
44 44
     $permission = $permissiontoadd;
45 45
 }
46 46
 // TODO Remove this section. We already got $permissiontoadd.
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         <div class="tagtd nowrap noborderbottom">
165 165
             <?php
166 166
             $selectedCompany = GETPOSTISSET("newcompany") ? GETPOSTINT("newcompany") : (empty($object->socid) ? 0 : $object->socid);
167
-            $selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp');  // This also print the select component?>
167
+            $selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp'); // This also print the select component?>
168 168
         </div>
169 169
         <div class="tagtd noborderbottom minwidth500imp">
170 170
             <?php
Please login to merge, or discard this patch.
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.
htdocs/core/tpl/extrafields_list_print_fields.tpl.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                 $valuetoshow = $extrafields->showOutputField($key, $value, '', $extrafieldsobjectkey);
46 46
                 $title = dol_string_nohtmltag($valuetoshow);
47 47
 
48
-                print '<td' . ($cssclass ? ' class="' . $cssclass . '"' : '');    // TODO Add 'css' and 'cssview' and 'csslist' for extrafields and use here 'csslist'
48
+                print '<td' . ($cssclass ? ' class="' . $cssclass . '"' : ''); // TODO Add 'css' and 'cssview' and 'csslist' for extrafields and use here 'csslist'
49 49
                 print ' data-key="' . $extrafieldsobjectkey . '.' . $key . '"';
50 50
                 print($title ? ' title="' . dol_escape_htmltag($title) . '"' : '');
51 51
                 print '>';
Please login to merge, or discard this patch.