Test Failed
Push — master ( bd0a28...ba32c2 )
by Php Easy Api
05:04
created
src/resta/Authenticate/ConfigProvider.php 2 patches
Spacing   +9 added lines, -9 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
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function getAddToWhere()
61 61
     {
62
-        if(isset($this->config['guard'][$this->guard]['addToWhere'])){
62
+        if (isset($this->config['guard'][$this->guard]['addToWhere'])) {
63 63
             return $this->config['guard'][$this->guard]['addToWhere'];
64 64
         }
65 65
         return null;
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function getConfigToken()
74 74
     {
75
-        if(isset($this->config['guard'][$this->guard]['token'])){
75
+        if (isset($this->config['guard'][$this->guard]['token'])) {
76 76
             return $this->config['guard'][$this->guard]['token'];
77 77
         }
78 78
         return null;
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     public function provider($key)
168 168
     {
169
-        if(app()->has('authenticate.'.$key) && is_callable($provider = app()->get('authenticate.'.$key))){
169
+        if (app()->has('authenticate.'.$key) && is_callable($provider = app()->get('authenticate.'.$key))) {
170 170
             return $provider;
171 171
         }
172 172
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     {
206 206
         $table = $this->config['guard'][$this->guard]['table'];
207 207
 
208
-        app()->register('authenticateTable',$table);
208
+        app()->register('authenticateTable', $table);
209 209
     }
210 210
 
211 211
     /**
@@ -215,13 +215,13 @@  discard block
 block discarded – undo
215 215
      */
216 216
     public function deviceTokenTable()
217 217
     {
218
-        if(isset($this->config['guard'][$this->guard]['deviceTokenRegister'])){
218
+        if (isset($this->config['guard'][$this->guard]['deviceTokenRegister'])) {
219 219
             $table = $this->config['guard'][$this->guard]['deviceTokenRegister'];
220 220
 
221
-            app()->register('authenticateDeviceTokenTable',$table);
221
+            app()->register('authenticateDeviceTokenTable', $table);
222 222
         }
223
-        else{
224
-            app()->register('authenticateDeviceTokenTable','device_tokens');
223
+        else {
224
+            app()->register('authenticateDeviceTokenTable', 'device_tokens');
225 225
         }
226 226
 
227 227
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -219,8 +219,7 @@
 block discarded – undo
219 219
             $table = $this->config['guard'][$this->guard]['deviceTokenRegister'];
220 220
 
221 221
             app()->register('authenticateDeviceTokenTable',$table);
222
-        }
223
-        else{
222
+        } else{
224 223
             app()->register('authenticateDeviceTokenTable','device_tokens');
225 224
         }
226 225
 
Please login to merge, or discard this patch.