Completed
Push — master ( e306f1...c9eaa1 )
by Iman
05:24
created

Ignore   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Test Coverage

Coverage 78.56%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 28
ccs 11
cts 14
cp 0.7856
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A eventChecks() 0 3 1
A eloquentChecks() 0 3 1
A routeChecks() 0 3 1
A ignore() 0 3 1
A viewChecks() 0 3 1
1
<?php
2
3
namespace Imanghafoori\HeyMan;
4
5
class Ignore
6
{
7 1
    public function eloquentChecks()
8
    {
9 1
        $this->ignore('heyman_ignore_eloquent');
10 1
    }
11
12 1
    public function viewChecks()
13
    {
14 1
        $this->ignore('heyman_ignore_view');
15 1
    }
16
17 9
    public function routeChecks()
18
    {
19 9
        $this->ignore('heyman_ignore_route');
20 9
    }
21
22
    public function eventChecks()
23
    {
24
        $this->ignore('heyman_ignore_event');
25
    }
26
    
27
    /**
28
     * @param $key
29
     */
30 11
    private function ignore($key)
31
    {
32 11
        config()->set($key, true);
33
    }
34
}