Passed
Push — EXTRACT_CLASSES ( a2ff75...ae6b5c )
by Rafael
34:15
created
public/htdocs/modulebuilder/template/myobject_list.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 $object = new MyObject($db);
122 122
 $extrafields = new ExtraFields($db);
123 123
 $diroutputmassaction = $conf->mymodule->dir_output . '/temp/massgeneration/' . $user->id;
124
-$hookmanager->initHooks(array($contextpage));   // Note that conf->hooks_modules contains array of activated contexes
124
+$hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes
125 125
 
126 126
 // Fetch optionals attributes and labels
127 127
 $extrafields->fetch_name_optionals_label($object->table_element);
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
 // Default sort order (if not yet defined by previous GETPOST)
133 133
 if (!$sortfield) {
134
-    reset($object->fields);                 // Reset is required to avoid key() to return null.
134
+    reset($object->fields); // Reset is required to avoid key() to return null.
135 135
     $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition.
136 136
 }
137 137
 if (!$sortorder) {
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
 // Output page
452 452
 // --------------------------------------------------------------------
453 453
 
454
-llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'mod-mymodule page-list bodyforlist');    // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
454
+llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'mod-mymodule page-list bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
455 455
 
456 456
 // Example : Adding jquery code
457 457
 // print '<script type="text/javascript">
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
 }
584 584
 
585 585
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
586
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
586
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
587 587
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
588 588
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
589 589
 
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
     } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && !in_array($key, array('id', 'rowid', 'ref', 'status')) && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) {
677 677
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
678 678
     }
679
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
679
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
680 680
     if (!empty($arrayfields['t.' . $key]['checked'])) {
681 681
         print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n";
682 682
         $totalarray['nbfield']++;
Please login to merge, or discard this patch.
public/htdocs/modulebuilder/index.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 
389 389
         clearstatcache(true);
390 390
         if (function_exists('opcache_invalidate')) {
391
-            opcache_reset();    // remove the include cache hell !
391
+            opcache_reset(); // remove the include cache hell !
392 392
         }
393 393
 
394 394
         header("Location: " . $_SERVER["PHP_SELF"] . '?module=' . $modulename);
@@ -883,7 +883,7 @@  discard block
 block discarded – undo
883 883
             }
884 884
             $stringLog = implode("\n", $strreplace);
885 885
             // @phan-suppress-next-line PhanPluginSuspiciousParamPosition
886
-            dolReplaceInFile($destfile, array('//include::ChangeLog.md[]' => '','__CHANGELOG__' => $stringLog));
886
+            dolReplaceInFile($destfile, array('//include::ChangeLog.md[]' => '', '__CHANGELOG__' => $stringLog));
887 887
         }
888 888
 
889 889
         // Delete old documentation files
@@ -1540,7 +1540,7 @@  discard block
 block discarded – undo
1540 1540
             }
1541 1541
         }
1542 1542
         $menus = $moduleobj->menu;
