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
@@ -124,12 +124,12 @@ class TeacherController extends BaseApiController
private function teacherPayload(?array $teacher, int $userId): ?array
{
if (!$teacher) {
if (! $teacher) {
$model = User::query()->find($userId);
$teacher = $model?->toArray();
}
if (!$teacher) {
if (! $teacher) {
return null;
}
@@ -142,9 +142,6 @@ class TeacherController extends BaseApiController
];
}
/**
* @return int|JsonResponse
*/
private function authenticatedUserIdOrUnauthorized(): int|JsonResponse
{
$userId = (int) (auth()->id() ?? 0);