Completed
Push — master ( b739db...92d607 )
by Abdelrahman
02:42
created

DashboardPolicy::access()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
<?php
2
3
/*
4
 * NOTICE OF LICENSE
5
 *
6
 * Part of the Rinvex Fort Package.
7
 *
8
 * This source file is subject to The MIT License (MIT)
9
 * that is bundled with this package in the LICENSE file.
10
 *
11
 * Package: Rinvex Fort Package
12
 * License: The MIT License (MIT)
13
 * Link:    https://rinvex.com
14
 */
15
16
namespace Rinvex\Fort\Policies;
17
18
use Rinvex\Fort\Models\User;
19
use Illuminate\Auth\Access\HandlesAuthorization;
20
21
class DashboardPolicy
22
{
23
    use HandlesAuthorization;
24
25
    /**
26
     * Determine whether the user can access the dashboard.
27
     *
28
     * @param \Rinvex\Fort\Models\User $user
29
     *
30
     * @return bool
31
     */
32
    public function access(User $user)
0 ignored issues
show
Unused Code introduced by
The parameter $user is not used and could be removed.

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

Loading history...
33
    {
34
        return true;
35
    }
36
}
37