1543
-        $counter = 0 ;
1543
+        $counter = 0;
1544 1544
         foreach ($menus as $menu) {
1545 1545
             if ($menu['leftmenu'] == strtolower($objectname)) {
1546 1546
                 $counter++;
@@ -1682,7 +1682,7 @@  discard block
 block discarded – undo
1682 1682
         } else {
1683 1683
             createNewDictionnary($module, $moduledescriptorfile, $newdicname, $dictionaries);
1684 1684
             if (function_exists('opcache_invalidate')) {
1685
-                opcache_reset();    // remove the include cache hell !
1685
+                opcache_reset(); // remove the include cache hell !
1686 1686
             }
1687 1687
             clearstatcache(true);
1688 1688
             header("Location: " . constant('BASE_URL') . '/modulebuilder/index.php?tab=dictionaries&module=' . $module . ($forceddirread ? '@' . $dirread : ''));
@@ -1777,7 +1777,7 @@  discard block
 block discarded – undo
1777 1777
                 'isameasure' => GETPOSTINT('propisameasure'),
1778 1778
                 'comment' => GETPOST('propcomment', 'alpha'),
1779 1779
                 'help' => GETPOST('prophelp', 'alpha'),
1780
-                'css' => GETPOST('propcss', 'alpha'),        // Can be 'maxwidth500 widthcentpercentminusxx' for example
1780
+                'css' => GETPOST('propcss', 'alpha'), // Can be 'maxwidth500 widthcentpercentminusxx' for example
1781 1781
                 'cssview' => GETPOST('propcssview', 'alpha'),
1782 1782
                 'csslist' => GETPOST('propcsslist', 'alpha'),
1783 1783
                 'default' => GETPOST('propdefault', 'restricthtml'),
@@ -1932,7 +1932,7 @@  discard block
 block discarded – undo
1932 1932
 
1933 1933
             clearstatcache(true);
1934 1934
             if (function_exists('opcache_invalidate')) {
1935
-                opcache_reset();    // remove the include cache hell !
1935
+                opcache_reset(); // remove the include cache hell !
1936 1936
             }
1937 1937
 
1938 1938
             header("Location: " . $_SERVER["PHP_SELF"] . '?module=deletemodule');
@@ -2024,7 +2024,7 @@  discard block
 block discarded – undo
2024 2024
 
2025 2025
             clearstatcache(true);
2026 2026
             if (function_exists('opcache_invalidate')) {
2027
-                opcache_reset();    // remove the include cache hell !
2027
+                opcache_reset(); // remove the include cache hell !
2028 2028
             }
2029 2029
             $resultko = 0;
2030 2030
             foreach ($filetodelete as $tmpfiletodelete) {
@@ -2044,7 +2044,7 @@  discard block
 block discarded – undo
2044 2044
     }
2045 2045
 
2046 2046
     $action = '';
2047
-    if (! $error) {
2047
+    if (!$error) {
2048 2048
         $tabobj = 'newobject';
2049 2049
     } else {
2050 2050
         $tabobj = 'deleteobject';
@@ -2147,7 +2147,7 @@  discard block
 block discarded – undo
2147 2147
             setEventMessages($langs->trans("DictionaryDeleted", ucfirst(substr($newdicname, 2))), null);
2148 2148
         }
2149 2149
         if (function_exists('opcache_invalidate')) {
2150
-            opcache_reset();    // remove the include cache hell !
2150
+            opcache_reset(); // remove the include cache hell !
2151 2151
         }
2152 2152
         clearstatcache(true);
2153 2153
         header("Location: " . constant('BASE_URL') . '/modulebuilder/index.php?tab=dictionaries&module=' . $module . ($forceddirread ? '@' . $dirread : ''));
@@ -2155,7 +2155,7 @@  discard block
 block discarded – undo
2155 2155
     }
2156 2156
 }
2157 2157
 if ($dirins && $action == 'updatedictionary' && GETPOST('dictionnarykey')) {
2158
-    $keydict = GETPOST('dictionnarykey') - 1 ;
2158
+    $keydict = GETPOST('dictionnarykey') - 1;
2159 2159
 
2160 2160
     $pathtofile = $listofmodules[strtolower($module)]['moduledescriptorrelpath'];
2161 2161
     $destdir = $dirins . '/' . strtolower($module);
@@ -2189,7 +2189,7 @@  discard block
 block discarded – undo
2189 2189
                 setEventMessages($langs->trans("DictionaryNameUpdated", ucfirst(GETPOST('tablib'))), null);
2190 2190
             }
2191 2191
             if (function_exists('opcache_invalidate')) {
2192
-                opcache_reset();    // remove the include cache hell !
2192
+                opcache_reset(); // remove the include cache hell !
2193 2193
             }
2194 2194
             clearstatcache(true);
2195 2195
             header("Location: " . constant('BASE_URL') . '/modulebuilder/index.php?tab=dictionaries&module=' . $module . ($forceddirread ? '@' . $dirread : ''));
@@ -2364,7 +2364,7 @@  discard block
 block discarded – undo
2364 2364
 
2365 2365
         clearstatcache(true);
2366 2366
         if (function_exists('opcache_invalidate')) {
2367
-            opcache_reset();    // remove the include cache hell !
2367
+            opcache_reset(); // remove the include cache hell !
2368 2368
         }
2369 2369
         header("Location: " . constant('BASE_URL') . '/modulebuilder/index.php?tab=permissions&module=' . $module);
2370 2370
         exit;
@@ -2470,7 +2470,7 @@  discard block
 block discarded – undo
2470 2470
             setEventMessages($langs->trans('PermissionUpdatedSuccesfuly'), null);
2471 2471
             clearstatcache(true);
2472 2472
             if (function_exists('opcache_invalidate')) {
2473
-                opcache_reset();    // remove the include cache hell !
2473
+                opcache_reset(); // remove the include cache hell !
2474 2474
             }
2475 2475
             header("Location: " . constant('BASE_URL') . '/modulebuilder/index.php?tab=permissions&module=' . $module);
2476 2476
             exit;
@@ -2520,7 +2520,7 @@  discard block
 block discarded – undo
2520 2520
 
2521 2521
             clearstatcache(true);
2522 2522
             if (function_exists('opcache_invalidate')) {
2523
-                opcache_reset();    // remove the include cache hell !
2523
+                opcache_reset(); // remove the include cache hell !
2524 2524
             }
2525 2525
 
2526 2526
             header("Location: " . constant('BASE_URL') . '/modulebuilder/index.php?tab=permissions&module=' . $module);
@@ -2690,7 +2690,7 @@  discard block
 block discarded – undo
2690 2690
 
2691 2691
         clearstatcache(true);
2692 2692
         if (function_exists('opcache_invalidate')) {
2693
-            opcache_reset();    // remove the include cache hell !
2693
+            opcache_reset(); // remove the include cache hell !
2694 2694
         }
2695 2695
 
2696 2696
         setEventMessages($langs->trans('MenuDeletedSuccessfuly'), null);
@@ -2747,7 +2747,7 @@  discard block
 block discarded – undo
2747 2747
         setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Url")), null, 'errors');
2748 2748
     }
