Fix Laravel Pint formatting

This commit is contained in:
root
2026-06-08 23:30:22 -04:00
parent 567dc24649
commit c792b8be05
1288 changed files with 10766 additions and 9669 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'] ?? '';