Completed
Pull Request — master (#1)
by Artem
03:18
created
src/Commands/ManageUsers.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -140,8 +140,7 @@  discard block
 block discarded – undo
140 140
         if($users->isEmpty()) {
141 141
             $this->info('No users found.');
142 142
             return;
143
-        }
144
-        else {
143
+        } else {
145 144
             if(!$this->confirm('Do you want to restore ' . $users->count() . ' user(s)?')) {
146 145
                 return;
147 146
             }
@@ -152,8 +151,7 @@  discard block
 block discarded – undo
152 151
                 $this->authService->handle('restore', ['user' => $user]);
153 152
 
154 153
                 $this->info('User #' . $user->id . ' (' . $user->email . ') successfully restored.');
155
-            }
156
-            catch(\Exception $e) {
154
+            } catch(\Exception $e) {
157 155
                 $this->error('User #' . $user->id . ' (' . $user->email . ') cannot be restored. ' . $e->getMessage());
158 156
             }
159 157
         }
Please login to merge, or discard this patch.