@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | public function removeHeader(string $header): Response |
111 | 111 | { |
112 | - if(isset($this->headers[$header])) { |
|
112 | + if (isset($this->headers[$header])) { |
|
113 | 113 | unset($this->headers[$header]); |
114 | 114 | } |
115 | 115 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | $this->terminate(); |
213 | 213 | } |
214 | 214 | |
215 | - if($this->body instanceof Closure) { |
|
215 | + if ($this->body instanceof Closure) { |
|
216 | 216 | $body = $this->body->call($this); |
217 | 217 | } else { |
218 | 218 | $body = $this->body; |
@@ -368,14 +368,14 @@ discard block |
||
368 | 368 | * @param string $format |
369 | 369 | * @return Response |
370 | 370 | */ |
371 | - public function setOutputFormat(?string $format=null): Response |
|
371 | + public function setOutputFormat(?string $format = null) : Response |
|
372 | 372 | { |
373 | - if($format === null) { |
|
373 | + if ($format === null) { |
|
374 | 374 | $this->output_format = null; |
375 | 375 | return $this->removeHeader('Content-Type'); |
376 | 376 | } |
377 | 377 | |
378 | - if(!array_key_exists($format, self::OUTPUT_FORMATS)) { |
|
378 | + if (!array_key_exists($format, self::OUTPUT_FORMATS)) { |
|
379 | 379 | throw new Exception('invalid output format given'); |
380 | 380 | } |
381 | 381 |