1 | <?php |
||||
2 | |||||
3 | namespace Giuga\LaravelMailLog\Policies; |
||||
4 | |||||
5 | use Giuga\LaravelMailLog\Models\MailLog; |
||||
6 | use Illuminate\Auth\Access\HandlesAuthorization; |
||||
7 | |||||
8 | class MailLogPolicy |
||||
9 | { |
||||
10 | use HandlesAuthorization; |
||||
11 | |||||
12 | /** |
||||
13 | * Create a new policy instance. |
||||
14 | * |
||||
15 | * @return void |
||||
16 | */ |
||||
17 | public function __construct() |
||||
18 | { |
||||
19 | // |
||||
20 | } |
||||
21 | |||||
22 | public function create($user = null, MailLog $formSubmission = null) |
||||
0 ignored issues
–
show
The parameter
$user 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
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() |
|||||
23 | { |
||||
24 | return false; |
||||
25 | } |
||||
26 | |||||
27 | public function delete() |
||||
28 | { |
||||
29 | return true; |
||||
30 | } |
||||
31 | |||||
32 | public function view() |
||||
33 | { |
||||
34 | return true; |
||||
35 | } |
||||
36 | } |
||||
37 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.