Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.0416 |
Changes | 0 |
1 | <?php |
||
19 | 10 | protected function getAuth() |
|
20 | { |
||
21 | 10 | if (is_null($this->auth)) { |
|
22 | 10 | $this->auth = app($this->config('auth')); |
|
23 | |||
24 | 10 | if(!empty($this->config('guard'))) |
|
25 | { |
||
26 | $this->auth = app($this->config('auth'))->guard($this->config('guard')); |
||
27 | } |
||
28 | } |
||
29 | |||
30 | 10 | return $this->auth; |
|
31 | } |
||
32 | |||
45 |