@@ -234,7 +234,8 @@ |
||
234 | 234 | |
235 | 235 | if (is_dir($caPath)) { |
236 | 236 | $opts['ssl']['capath'] = $caPath; |
237 | - } else { |
|
237 | + } |
|
238 | + else { |
|
238 | 239 | $opts['ssl']['cafile'] = $caPath; |
239 | 240 | } |
240 | 241 |
@@ -84,7 +84,8 @@ discard block |
||
84 | 84 | $encoding = ""; |
85 | 85 | if (function_exists('gzinflate')) { |
86 | 86 | $encoding = 'gzip, deflate'; |
87 | - } else { |
|
87 | + } |
|
88 | + else { |
|
88 | 89 | $encoding = 'identity'; |
89 | 90 | } |
90 | 91 | $this->setHeader('Accept-Encoding', $encoding); |
@@ -101,7 +102,8 @@ discard block |
||
101 | 102 | { |
102 | 103 | if ($requestType == 'HEAD') { |
103 | 104 | $this->setHeader('Connection', 'close'); |
104 | - } else { |
|
105 | + } |
|
106 | + else { |
|
105 | 107 | $this->setHeader('Connection', 'keep-alive'); |
106 | 108 | } |
107 | 109 | } |
@@ -115,7 +117,8 @@ discard block |
||
115 | 117 | { |
116 | 118 | if (strpos($line, ':') === false) { |
117 | 119 | $this->responseCode = HttpStatus::parseStatus($line)->getCode(); |
118 | - } else { |
|
120 | + } |
|
121 | + else { |
|
119 | 122 | $line = trim($line); |
120 | 123 | list ($headerName, $headerValue) = explode(':', $line, 2); |
121 | 124 | $this->headers[$headerName] = trim($headerValue); |