@@ -140,8 +140,7 @@ discard block |
||
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 |
||
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 | } |