@@ -41,16 +41,16 @@ |
||
| 41 | 41 | { |
| 42 | 42 | $ret = $core->unlock_account($this->argument('username')); |
| 43 | 43 | $table = new Table($this->output); |
| 44 | - $read_enc = json_decode( $ret); |
|
| 45 | - if(!empty($read_enc)){ |
|
| 44 | + $read_enc = json_decode($ret); |
|
| 45 | + if (!empty($read_enc)) { |
|
| 46 | 46 | $time = $read_enc->last_attemps; |
| 47 | 47 | $attemps = $read_enc->attemps; |
| 48 | 48 | $ip = $read_enc->ip; |
| 49 | 49 | $table->setRows([ |
| 50 | - ['<fg=cyan>Login attemps', $attemps], |
|
| 51 | - ['<fg=cyan>Last login attemps',$time], |
|
| 52 | - ['<fg=cyan>Last IP Address',empty(end($ip))? "unknown":end($ip)], |
|
| 53 | - ['<fg=cyan>Unlocked at',date('Y-m-d H:i:s', time())], |
|
| 50 | + ['<fg=cyan>Login attemps', $attemps], |
|
| 51 | + ['<fg=cyan>Last login attemps', $time], |
|
| 52 | + ['<fg=cyan>Last IP Address', empty(end($ip)) ? "unknown" : end($ip)], |
|
| 53 | + ['<fg=cyan>Unlocked at', date('Y-m-d H:i:s', time())], |
|
| 54 | 54 | ]); |
| 55 | 55 | $table->render(); |
| 56 | 56 | } |