Skip to content

Commit f981543

Browse files
authored
Improve PHPDoc of CheckIfAdmin middleware
1 parent 2744e6d commit f981543

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/Http/Middleware/CheckIfAdmin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ class CheckIfAdmin
2222
* does not have a '/home' route, use something you've built for your users
2323
* (again - users, not admins).
2424
*
25-
* @param [type] $user [description]
26-
* @return bool [description]
25+
* @param \Illuminate\Contracts\Auth\Authenticatable|null $user
26+
* @return bool
2727
*/
2828
private function checkIfUserIsAdmin($user)
2929
{
@@ -34,8 +34,8 @@ private function checkIfUserIsAdmin($user)
3434
/**
3535
* Answer to unauthorized access request.
3636
*
37-
* @param [type] $request [description]
38-
* @return [type] [description]
37+
* @param \Illuminate\Http\Request $request
38+
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
3939
*/
4040
private function respondToUnauthorizedRequest($request)
4141
{

0 commit comments

Comments
 (0)