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

Ignore::viewChecks()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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
}