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

Auth::config()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
nc 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