@@ -136,7 +136,9 @@ discard block |
||
| 136 | 136 | 'body' => json_encode($payload ?: []) |
| 137 | 137 | ]; |
| 138 | 138 | |
| 139 | - if ($noauth) unset($args['auth']); |
|
| 139 | + if ($noauth) { |
|
| 140 | + unset($args['auth']); |
|
| 141 | + } |
|
| 140 | 142 | |
| 141 | 143 | // @codeCoverageIgnoreStart |
| 142 | 144 | try { |
@@ -171,7 +173,9 @@ discard block |
||
| 171 | 173 | */ |
| 172 | 174 | public function V2($url, $method, $payload = null, $headers = null) |
| 173 | 175 | { |
| 174 | - if (!$this->bearer) $this->login(); |
|
| 176 | + if (!$this->bearer) { |
|
| 177 | + $this->login(); |
|
| 178 | + } |
|
| 175 | 179 | |
| 176 | 180 | $client = new Client(); |
| 177 | 181 | $args = [ |
@@ -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 | } |