Completed
Push — master ( fc356f...dd7510 )
by Antonio Carlos
02:17
created

Auth   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAuth() 0 8 2
config() 0 1 ?
1
<?php
2
3
namespace PragmaRX\Google2FALaravel\Support;
4
5
6
trait Auth
7
{
8
    /**
9
     * The auth instance.
10
     *
11
     * @var
12
     */
13
    protected $auth;
14
15
    /**
16
     * Get or make an auth instance.
17
     *
18
     * @return \Illuminate\Foundation\Application|mixed
19
     */
20
    protected function getAuth()
21
    {
22
        if (is_null($this->auth)) {
23
            $this->auth = app($this->config('auth'));
0 ignored issues
show
Bug introduced by
The call to config() misses a required argument $children.

This check looks for function calls that miss required arguments.

Loading history...
24
        }
25
26
        return $this->auth;
27
    }
28
29
    abstract public function config($string, $children);
30
}
31