@@ -20,19 +20,19 @@ |
||
| 20 | 20 | |
| 21 | 21 | public function getStartTimeAttribute() |
| 22 | 22 | { |
| 23 | - if (isset($this->attributes['startTime'])) |
|
| 24 | - return new Carbon($this->attributes['startTime']); |
|
| 23 | + if (isset($this->attributes['startTime'])) |
|
| 24 | + return new Carbon($this->attributes['startTime']); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | public function getEndTimeAttribute() |
| 28 | 28 | { |
| 29 | - if (if (isset($this->attributes['endTime']))) { |
|
| 30 | - if ($this->attributes['status'] == 'CLOSE') { |
|
| 31 | - return new Carbon($this->attributes['endTime']); |
|
| 32 | - } else { |
|
| 33 | - return null; |
|
| 34 | - } |
|
| 35 | - } |
|
| 29 | + if (if (isset($this->attributes['endTime']))) { |
|
| 30 | + if ($this->attributes['status'] == 'CLOSE') { |
|
| 31 | + return new Carbon($this->attributes['endTime']); |
|
| 32 | + } else { |
|
| 33 | + return null; |
|
| 34 | + } |
|
| 35 | + } |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function getMinutesAttribute() |
@@ -20,15 +20,18 @@ |
||
| 20 | 20 | |
| 21 | 21 | public function getStartTimeAttribute() |
| 22 | 22 | { |
| 23 | - if (isset($this->attributes['startTime'])) |
|
| 24 | - return new Carbon($this->attributes['startTime']); |
|
| 23 | + if (isset($this->attributes['startTime'])) { |
|
| 24 | + return new Carbon($this->attributes['startTime']); |
|
| 25 | + } |
|
| 25 | 26 | } |
| 26 | 27 | |
| 27 | 28 | public function getEndTimeAttribute() |
| 28 | 29 | { |
| 29 | - if (if (isset($this->attributes['endTime']))) { |
|
| 30 | + if (if (isset($this->attributes['endTime'])) { |
|
| 31 | + ) { |
|
| 30 | 32 | if ($this->attributes['status'] == 'CLOSE') { |
| 31 | 33 | return new Carbon($this->attributes['endTime']); |
| 34 | + } |
|
| 32 | 35 | } else { |
| 33 | 36 | return null; |
| 34 | 37 | } |