@@ -101,7 +101,7 @@ |
||
101 | 101 | $response->getBody()->write($templateContent); |
102 | 102 | |
103 | 103 | if (!empty($config['headers'])) { |
104 | - foreach($config['headers'] as $name => $val) { |
|
104 | + foreach ($config['headers'] as $name => $val) { |
|
105 | 105 | $response = $response->withHeader($name, $val); |
106 | 106 | } |
107 | 107 | } |
@@ -80,7 +80,7 @@ |
||
80 | 80 | |
81 | 81 | // Set headers if necessary. |
82 | 82 | if (!empty($config['headers'])) { |
83 | - foreach($config['headers'] as $name => $val) { |
|
83 | + foreach ($config['headers'] as $name => $val) { |
|
84 | 84 | $response = $response->withHeader($name, $val); |
85 | 85 | } |
86 | 86 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * |
32 | 32 | * @var string[] |
33 | 33 | */ |
34 | - private $methods = [ 'GET' ]; |
|
34 | + private $methods = ['GET']; |
|
35 | 35 | |
36 | 36 | /** |
37 | 37 | * Response controller classname |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | public function setHeaders(array $headers) |
187 | 187 | { |
188 | 188 | $this->headers = []; |
189 | - foreach($headers as $name => $val) { |
|
189 | + foreach ($headers as $name => $val) { |
|
190 | 190 | $this->addHeader($name, $val); |
191 | 191 | } |
192 | 192 | return $this; |