| Conditions | 2 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | public function handle(Core $core) |
||
| 41 | { |
||
| 42 | $ret = $core->check_account($this->argument('username')); |
||
|
|
|||
| 43 | $table = new Table($this->output); |
||
| 44 | $read_enc = json_decode( $ret); |
||
| 45 | $time = $read_enc->last_attemps; |
||
| 46 | $attemps = $read_enc->attemps; |
||
| 47 | $ip = $read_enc->ip; |
||
| 48 | $table->setRows([ |
||
| 49 | ['<fg=yellow>Login attemps', $attemps], |
||
| 50 | ['<fg=yellow>Last login attemps',$time], |
||
| 51 | ['<fg=yellow>Last IP Address',empty(end($ip))? "unknown":end($ip)],]); |
||
| 52 | $table->render(); |
||
| 53 | // $this->line('<fg=yellow>Valid input is lock, unlock, and attemps.'); |
||
| 57 | } |