@@ -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 (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 (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,8 +20,9 @@ |
||
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() |