Detector   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
namespace Mrluke\Privileges\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
7
/**
8
 * @method static mixed has(Model $model, string $relation = null)
9
 * @method static mixed hasOrLevel(Model $model, int $min, string $relation = null)
10
 * @method static mixed level(int $min)
11
 * @method static mixed owner(Model $model, string $foreign = null)
12
 * @method static mixed ownerOrLevel(Model $model, int $min, string $foreign = null)
13
 * @method static self scope($scope)
14
 * @method static mixed share(Model $model, string $modelRelation, string $relation)
15
 * @method static self subject(Authorizable $auth)
16
 */
17
class Detector extends Facade
18
{
19
20
    /**
21
     * Get the registered name of the component.
22
     *
23
     * @return string
24
     */
25
    protected static function getFacadeAccessor()
26
    {
27
        return 'mrluke-privileges-detector';
28
    }
29
}
30