@@ -88,5 +88,5 @@ |
||
88 | 88 | |
89 | 89 | abstract public function getRequest(); |
90 | 90 | |
91 | - abstract protected function config($string, $children = []); |
|
91 | + abstract protected function config($string, $children = [ ]); |
|
92 | 92 | } |
@@ -88,5 +88,5 @@ |
||
88 | 88 | |
89 | 89 | abstract public function getRequest(); |
90 | 90 | |
91 | - abstract protected function config($string, $children = []); |
|
91 | + abstract protected function config($string, $children = [ ]); |
|
92 | 92 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | return config( |
21 | - implode('.', [Constants::CONFIG_PACKAGE_NAME, $string]), |
|
21 | + implode('.', [ Constants::CONFIG_PACKAGE_NAME, $string ]), |
|
22 | 22 | $default |
23 | 23 | ); |
24 | 24 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | return $this; |
93 | 93 | } |
94 | 94 | |
95 | - abstract protected function config($string, $children = []); |
|
95 | + abstract protected function config($string, $children = [ ]); |
|
96 | 96 | |
97 | 97 | abstract public function getRequest(); |
98 | 98 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function register() |
35 | 35 | { |
36 | - $this->app->singleton('pragmarx.google2fa', function ($app) { |
|
36 | + $this->app->singleton('pragmarx.google2fa', function($app) { |
|
37 | 37 | return $app->make(Google2FA::class); |
38 | 38 | }); |
39 | 39 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | return $this->createErrorBagForMessage( |
38 | 38 | trans( |
39 | 39 | config( |
40 | - array_key_exists($statusCode, $errorMap) ? $errorMap[$statusCode] : 'google2fa.error_messages.unknown' |
|
40 | + array_key_exists($statusCode, $errorMap) ? $errorMap[ $statusCode ] : 'google2fa.error_messages.unknown' |
|
41 | 41 | ) |
42 | 42 | ) |
43 | 43 | ); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | if (is_null($this->auth)) { |
22 | 22 | $this->auth = app($this->config('auth')); |
23 | 23 | |
24 | - if(!empty($this->config('guard'))) |
|
24 | + if (!empty($this->config('guard'))) |
|
25 | 25 | { |
26 | 26 | $this->auth = app($this->config('auth'))->guard($this->config('guard')); |
27 | 27 | } |
@@ -40,5 +40,5 @@ discard block |
||
40 | 40 | return $this->getAuth()->user(); |
41 | 41 | } |
42 | 42 | |
43 | - abstract protected function config($string, $children = []); |
|
43 | + abstract protected function config($string, $children = [ ]); |
|
44 | 44 | } |