dev-think-one /
nova-page-settings
| 1 | <?php |
||||
| 2 | |||||
| 3 | |||||
| 4 | namespace Thinkone\NovaPageSettings\QueryAdapter; |
||||
| 5 | |||||
| 6 | use Illuminate\Auth\Access\HandlesAuthorization; |
||||
| 7 | use Illuminate\Foundation\Auth\User; |
||||
| 8 | |||||
| 9 | class AdapterModelPolicy |
||||
| 10 | { |
||||
| 11 | use HandlesAuthorization; |
||||
| 12 | |||||
| 13 | 1 | public function viewAny(User $user) |
|||
|
0 ignored issues
–
show
|
|||||
| 14 | { |
||||
| 15 | 1 | return true; |
|||
| 16 | } |
||||
| 17 | |||||
| 18 | 2 | public function view(User $user) |
|||
|
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. Loading history...
|
|||||
| 19 | { |
||||
| 20 | 2 | return true; |
|||
| 21 | } |
||||
| 22 | |||||
| 23 | 2 | public function update(User $user) |
|||
|
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. Loading history...
|
|||||
| 24 | { |
||||
| 25 | 2 | return true; |
|||
| 26 | } |
||||
| 27 | |||||
| 28 | 2 | public function create(User $user) |
|||
|
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. Loading history...
|
|||||
| 29 | { |
||||
| 30 | 2 | return false; |
|||
| 31 | } |
||||
| 32 | |||||
| 33 | 2 | public function delete(User $user) |
|||
|
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. Loading history...
|
|||||
| 34 | { |
||||
| 35 | 2 | return false; |
|||
| 36 | } |
||||
| 37 | |||||
| 38 | public function forceDelete(User $user) |
||||
|
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. Loading history...
|
|||||
| 39 | { |
||||
| 40 | return false; |
||||
| 41 | } |
||||
| 42 | } |
||||
| 43 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.