Conditions | 3 |
Paths | 4 |
Total Lines | 23 |
Code Lines | 12 |
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 | |||
50 | $headers = ['Key', 'Value']; |
||
51 | $info = [ |
||
52 | ['id', $task->id], |
||
53 | ['Name', $task->name], |
||
54 | ['User_id', $task->user_id], |
||
55 | ['Description', $task->description], |
||
56 | |||
57 | |||
58 | |||
59 | ]; |
||
60 | $this->table($headers,$info); |
||
61 | |||
62 | }catch(Exception $e){ |
||
63 | |||
64 | $this->error('error' . $e); |
||
65 | } |
||
69 |