@@ -75,7 +75,7 @@ |
||
| 75 | 75 | |
| 76 | 76 | $status = $response->getStatus()->get(); |
| 77 | 77 | |
| 78 | - if (!$this->codes->exists($status)) throw new Exception("Invalid HTTP status code in response"); |
|
| 78 | + if ( !$this->codes->exists($status) ) throw new Exception("Invalid HTTP status code in response"); |
|
| 79 | 79 | |
| 80 | 80 | $message = $this->codes->getMessage($status); |
| 81 | 81 | |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | |
| 103 | 103 | public function getMessage($code) { |
| 104 | 104 | |
| 105 | - if ($this->exists($code)) return $this->codes[$code]; |
|
| 105 | + if ( $this->exists($code) ) return $this->codes[$code]; |
|
| 106 | 106 | |
| 107 | 107 | throw new Exception("Invalid HTTP status code $code"); |
| 108 | 108 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | $type = $this->response->getContent()->type(); |
| 34 | 34 | $charset = $this->response->getContent()->charset(); |
| 35 | 35 | |
| 36 | - if (empty($charset)) { |
|
| 36 | + if ( empty($charset) ) { |
|
| 37 | 37 | $this->response->getHeaders()->set("Content-type", strtolower($type)); |
| 38 | 38 | } else { |
| 39 | 39 | $this->response->getHeaders()->set("Content-type", strtolower($type)."; charset=".$charset); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | |
| 31 | 31 | $cleanup = ['Allow', 'Content-Encoding', 'Content-Language', 'Content-Length', 'Content-MD5', 'Content-Type', 'Last-Modified']; |
| 32 | 32 | |
| 33 | - foreach ($cleanup as $header) { |
|
| 33 | + foreach ( $cleanup as $header ) { |
|
| 34 | 34 | $this->response->getHeaders()->delete($header); |
| 35 | 35 | } |
| 36 | 36 | |