@@ -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 | |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | */ |
| 205 | 205 | public function read($path) |
| 206 | 206 | { |
| 207 | - if (! $response = $this->get($path)) { |
|
| 207 | + if (!$response = $this->get($path)) { |
|
| 208 | 208 | return false; |
| 209 | 209 | } |
| 210 | 210 | |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | */ |
| 220 | 220 | public function readStream($path) |
| 221 | 221 | { |
| 222 | - if (! $response = $this->get($path)) { |
|
| 222 | + if (!$response = $this->get($path)) { |
|
| 223 | 223 | return false; |
| 224 | 224 | } |
| 225 | 225 | |
@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | protected function get($path) |
| 292 | 292 | { |
| 293 | 293 | try { |
| 294 | - $response = $this->client->get($this->base . $path)->send(); |
|
| 294 | + $response = $this->client->get($this->base.$path)->send(); |
|
| 295 | 295 | } catch (BadResponseException $e) { |
| 296 | 296 | return false; |
| 297 | 297 | } |
@@ -312,12 +312,12 @@ discard block |
||
| 312 | 312 | */ |
| 313 | 313 | protected function head($path) |
| 314 | 314 | { |
| 315 | - if (! $this->supportsHead) { |
|
| 315 | + if (!$this->supportsHead) { |
|
| 316 | 316 | return $this->get($path); |
| 317 | 317 | } |
| 318 | 318 | |
| 319 | 319 | try { |
| 320 | - $response = $this->client->head($this->base . $path)->send(); |
|
| 320 | + $response = $this->client->head($this->base.$path)->send(); |
|
| 321 | 321 | } catch (ClientErrorResponseException $e) { |
| 322 | 322 | if ($e->getResponse()->getStatusCode() === 405) { |
| 323 | 323 | $this->supportsHead = false; |