| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function handle() |
||
| 29 | { |
||
| 30 | $user = $this->getUserModel(); |
||
| 31 | |||
| 32 | if (is_null($user)) { |
||
| 33 | $this->error('Oops, the user was not found!'); |
||
| 34 | return 1; |
||
| 35 | } |
||
| 36 | |||
| 37 | if ($this->option('force')) { |
||
| 38 | $user->forceDelete(); |
||
| 39 | } else { |
||
| 40 | $user->delete(); |
||
| 41 | } |
||
| 42 | |||
| 43 | $this->info('User deleted successfully!'); |
||
| 44 | |||
| 45 | return 0; |
||
| 46 | } |
||
| 48 |