@@ -103,10 +103,10 @@ |
||
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | $scheme = isset($this->getServerParams()['HTTPS']) ? 'https://' : 'http://'; |
| 106 | - $host = isset($this->getServerParams()['HTTP_HOST']) ? $scheme . $this->getServerParams()['HTTP_HOST'] : ''; |
|
| 106 | + $host = isset($this->getServerParams()['HTTP_HOST']) ? $scheme.$this->getServerParams()['HTTP_HOST'] : ''; |
|
| 107 | 107 | $path = isset($this->getServerParams()['REQUEST_URI']) ? $this->getServerParams()['REQUEST_URI'] : ''; |
| 108 | 108 | |
| 109 | - return new URI($host . $path); |
|
| 109 | + return new URI($host.$path); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /** |
@@ -45,11 +45,11 @@ |
||
| 45 | 45 | public function send() |
| 46 | 46 | { |
| 47 | 47 | if ($this->getProtocolVersion() && $this->getStatusCode()) { |
| 48 | - header(static::VERSION_DELIMITER . $this->getProtocolVersion() . ' ' . $this->getStatusCode() . ' ' . $this->getReasonPhrase()); |
|
| 48 | + header(static::VERSION_DELIMITER.$this->getProtocolVersion().' '.$this->getStatusCode().' '.$this->getReasonPhrase()); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | foreach ($this->getHeaders() as $key => $value) { |
| 52 | - header($key . static::HEADER_DELIMITER . implode(static::HEADER_VALUE_DELIMITER, $value)); |
|
| 52 | + header($key.static::HEADER_DELIMITER.implode(static::HEADER_VALUE_DELIMITER, $value)); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | echo $this->getBody(); |