@@ -372,8 +372,7 @@ discard block |
||
| 372 | 372 | */ |
| 373 | 373 | public function setContentType($contentType) |
| 374 | 374 | {
|
| 375 | - if ($contentType === 'json') { $contentType = 'application/json'; }
|
|
| 376 | - elseif ($contentType === 'form') { $contentType = 'application/x-www-form-urlencoded'; }
|
|
| 375 | + if ($contentType === 'json') { $contentType = 'application/json'; } elseif ($contentType === 'form') { $contentType = 'application/x-www-form-urlencoded'; }
|
|
| 377 | 376 | $this->contentType = $contentType; |
| 378 | 377 | } |
| 379 | 378 | |
@@ -536,8 +535,7 @@ discard block |
||
| 536 | 535 | {
|
| 537 | 536 | if (!$this->contentType) |
| 538 | 537 | {
|
| 539 | - if ($this->getMethod() === 'POST') { return 'application/x-www-form-urlencoded'; }
|
|
| 540 | - else { return 'application/json'; }
|
|
| 538 | + if ($this->getMethod() === 'POST') { return 'application/x-www-form-urlencoded'; } else { return 'application/json'; }
|
|
| 541 | 539 | } |
| 542 | 540 | return $this->contentType; |
| 543 | 541 | } |