chore: improve code quality - PHPStan level 5, add #[\Override] attributes, fix return types

This commit is contained in:
root
2026-05-23 18:44:16 +02:00
parent 6de250f49f
commit 7e8313a55b
6 changed files with 2581 additions and 4 deletions
@@ -48,6 +48,8 @@ class GuestbookController extends Controller
if ($user->profileGuestbook()->where('user_id', $request->user()->id)->count() >= $maxAllowedPostCount) {
return $this->redirectWithError(__('You have already posted :count messages on this profile.', ['count' => $maxAllowedPostCount]));
}
return null;
}
private function redirectWithError(string $message): RedirectResponse