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
@@ -6,9 +6,7 @@ use App\Models\Incident;
class IncidentAnalysisService
{
public function __construct(private IncidentLookupService $lookup)
{
}
public function __construct(private IncidentLookupService $lookup) {}
public function analyze(?string $schoolYear, ?string $semester): array
{
@@ -31,7 +29,7 @@ class IncidentAnalysisService
foreach ($incidents as $incident) {
$studentId = (string) ($incident['student_id'] ?? '');
$studentName = (string) ($incident['student_name'] ?? '');
$studentKey = $studentId !== '' ? 'id:' . $studentId : 'name:' . strtolower(trim($studentName));
$studentKey = $studentId !== '' ? 'id:'.$studentId : 'name:'.strtolower(trim($studentName));
$gradeValue = $incident['grade'] ?? '';
$gradeLabel = $gradeValue;
@@ -39,7 +37,7 @@ class IncidentAnalysisService
$gradeLabel = $gradeMap[(int) $gradeValue] ?? (string) $gradeValue;
}
if (!isset($students[$studentKey])) {
if (! isset($students[$studentKey])) {
$students[$studentKey] = [
'student_id' => $studentId,
'student_name' => $studentName,
@@ -84,6 +82,7 @@ class IncidentAnalysisService
if ($a['total'] === $b['total']) {
return strcasecmp($a['student_name'], $b['student_name']);
}
return $b['total'] <=> $a['total'];
});