You've already forked Atomcms-edit
chore: improve code quality - PHPStan level 5, add #[\Override] attributes, fix return types
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user