Completed
Push — master ( 361e7c...d7e260 )
by Artem
03:39
created
src/TokenGuard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,8 +171,7 @@
 block discarded – undo
171 171
         try
172 172
         {
173 173
             $data = (array) \Firebase\JWT\JWT::decode($token, env('JWT_SECRET'), ['HS256']);
174
-        }
175
-        catch(\RuntimeException $e) {
174
+        } catch(\RuntimeException $e) {
176 175
             $this->logout();
177 176
 
178 177
             return null;
Please login to merge, or discard this patch.
src/Commands/SyncUsers.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,8 +95,7 @@
 block discarded – undo
95 95
 
96 96
         if(!count($difference)) {
97 97
             $this->info('There are no changes to apply locally.');
98
-        }
99
-        else {
98
+        } else {
100 99
             $this->info('Remote changes detected, applying...');
101 100
 
102 101
             $localStats = $this->applyDifference($difference);
Please login to merge, or discard this patch.
src/AuthService.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -262,8 +262,7 @@  discard block
 block discarded – undo
262 262
 
263 263
         try {
264 264
             $response = $this->client->request('me');
265
-        }
266
-        catch(\Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException $e) {
265
+        } catch(\Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException $e) {
267 266
             return null;
268 267
         }
269 268
 
@@ -345,8 +344,7 @@  discard block
 block discarded – undo
345 344
 
346 345
         try {
347 346
             $output = $callback();
348
-        }
349
-        catch(\Exception $e) {
347
+        } catch(\Exception $e) {
350 348
             DB::rollBack();
351 349
 
352 350
             if(is_null($fallback)) {
Please login to merge, or discard this patch.