Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-09 00:03:03 -04:00
parent 8d4d610b82
commit b5fd4a4ca1
1414 changed files with 11317 additions and 10201 deletions
@@ -29,7 +29,7 @@ class ReimbursementRecipientService
if ($id <= 0 || in_array($roleName, $excludedRoles, true)) {
continue;
}
if (!isset($staff[$id])) {
if (! isset($staff[$id])) {
$staff[$id] = [
'id' => $id,
'firstname' => $row->firstname ?? '',
@@ -39,8 +39,9 @@ class ReimbursementRecipientService
}
uasort($staff, static function (array $a, array $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);
});
@@ -55,7 +56,7 @@ class ReimbursementRecipientService
public function adminRoster(): array
{
$admins = $this->staffUsers();
if (!empty($admins)) {
if (! empty($admins)) {
return $admins;
}
@@ -64,11 +65,12 @@ class ReimbursementRecipientService
public function specialRecipientLabel($value): ?string
{
if ($value === null || !is_numeric($value)) {
if ($value === null || ! is_numeric($value)) {
return null;
}
$id = (int) $value;
return self::SPECIAL_RECIPIENTS[$id] ?? null;
}
@@ -79,7 +81,7 @@ class ReimbursementRecipientService
}, $users);
foreach (self::SPECIAL_RECIPIENTS as $id => $label) {
if (!in_array($id, $existingIds, true)) {
if (! in_array($id, $existingIds, true)) {
$users[] = [
'id' => $id,
'firstname' => $label,