@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public function __construct($base, ClientInterface $client = null, $supportsHead = true) |
| 56 | 56 | { |
| 57 | - $this->base = rtrim($base, '/') . '/'; |
|
| 57 | + $this->base = rtrim($base, '/').'/'; |
|
| 58 | 58 | $this->client = $client ?: new Client(); |
| 59 | 59 | $this->supportsHead = $supportsHead; |
| 60 | 60 | |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | */ |
| 111 | 111 | public function getMetadata($path) |
| 112 | 112 | { |
| 113 | - if ( ! $response = $this->head($path)) { |
|
| 113 | + if (!$response = $this->head($path)) { |
|
| 114 | 114 | return false; |
| 115 | 115 | } |
| 116 | 116 | |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | public function read($path) |
| 178 | 178 | { |
| 179 | - if ( ! $response = $this->get($path)) { |
|
| 179 | + if (!$response = $this->get($path)) { |
|
| 180 | 180 | return false; |
| 181 | 181 | } |
| 182 | 182 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | */ |
| 192 | 192 | public function readStream($path) |
| 193 | 193 | { |
| 194 | - if ( ! $response = $this->get($path)) { |
|
| 194 | + if (!$response = $this->get($path)) { |
|
| 195 | 195 | return false; |
| 196 | 196 | } |
| 197 | 197 | |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | */ |
| 215 | 215 | public function setVisibility($path, $visibility) |
| 216 | 216 | { |
| 217 | - throw new \LogicException('GuzzleAdapter does not support visibility. Path: ' . $path . ', visibility: ' . $visibility); |
|
| 217 | + throw new \LogicException('GuzzleAdapter does not support visibility. Path: '.$path.', visibility: '.$visibility); |
|
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | /** |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | protected function get($path) |
| 260 | 260 | { |
| 261 | 261 | try { |
| 262 | - $response = $this->client->get($this->base . $path); |
|
| 262 | + $response = $this->client->get($this->base.$path); |
|
| 263 | 263 | } catch (BadResponseException $e) { |
| 264 | 264 | return false; |
| 265 | 265 | } |
@@ -335,12 +335,12 @@ discard block |
||
| 335 | 335 | */ |
| 336 | 336 | protected function head($path) |
| 337 | 337 | { |
| 338 | - if ( ! $this->supportsHead) { |
|
| 338 | + if (!$this->supportsHead) { |
|
| 339 | 339 | return $this->get($path); |
| 340 | 340 | } |
| 341 | 341 | |
| 342 | 342 | try { |
| 343 | - $response = $this->client->head($this->base . $path); |
|
| 343 | + $response = $this->client->head($this->base.$path); |
|
| 344 | 344 | } catch (ClientException $e) { |
| 345 | 345 | if ($e->getResponse()->getStatusCode() === 405) { |
| 346 | 346 | $this->supportsHead = false; |