@@ -152,7 +152,9 @@ discard block |
||
| 152 | 152 | } |
| 153 | 153 | public function mime($mime) |
| 154 | 154 | { |
| 155 | - if (empty($mime)) return $this; |
|
| 155 | + if (empty($mime)) { |
|
| 156 | + return $this; |
|
| 157 | + } |
|
| 156 | 158 | $this->content_type = $this->expected_type = Mime::getFullMime($mime); |
| 157 | 159 | if ($this->isUpload()) { |
| 158 | 160 | $this->neverSerializePayload(); |
@@ -182,7 +184,9 @@ discard block |
||
| 182 | 184 | } |
| 183 | 185 | public function expects($mime) |
| 184 | 186 | { |
| 185 | - if (empty($mime)) return $this; |
|
| 187 | + if (empty($mime)) { |
|
| 188 | + return $this; |
|
| 189 | + } |
|
| 186 | 190 | $this->expected_type = Mime::getFullMime($mime); |
| 187 | 191 | return $this; |
| 188 | 192 | } |
@@ -287,8 +291,9 @@ discard block |
||
| 287 | 291 | */ |
| 288 | 292 | public function send() |
| 289 | 293 | { |
| 290 | - if (!$this->hasInitialized) |
|
| 291 | - $this->applyOptions(); |
|
| 294 | + if (!$this->hasInitialized) { |
|
| 295 | + $this->applyOptions(); |
|
| 296 | + } |
|
| 292 | 297 | $response = $this->makeResponse(); |
| 293 | 298 | if ($this->endCallback) { |
| 294 | 299 | $func = $this->endCallback; |