MailLogPolicy::view()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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
Unused Code introduced by
The parameter $formSubmission 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

22
    public function create($user = null, /** @scrutinizer ignore-unused */ MailLog $formSubmission = null)

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...
Unused Code introduced by
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 ignore-unused  annotation

22
    public function create(/** @scrutinizer ignore-unused */ $user = null, MailLog $formSubmission = null)

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...
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