Passed
Push — GENERAL_BUG_REVIEW_240911 ( 6dbc7d...fb375d )
by Rafael
53:50
created
template/core/modules/mymodule/doc/doc_generic_myobject_odt.modules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
         $maxfilesizearray = getMaxFileSizeArray();
190 190
         $maxmin = $maxfilesizearray['maxmin'];
191 191
         if ($maxmin > 0) {
192
-            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">';    // MAX_FILE_SIZE must precede the field type=file
192
+            $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file
193 193
         }
194 194
         $texte .= ' <input type="file" name="uploadfile">';
195 195
         $texte .= '<input type="hidden" value="MYMODULE_MYOBJECT_ADDON_PDF_ODT_PATH" name="keyforuploaddir">';
Please login to merge, or discard this patch.
public/htdocs/modulebuilder/template/core/modules/modMyModule.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@
 block discarded – undo
75 75
 
76 76
         // Author
77 77
         $this->editor_name = 'Editor name';
78
-        $this->editor_url = 'https://www.example.com';      // Must be an external online web site
79
-        $this->editor_squarred_logo = '';                   // Must be image filename into the module/img directory followed with @modulename. Example: 'myimage.png@mymodule'
78
+        $this->editor_url = 'https://www.example.com'; // Must be an external online web site
79
+        $this->editor_squarred_logo = ''; // Must be image filename into the module/img directory followed with @modulename. Example: 'myimage.png@mymodule'
80 80
 
81 81
         // Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated', 'experimental_deprecated' or a version string like 'x.y.z'
82 82
         $this->version = '1.0';
Please login to merge, or discard this patch.
public/htdocs/modulebuilder/template/class/myobject.class.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
     /**
164 164
      * @var int Thirdparty ID
165 165
      */
166
-    public $socid;      // both socid and fk_soc are used
167
-    public $fk_soc;     // both socid and fk_soc are used
166
+    public $socid; // both socid and fk_soc are used
167
+    public $fk_soc; // both socid and fk_soc are used
168 168
 
169 169
     /**
170 170
      * @var int Status
@@ -1052,7 +1052,7 @@  discard block
 block discarded – undo
1052 1052
                 $this->date_creation     = $this->db->jdate($obj->datec);
1053 1053
                 $this->date_modification = empty($obj->datem) ? '' : $this->db->jdate($obj->datem);
1054 1054
                 if (!empty($obj->datev)) {
1055
-                    $this->date_validation   = empty($obj->datev) ? '' : $this->db->jdate($obj->datev);
1055
+                    $this->date_validation = empty($obj->datev) ? '' : $this->db->jdate($obj->datev);
1056 1056
                 }
1057 1057
             }
1058 1058
 
@@ -1257,13 +1257,13 @@  discard block
 block discarded – undo
1257 1257
      * To overload
1258 1258
      * @see CommonObjectLine
1259 1259
      */
1260
-    public $parent_element = '';        // Example: '' or 'myobject'
1260
+    public $parent_element = ''; // Example: '' or 'myobject'
1261 1261
 
1262 1262
     /**
1263 1263
      * To overload
1264 1264
      * @see CommonObjectLine
1265 1265
      */
1266
-    public $fk_parent_attribute = '';   // Example: '' or 'fk_myobject'
1266
+    public $fk_parent_attribute = ''; // Example: '' or 'fk_myobject'
1267 1267
 
