| Conditions | 3 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public function handle() |
||
| 43 | { |
||
| 44 | //si no me passen id, el demano. |
||
| 45 | $id = $this->argument('id') ? $this->argument('id') : $this->askForTasks(); |
||
| 46 | $task = Task::findOrFail($id); |
||
| 47 | |||
| 48 | try { |
||
| 49 | $headers = ['Key', 'Value']; |
||
| 50 | $info = [ |
||
| 51 | ['id', $task->id], |
||
| 52 | ['Name', $task->name], |
||
| 53 | ['User_id', $task->user_id], |
||
| 54 | ['Description', $task->description], |
||
| 55 | ['Completed', $task->completed], |
||
| 56 | |||
| 57 | ]; |
||
| 58 | $this->table($headers, $info); |
||
| 59 | } catch (Exception $e) { |
||
| 60 | $this->error('error'.$e); |
||
| 61 | } |
||
| 64 |