AppSettingsPolicy   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A viewAny() 0 3 1
1
<?php
2
3
namespace App\Policies;
4
5
use App\Models\User;
6
use App\Traits\AllowTrait;
7
use Illuminate\Auth\Access\HandlesAuthorization;
8
9
class AppSettingsPolicy
10
{
11
    use AllowTrait;
12
    use HandlesAuthorization;
13
14
    /**
15
     * Determine whether the user can view any models
16
     */
17
    public function viewAny(User $user)
18
    {
19
        return $this->checkPermission($user, 'App Settings');
20
    }
21
}
22