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
@@ -4,6 +4,7 @@ namespace App\Services\Incidents;
use App\Models\ClassSection;
use App\Models\StudentClass;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Facades\DB;
class IncidentLookupService
@@ -72,7 +73,7 @@ class IncidentLookupService
->select('id', 'firstname', 'lastname')
->whereIn('id', $userIds)
->get()
->map(fn ($row) => $row instanceof \Illuminate\Contracts\Support\Arrayable ? $row->toArray() : (array) $row)
->map(fn ($row) => $row instanceof Arrayable ? $row->toArray() : (array) $row)
->all();
$map = [];
@@ -81,8 +82,8 @@ class IncidentLookupService
if ($id === null) {
continue;
}
$name = trim((string) ($row['firstname'] ?? '') . ' ' . (string) ($row['lastname'] ?? ''));
$map[(int) $id] = $name !== '' ? $name : ('User #' . $id);
$name = trim((string) ($row['firstname'] ?? '').' '.(string) ($row['lastname'] ?? ''));
$map[(int) $id] = $name !== '' ? $name : ('User #'.$id);
}
return $map;