fix gitlab tests

This commit is contained in:
root
2026-06-09 02:32:58 -04:00
parent 20a0b6c4e5
commit 6def9993da
1489 changed files with 10449 additions and 11356 deletions
@@ -26,7 +26,7 @@ class ExpenseStaffService
if ($id <= 0 || in_array($roleName, $excludedRoles, true)) {
continue;
}
if (! isset($staff[$id])) {
if (!isset($staff[$id])) {
$staff[$id] = [
'id' => $id,
'firstname' => $row['firstname'] ?? '',
@@ -36,9 +36,8 @@ class ExpenseStaffService
}
uasort($staff, static function ($a, $b) {
$nameA = trim(($a['firstname'] ?? '').' '.($a['lastname'] ?? ''));
$nameB = trim(($b['firstname'] ?? '').' '.($b['lastname'] ?? ''));
$nameA = trim(($a['firstname'] ?? '') . ' ' . ($a['lastname'] ?? ''));
$nameB = trim(($b['firstname'] ?? '') . ' ' . ($b['lastname'] ?? ''));
return strcasecmp($nameA, $nameB);
});