Fix Pint formatting

This commit is contained in:
root
2026-06-09 01:25:14 -04:00
parent 6be4875c5e
commit 20a0b6c4e5
1485 changed files with 11318 additions and 10273 deletions
@@ -6,9 +6,7 @@ use App\Models\Incident;
class IncidentHistoryService
{
public function __construct(private IncidentLookupService $lookup)
{
}
public function __construct(private IncidentLookupService $lookup) {}
public function history(?string $schoolYear, ?string $semester): array
{
@@ -35,7 +33,7 @@ class IncidentHistoryService
$updaterIds = [];
foreach ($incidents as $incident) {
foreach (['updated_by_open', 'updated_by_closed', 'updated_by_canceled'] as $key) {
if (!empty($incident[$key])) {
if (! empty($incident[$key])) {
$updaterIds[] = (int) $incident[$key];
}
}
@@ -46,7 +44,7 @@ class IncidentHistoryService
foreach ($incidents as &$incident) {
foreach (['updated_by_open', 'updated_by_closed', 'updated_by_canceled'] as $key) {
$id = (int) ($incident[$key] ?? 0);
$incident[$key . '_name'] = $id > 0 ? ($updaterMap[$id] ?? null) : null;
$incident[$key.'_name'] = $id > 0 ? ($updaterMap[$id] ?? null) : null;
}
$gradeValue = $incident['grade'] ?? '';