| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function handle(Core $core) |
||
| 41 | { |
||
| 42 | $this->line('Locking '.$this->argument('username').'...'); |
||
|
|
|||
| 43 | if($core->lock_account($this->argument('username'))!="error"){ |
||
| 44 | $table = new Table($this->output); |
||
| 45 | $table->setRows([ |
||
| 46 | ['<fg=green>'.$this->argument('username').' successfully locked.'], |
||
| 47 | |||
| 48 | ]); |
||
| 49 | $table->render(); |
||
| 50 | } else{ |
||
| 51 | $this->line('<fg=red> Locking failed.'); |
||
| 52 | } |
||
| 56 |