2749 2749
     if (!empty(GETPOST('target'))) {
2750
-        $targets = array('_blank','_self','_parent','_top','');
2750
+        $targets = array('_blank', '_self', '_parent', '_top', '');
2751 2751
         if (!in_array(GETPOST('target'), $targets)) {
2752 2752
             $error++;
2753 2753
             setEventMessages($langs->trans("ErrorFieldValue", $langs->transnoentities("target")), null, 'errors');
@@ -2853,7 +2853,7 @@  discard block
 block discarded – undo
2853 2853
 
2854 2854
 // Modify a menu entry
2855 2855
 if ($dirins && $action == "update_menu" && GETPOSTINT('menukey') && GETPOST('tabobj')) {
2856
-    $objectname =  GETPOST('tabobj');
2856
+    $objectname = GETPOST('tabobj');
2857 2857
     $dirins = $listofmodules[strtolower($module)]['moduledescriptorrootpath'];
2858 2858
     $destdir = $dirins . '/' . strtolower($module);
2859 2859
     $objects = dolGetListOfObjectClasses($destdir);
@@ -2948,7 +2948,7 @@  discard block
 block discarded – undo
2948 2948
             }
2949 2949
         }
2950 2950
     } else {
2951
-        $_POST['type'] = '';    // TODO Use a var here and later
2951
+        $_POST['type'] = ''; // TODO Use a var here and later
2952 2952
         $_POST['titre'] = '';
2953 2953
         $_POST['fk_menu'] = '';
2954 2954
         $_POST['leftmenu'] = '';
@@ -4124,16 +4124,16 @@  discard block
 block discarded – undo
4124 4124
                         // Define path for sql file
4125 4125
                         $pathtosql = strtolower($module) . '/sql/llx_' . strtolower($module) . '_' . strtolower($tabobj) . '-' . strtolower($module) . '.sql';
4126 4126
                         $result = dol_buildpath($pathtosql);
4127
-                        if (! dol_is_file($result)) {
4127
+                        if (!dol_is_file($result)) {
4128 4128
                             $pathtosql = strtolower($module) . '/sql/llx_' . strtolower($module) . '_' . strtolower($tabobj) . '.sql';
4129 4129
                             $result = dol_buildpath($pathtosql);
4130
-                            if (! dol_is_file($result)) {
4130
+                            if (!dol_is_file($result)) {
4131 4131
                                 $pathtosql = 'install/mysql/tables/llx_' . strtolower($module) . '_' . strtolower($tabobj) . '-' . strtolower($module) . '.sql';
4132 4132
                                 $result = dol_buildpath($pathtosql);
4133
-                                if (! dol_is_file($result)) {
4133
+                                if (!dol_is_file($result)) {
4134 4134
                                     $pathtosql = 'install/mysql/tables/llx_' . strtolower($module) . '-' . strtolower($module) . '.sql';
4135 4135
                                     $result = dol_buildpath($pathtosql);
4136
-                                    if (! dol_is_file($result)) {
4136
+                                    if (!dol_is_file($result)) {
4137 4137
                                         $pathtosql = 'install/mysql/tables/llx_' . strtolower($module) . '.sql';
4138 4138
                                         $pathtosqlextra = 'install/mysql/tables/llx_' . strtolower($module) . '_extrafields.sql';
4139 4139
                                         $result = dol_buildpath($pathtosql);
@@ -4152,7 +4152,7 @@  discard block
 block discarded – undo
4152 4152
                         $pathtosqlroot = preg_replace('/\/llx_.*$/', '', $pathtosql);
4153 4153
 
4154 4154
                         $pathtosqlkey   = preg_replace('/\.sql$/', '.key.sql', $pathtosql);
4155
-                        $pathtosqlextrakey   = preg_replace('/\.sql$/', '.key.sql', $pathtosqlextra);
4155
+                        $pathtosqlextrakey = preg_replace('/\.sql$/', '.key.sql', $pathtosqlextra);
4156 4156
 
4157 4157
                         $pathtolib      = strtolower($module) . '/lib/' . strtolower($module) . '.lib.php';
4158 4158
                         $pathtoobjlib   = strtolower($module) . '/lib/' . strtolower($module) . '_' . strtolower($tabobj) . '.lib.php';
@@ -5664,7 +5664,7 @@  discard block
 block discarded – undo
5664 5664
                             if (in_array($perm[5], array('lire', 'read', 'creer', 'write', 'effacer', 'delete'))) {
5665 5665
                                 print dol_escape_htmltag(ucfirst($perm[4]));
5666 5666
                             } else {
5667
-                                print '';   // No particular object
5667
+                                print ''; // No particular object
5668 5668
                             }
5669 5669
                             print '</td>';
5670 5670
 
Please login to merge, or discard this patch.
public/htdocs/cron/card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -574,7 +574,7 @@
 block discarded – undo
574 574
         $langs->load($reg[1]);
575 575
     }
576 576
 
577
-    $labeltoshow =  preg_replace('/:.*$/', '', $object->label);
577
+    $labeltoshow = preg_replace('/:.*$/', '', $object->label);
578 578
 
579 579
     $morehtmlref = '<div class="refidno">';
580 580
     $morehtmlref .= $langs->trans($labeltoshow);
Please login to merge, or discard this patch.
public/htdocs/cron/info.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
  * View
46 46
  */
47 47
 
48
-$form = new Form($db);  // $form is required as global value into dol_banner_tab
48
+$form = new Form($db); // $form is required as global value into dol_banner_tab
49 49
 
50 50
 llxHeader('', $langs->trans("CronInfo"));
51 51
 
Please login to merge, or discard this patch.
public/htdocs/cron/list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -671,7 +671,7 @@
 block discarded – undo
671 671
         print '<td class="center tdlastresultcode" title="' . dol_escape_htmltag($obj->lastresult) . '">';
672 672
         if ($obj->lastresult != '') {
673 673
             if (empty($obj->lastresult)) {
674
-                print $obj->lastresult;     // Print '0'
674
+                print $obj->lastresult; // Print '0'
675 675
             } else {
676 676
                 print '<span class="error">' . dol_escape_htmltag(dol_trunc($obj->lastresult)) . '</div>';
677 677
             }
Please login to merge, or discard this patch.
public/htdocs/bookcal/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/bookcal/availabilities_list.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
 // Default sort order (if not yet defined by previous GETPOST)
82 82
 if (!$sortfield) {
83
-    reset($object->fields);                 // Reset is required to avoid key() to return null.
83
+    reset($object->fields); // Reset is required to avoid key() to return null.
84 84
     $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition.
85 85
 }
86 86
 if (!$sortorder) {
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 // Output page
391 391
 // --------------------------------------------------------------------
392 392
 
393
-llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist');   // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
393
+llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
394 394
 
395 395
 // Example : Adding jquery code
396 396
 // print '<script type="text/javascript">
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
 }
522 522
 
523 523
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
524
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
524
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
525 525
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
526 526
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
527 527
 
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
     } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && $key != 'rowid' && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) {
616 616
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
617 617
     }
618
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
618
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
619 619
     if (!empty($arrayfields['t.' . $key]['checked'])) {
620 620
         print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n";
621 621
         $totalarray['nbfield']++;
Please login to merge, or discard this patch.
public/htdocs/bookcal/calendar_list.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 $object = new Calendar($db);
69 69
 $extrafields = new ExtraFields($db);
70 70
 $diroutputmassaction = $conf->bookcal->dir_output . '/temp/massgeneration/' . $user->id;
71
-$hookmanager->initHooks(array($contextpage));   // Note that conf->hooks_modules contains array of activated contexes
71
+$hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes
72 72
 
73 73
 // Fetch optionals attributes and labels
74 74
 $extrafields->fetch_name_optionals_label($object->table_element);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 // Default sort order (if not yet defined by previous GETPOST)
80 80
 if (!$sortfield) {
81
-    reset($object->fields);                 // Reset is required to avoid key() to return null.
81
+    reset($object->fields); // Reset is required to avoid key() to return null.
82 82
     $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition.
83 83
 }
84 84
 if (!$sortorder) {
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 // Output page
387 387
 // --------------------------------------------------------------------
388 388
 
389
-llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist');   // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
389
+llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll
390 390
 
391 391
 $arrayofselected = is_array($toselect) ? $toselect : array();
392 392
 
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
 }
504 504
 
505 505
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
506
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
506
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
507 507
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
508 508
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
509 509
 
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
     } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && $key != 'rowid' && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) {
597 597
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
598 598
     }
599
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
599
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
600 600
     if (!empty($arrayfields['t.' . $key]['checked'])) {
601 601
         print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n";
602 602
         $totalarray['nbfield']++;
Please login to merge, or discard this patch.
public/htdocs/bookcal/availabilities_card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once.
77 77
 
78 78
 //avoid warning on missing/undef entity
79
-$object->entity                 = (GETPOSTISSET('entity') ? GETPOSTINT('entity') : $conf->entity);
79
+$object->entity = (GETPOSTISSET('entity') ? GETPOSTINT('entity') : $conf->entity);
80 80
 
81 81
 // There is several ways to check permission.
82 82
 // Set $enablepermissioncheck to 1 to enable a minimum low level of checks
Please login to merge, or discard this patch.