Issues (232)

app/Exceptions/InvitationNeededException.php (1 issue)

1
<?php
2
3
namespace App\Exceptions;
4
5
6
class InvitationNeededException extends CustomException
7
{
8
    public function render($request)
0 ignored issues
show
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

8
    public function render(/** @scrutinizer ignore-unused */ $request)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
9
    {
10
        return response()->view('errors.general',
11
            ['code' => 403,
12
                'message' => trans('core.forbidden'),
13
                'quote' => trans('msg.invitation_needed'),
14
                'author' => "Admin",
15
                'source' => "",
16
                'sentryID' => $this->sentryID,]
17
        );
18
    }
19
}
20