Completed
Push — master ( c9f57f...fa645d )
by
unknown
06:58
created
src/Commands/ManageUsers.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -84,13 +84,13 @@  discard block
 block discarded – undo
84 84
      */
85 85
     protected function runActionHandler(string $action)
86 86
     {
87
-        if(!in_array($action, $this->actions)) {
87
+        if (!in_array($action, $this->actions)) {
88 88
             throw new \InvalidArgumentException("Unknown action `{$action}` passed");
89 89
         }
90 90
 
91 91
         $actionHandler = 'handle' . studly_case($action);
92 92
 
93
-        if(!method_exists($this, $actionHandler)) {
93
+        if (!method_exists($this, $actionHandler)) {
94 94
             throw new \InvalidArgumentException("Cannot find action handler `{$actionHandler}`");
95 95
         }
96 96
 
@@ -137,12 +137,12 @@  discard block
 block discarded – undo
137 137
     {
138 138
         $users = $this->retrieveUsers(['id' => $this->ids], true);
139 139
 
140
-        if($users->isEmpty()) {
140
+        if ($users->isEmpty()) {
141 141
             $this->info('No users found.');
142 142
             return;
143 143
         }
144 144
         else {
145
-            if(!$this->confirm('Do you want to restore ' . $users->count() . ' user(s)?')) {
145
+            if (!$this->confirm('Do you want to restore ' . $users->count() . ' user(s)?')) {
146 146
                 return;
147 147
             }
148 148
         }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
                 $this->info('User #' . $user->id . ' (' . $user->email . ') successfully restored.');
155 155
             }
156
-            catch(\Exception $e) {
156
+            catch (\Exception $e) {
157 157
                 $this->error('User #' . $user->id . ' (' . $user->email . ') cannot be restored. ' . $e->getMessage());
158 158
             }
159 159
         }
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
             $query->whereIn($column, $value);
178 178
         }
179 179
 
180
-        if($onlyTrashed) {
180
+        if ($onlyTrashed) {
181 181
             $query->whereNotNull('deleted_at');
182 182
         }
183 183
 
Please login to merge, or discard this patch.