@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | { |
32 | 32 | $this->config(); |
33 | 33 | |
34 | - if($this->guard=="default"){ |
|
34 | + if ($this->guard=="default") { |
|
35 | 35 | $this->setAuthenticateNeeds(); |
36 | 36 | } |
37 | 37 | |
@@ -49,8 +49,8 @@ discard block |
||
49 | 49 | { |
50 | 50 | $this->config = config('authenticate'); |
51 | 51 | |
52 | - if(!is_null($config = $this->provider('config'))){ |
|
53 | - $this->config = $config($this->config,$this->config['guard'][$this->guard]); |
|
52 | + if (!is_null($config = $this->provider('config'))) { |
|
53 | + $this->config = $config($this->config, $this->config['guard'][$this->guard]); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | return $this->config; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | */ |
64 | 64 | public function getAddToWhere() |
65 | 65 | { |
66 | - if(isset($this->config['guard'][$this->guard]['addToWhere'])){ |
|
66 | + if (isset($this->config['guard'][$this->guard]['addToWhere'])) { |
|
67 | 67 | return $this->config['guard'][$this->guard]['addToWhere']; |
68 | 68 | } |
69 | 69 | return null; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function getConfigToken() |
78 | 78 | { |
79 | - if(isset($this->config['guard'][$this->guard]['token'])){ |
|
79 | + if (isset($this->config['guard'][$this->guard]['token'])) { |
|
80 | 80 | return $this->config['guard'][$this->guard]['token']; |
81 | 81 | } |
82 | 82 | return null; |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | */ |
171 | 171 | public function provider($key) |
172 | 172 | { |
173 | - if(app()->has('authenticate.'.$key) && is_callable($provider = app()->get('authenticate.'.$key))){ |
|
173 | + if (app()->has('authenticate.'.$key) && is_callable($provider = app()->get('authenticate.'.$key))) { |
|
174 | 174 | return $provider; |
175 | 175 | } |
176 | 176 | |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | { |
210 | 210 | $table = $this->config['guard'][$this->guard]['table']; |
211 | 211 | |
212 | - app()->register('authenticateTable',$table); |
|
212 | + app()->register('authenticateTable', $table); |
|
213 | 213 | } |
214 | 214 | |
215 | 215 | /** |
@@ -219,13 +219,13 @@ discard block |
||
219 | 219 | */ |
220 | 220 | public function deviceTokenTable() |
221 | 221 | { |
222 | - if(isset($this->config['guard'][$this->guard]['deviceTokenRegister'])){ |
|
222 | + if (isset($this->config['guard'][$this->guard]['deviceTokenRegister'])) { |
|
223 | 223 | $table = $this->config['guard'][$this->guard]['deviceTokenRegister']; |
224 | 224 | |
225 | - app()->register('authenticateDeviceTokenTable',$table); |
|
225 | + app()->register('authenticateDeviceTokenTable', $table); |
|
226 | 226 | } |
227 | - else{ |
|
228 | - app()->register('authenticateDeviceTokenTable','device_tokens'); |
|
227 | + else { |
|
228 | + app()->register('authenticateDeviceTokenTable', 'device_tokens'); |
|
229 | 229 | } |
230 | 230 | |
231 | 231 | } |