1268 1268
     /**
1269 1269
      * Constructor
Please login to merge, or discard this patch.
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/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/eventorganization/conferenceorboothattendee_card.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'conferenceorboothattendeecard'; // To manage different context of search
48 48
 $backtopage = GETPOST('backtopage', 'alpha');
49 49
 $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
50
-$lineid   = GETPOSTINT('lineid');
50
+$lineid = GETPOSTINT('lineid');
51 51
 $mode = GETPOST('mode', 'alpha');
52 52
 
53 53
 $conf_or_booth_id = GETPOSTINT('conforboothid');
Please login to merge, or discard this patch.
public/htdocs/eventorganization/conferenceorboothattendee_list.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -46,15 +46,15 @@  discard block
 block discarded – undo
46 46
 $langs->loadLangs(array("eventorganization", "other", "projects", "bills"));
47 47
 
48 48
 // Get Parameters
49
-$action      = GETPOST('action', 'aZ09') ? GETPOST('action', 'aZ09') : 'view';   // The action 'add', 'create', 'edit', 'update', 'view', ...
50
-$massaction  = GETPOST('massaction', 'alpha');   // The bulk action (combo box choice into lists)
51
-$show_files  = GETPOSTINT('show_files');   // Show files area generated by bulk actions ?
52
-$confirm     = GETPOST('confirm', 'alpha');   // Result of a confirmation
53
-$cancel      = GETPOST('cancel', 'alpha');   // We click on a Cancel button
54
-$toselect    = GETPOST('toselect', 'array');   // Array of ids of elements selected into a list
49
+$action      = GETPOST('action', 'aZ09') ? GETPOST('action', 'aZ09') : 'view'; // The action 'add', 'create', 'edit', 'update', 'view', ...
50
+$massaction  = GETPOST('massaction', 'alpha'); // The bulk action (combo box choice into lists)
51
+$show_files  = GETPOSTINT('show_files'); // Show files area generated by bulk actions ?
52
+$confirm     = GETPOST('confirm', 'alpha'); // Result of a confirmation
53
+$cancel      = GETPOST('cancel', 'alpha'); // We click on a Cancel button
54
+$toselect    = GETPOST('toselect', 'array'); // Array of ids of elements selected into a list
55 55
 $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : str_replace('_', '', basename(dirname(__FILE__)) . basename(__FILE__, '.php')); // To manage different context of search
56
-$backtopage  = GETPOST('backtopage', 'alpha');   // Go back to a dedicated page
57
-$optioncss   = GETPOST('optioncss', 'aZ');   // Option for the css output (always '' except when 'print')
56
+$backtopage  = GETPOST('backtopage', 'alpha'); // Go back to a dedicated page
57
+$optioncss   = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print')
58 58
 $mode        = GETPOST('mode', 'aZ');
59 59
 
60 60
 $id = GETPOSTINT('id');
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
 // Default sort order (if not yet defined by previous GETPOST)
97 97
 if (!$sortfield) {
98
-    reset($object->fields);                 // Reset is required to avoid key() to return null.
98
+    reset($object->fields); // Reset is required to avoid key() to return null.
99 99
     $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition.
100 100
 }
101 101
 if (!$sortorder) {
@@ -806,7 +806,7 @@  discard block
 block discarded – undo
806 806
 }
807 807
 
808 808
 $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage;
809
-$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN'));  // This also change content of $arrayfields with user setup
809
+$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup
810 810
 $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : '');
811 811
 $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : '');
812 812
 
@@ -898,7 +898,7 @@  discard block
 block discarded – undo
898 898
     } 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'])) {
899 899
         $cssforfield .= ($cssforfield ? ' ' : '') . 'right';
900 900
     }
901
-    $cssforfield = preg_replace('/small\s*/', '', $cssforfield);    // the 'small' css must not be used for the title label
901
+    $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label
902 902
     if (!empty($arrayfields['t.' . $key]['checked'])) {
903 903
         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";
904 904
         $totalarray['nbfield']++;
Please login to merge, or discard this patch.
public/htdocs/expensereport/ajax/ajaxik.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,21 +69,21 @@
 block discarded – undo
69 69
 
70 70
 
71 71
 if (empty($fk_expense) || $fk_expense < 0) {
72
-    $rep->errorMessage =   $langs->transnoentitiesnoconv('ErrorBadValueForParameter', $fk_expense, 'fk_expense');
72
+    $rep->errorMessage = $langs->transnoentitiesnoconv('ErrorBadValueForParameter', $fk_expense, 'fk_expense');
73 73
 } elseif (empty($fk_c_exp_tax_cat) || $fk_c_exp_tax_cat < 0) {
74
-    $rep->errorMessage =  $langs->transnoentitiesnoconv('ErrorBadValueForParameter', $fk_c_exp_tax_cat, 'fk_c_exp_tax_cat');
74
+    $rep->errorMessage = $langs->transnoentitiesnoconv('ErrorBadValueForParameter', $fk_c_exp_tax_cat, 'fk_c_exp_tax_cat');
75 75
 
76 76
     $rep->response_status = 'error';
77 77
 } else {
78 78
     // @see ndfp.class.php:3576 (method: compute_total_km)
79 79
     $expense = new ExpenseReport($db);
80 80
     if ($expense->fetch($fk_expense) <= 0) {
81
-        $rep->errorMessage =  $langs->transnoentitiesnoconv('ErrorRecordNotFound');
81
+        $rep->errorMessage = $langs->transnoentitiesnoconv('ErrorRecordNotFound');
82 82
         $rep->response_status = 'error';
83 83
     } else {
84 84
         $userauthor = new User($db);
85 85
         if ($userauthor->fetch($expense->fk_user_author) <= 0) {
86
-            $rep->errorMessage =  $langs->transnoentitiesnoconv('ErrorRecordNotFound');
86
+            $rep->errorMessage = $langs->transnoentitiesnoconv('ErrorRecordNotFound');
87 87
             $rep->response_status = 'error';
88 88
         } else {
89 89
             $expense = new ExpenseReport($db);
Please login to merge, or discard this patch.