Test Failed
Push — master ( 9b28ba...306590 )
by Php Easy Api
04:50
created
src/resta/Authenticate/ConfigProvider.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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,7 +49,7 @@  discard block
 block discarded – undo
49 49
     {
50 50
         $this->config = config('authenticate');
51 51
 
52
-        if(!is_null($config = $this->provider('config'))){
52
+        if (!is_null($config = $this->provider('config'))) {
53 53
             $this->config['guard'][$this->guard] = $config($this->config['guard'][$this->guard]);
54 54
         }
55 55
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.