Clean code

This commit is contained in:
Laurent Destailleur 2025-04-24 01:23:49 +02:00
parent 9194e4f12f
commit b10686cb2b

View file

@ -257,7 +257,7 @@ class box_dolibarr_state_board extends ModeleBoxes
if (method_exists($board, 'load_state_board')) {
// @phan-suppress-next-line PhanUndeclaredMethod (Legacy, not present in core).
$board->load_state_board();
} elseif (method_exists($board, 'loadStateBoard')) {
} elseif (method_exists($board, 'loadStateBoard')) { // @phpstan-ignore-current-line
$board->loadStateBoard();
} else {
$board = -1;
@ -284,7 +284,7 @@ class box_dolibarr_state_board extends ModeleBoxes
if (!empty($boxstatFromHook) || !empty($boxstatItems)) {
$boxstat .= $boxstatFromHook;
if (is_array($boxstatItems) && count($boxstatItems) > 0) {
if (!empty($boxstatItems)) {
$boxstat .= implode('', $boxstatItems);
}