@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | { |
63 | 63 | $headers = []; |
64 | 64 | |
65 | - foreach($this->headers as $name => $values) { |
|
65 | + foreach ($this->headers as $name => $values) { |
|
66 | 66 | $headers[strtolower($name)] = $values; |
67 | 67 | } |
68 | 68 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | } |
129 | 129 | |
130 | 130 | $instance = clone $this; |
131 | - $instance->headers[$name] = array_filter((array)$value); |
|
131 | + $instance->headers[$name] = array_filter((array) $value); |
|
132 | 132 | return $instance; |
133 | 133 | } |
134 | 134 |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | header("$key: " . implode(',', $value)); |
81 | 81 | } |
82 | 82 | |
83 | - if($this->hasHeader('Content-Type') === false) { |
|
83 | + if ($this->hasHeader('Content-Type') === false) { |
|
84 | 84 | header(vsprintf( |
85 | 85 | 'Content-Type: %s', |
86 | 86 | $this->hasHeader('Content-Type') ? $this->getHeader('Content-Type') : [$this->contentType] |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | if ($this->compression) { |
94 | 94 | ob_start('ob_gzhandler'); |
95 | 95 | } |
96 | - echo (string)$this->getBody(); |
|
96 | + echo (string) $this->getBody(); |
|
97 | 97 | } |
98 | 98 | } |
99 | 99 | |
@@ -102,6 +102,6 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function __toString() |
104 | 104 | { |
105 | - return (string)$this->getBody(); |
|
105 | + return (string) $this->getBody(); |
|
106 | 106 | } |
107 | 107 | } |