@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | $arrayofmassactions = array(); |
209 | 209 | |
210 | 210 | $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; |
211 | -$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
211 | +$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
212 | 212 | $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : ''); |
213 | 213 | $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); |
214 | 214 | |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | usort( |
296 | 296 | $moduleList, |
297 | 297 | /** @return int */ |
298 | - function (stdClass $a, stdClass $b) { |
|
298 | + function(stdClass $a, stdClass $b) { |
|
299 | 299 | return strcasecmp($a->name, $b->name); |
300 | 300 | } |
301 | 301 | ); |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | usort( |
304 | 304 | $moduleList, |
305 | 305 | /** @return int */ |
306 | - static function (stdClass $a, stdClass $b) { |
|
306 | + static function(stdClass $a, stdClass $b) { |
|
307 | 307 | return strcasecmp($b->name, $a->name); |
308 | 308 | } |
309 | 309 | ); |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | usort( |
312 | 312 | $moduleList, |
313 | 313 | /** @return int */ |
314 | - static function (stdClass $a, stdClass $b) { |
|
314 | + static function(stdClass $a, stdClass $b) { |
|
315 | 315 | return strcasecmp($a->version, $b->version); |
316 | 316 | } |
317 | 317 | ); |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | usort( |
320 | 320 | $moduleList, |
321 | 321 | /** @return int */ |
322 | - static function (stdClass $a, stdClass $b) { |
|
322 | + static function(stdClass $a, stdClass $b) { |
|
323 | 323 | return strcasecmp($b->version, $a->version); |
324 | 324 | } |
325 | 325 | ); |
@@ -418,11 +418,11 @@ discard block |
||
418 | 418 | */ |
419 | 419 | function compareIdAsc(stdClass $a, stdClass $b) |
420 | 420 | { |
421 | - if ((int)$a->id == (int)$b->id) { |
|
421 | + if ((int) $a->id == (int) $b->id) { |
|
422 | 422 | return 0; |
423 | 423 | } |
424 | 424 | |
425 | - return ((int)$a->id < (int)$b->id) ? -1 : 1; |
|
425 | + return ((int) $a->id < (int) $b->id) ? -1 : 1; |
|
426 | 426 | } |
427 | 427 | |
428 | 428 | /** |
@@ -434,11 +434,11 @@ discard block |
||
434 | 434 | */ |
435 | 435 | function compareIdDesc(stdClass $a, stdClass $b) |
436 | 436 | { |
437 | - if ((int)$a->id == (int)$b->id) { |
|
437 | + if ((int) $a->id == (int) $b->id) { |
|
438 | 438 | return 0; |
439 | 439 | } |
440 | 440 | |
441 | - return ((int)$b->id < (int)$a->id) ? -1 : 1; |
|
441 | + return ((int) $b->id < (int) $a->id) ? -1 : 1; |
|
442 | 442 | } |
443 | 443 | |
444 | 444 | /** |