@@ -56,23 +56,23 @@ discard block |
||
| 56 | 56 | $this->supportsHead = $supportsHead; |
| 57 | 57 | |
| 58 | 58 | $parsed = parse_url($base); |
| 59 | - $this->base = $parsed['scheme'] . '://'; |
|
| 59 | + $this->base = $parsed['scheme'].'://'; |
|
| 60 | 60 | |
| 61 | 61 | if (isset($parsed['user'])) { |
| 62 | 62 | $this->visibility = AdapterInterface::VISIBILITY_PRIVATE; |
| 63 | 63 | $this->base .= $parsed['user']; |
| 64 | 64 | |
| 65 | 65 | if (isset($parsed['pass']) && $parsed['pass'] !== '') { |
| 66 | - $this->base .= ':' . $parsed['pass']; |
|
| 66 | + $this->base .= ':'.$parsed['pass']; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | $this->base .= '@'; |
| 70 | 70 | }; |
| 71 | 71 | |
| 72 | - $this->base .= $parsed['host'] . '/'; |
|
| 72 | + $this->base .= $parsed['host'].'/'; |
|
| 73 | 73 | |
| 74 | 74 | if (isset($parsed['path']) && $parsed['path'] !== '/') { |
| 75 | - $this->base .= trim($parsed['path'], '/') . '/'; |
|
| 75 | + $this->base .= trim($parsed['path'], '/').'/'; |
|
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 78 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | public function getMetadata($path) |
| 125 | 125 | { |
| 126 | - if (! $response = $this->head($path)) { |
|
| 126 | + if (!$response = $this->head($path)) { |
|
| 127 | 127 | return false; |
| 128 | 128 | } |
| 129 | 129 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | */ |
| 208 | 208 | public function read($path) |
| 209 | 209 | { |
| 210 | - if (! $response = $this->get($path)) { |
|
| 210 | + if (!$response = $this->get($path)) { |
|
| 211 | 211 | return false; |
| 212 | 212 | } |
| 213 | 213 | |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | */ |
| 223 | 223 | public function readStream($path) |
| 224 | 224 | { |
| 225 | - if (! $response = $this->get($path)) { |
|
| 225 | + if (!$response = $this->get($path)) { |
|
| 226 | 226 | return false; |
| 227 | 227 | } |
| 228 | 228 | |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | protected function get($path) |
| 295 | 295 | { |
| 296 | 296 | try { |
| 297 | - $response = $this->client->get($this->base . $path); |
|
| 297 | + $response = $this->client->get($this->base.$path); |
|
| 298 | 298 | } catch (BadResponseException $e) { |
| 299 | 299 | return false; |
| 300 | 300 | } |
@@ -315,12 +315,12 @@ discard block |
||
| 315 | 315 | */ |
| 316 | 316 | protected function head($path) |
| 317 | 317 | { |
| 318 | - if (! $this->supportsHead) { |
|
| 318 | + if (!$this->supportsHead) { |
|
| 319 | 319 | return $this->get($path); |
| 320 | 320 | } |
| 321 | 321 | |
| 322 | 322 | try { |
| 323 | - $response = $this->client->head($this->base . $path); |
|
| 323 | + $response = $this->client->head($this->base.$path); |
|
| 324 | 324 | } catch (ClientException $e) { |
| 325 | 325 | if ($e->getResponse()->getStatusCode() === 405) { |
| 326 | 326 | $this->supportsHead = false; |