Completed
Push — master ( 76ae44...61569d )
by Raffael
01:46
created
src/Http/Response.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.