@@ -16,7 +16,7 @@ |
||
| 16 | 16 | 'description' => $this->description, |
| 17 | 17 | 'user_id' => $this->user_id, |
| 18 | 18 | // 'completed' => (Boolean) $this->completed, aquesta linia fa el mateix que la següent. |
| 19 | - 'completed' => $this->completed? true:false, |
|
| 19 | + 'completed' => $this->completed ? true:false, |
|
| 20 | 20 | 'created_at' => $this->created_at->toDateTimeString(), |
| 21 | 21 | 'updated_at' => $this->updated_at->toDateTimeString(), |
| 22 | 22 | ]; |