@@ -54,7 +54,7 @@ |
||
54 | 54 | $statement = ''; |
55 | 55 | if (!empty($limit) || !empty($offset)) { |
56 | 56 | //When limit is not provided but offset does we can replace limit value with PHP_INT_MAX |
57 | - $statement = 'LIMIT ' . ($limit ?: '18446744073709551615') . ' '; |
|
57 | + $statement = 'LIMIT '.($limit ?: '18446744073709551615').' '; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | if (!empty($offset)) { |
@@ -35,9 +35,9 @@ discard block |
||
35 | 35 | $selectColumns[] = "? AS {$this->quote($column)}"; |
36 | 36 | } |
37 | 37 | |
38 | - $statement[] = 'SELECT ' . implode(', ', $selectColumns); |
|
38 | + $statement[] = 'SELECT '.implode(', ', $selectColumns); |
|
39 | 39 | } else { |
40 | - $statement[] = 'UNION SELECT ' . trim(str_repeat('?, ', count($columns)), ', '); |
|
40 | + $statement[] = 'UNION SELECT '.trim(str_repeat('?, ', count($columns)), ', '); |
|
41 | 41 | } |
42 | 42 | } |
43 | 43 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $statement = ''; |
59 | 59 | |
60 | 60 | if (!empty($limit) || !empty($offset)) { |
61 | - $statement = 'LIMIT ' . ($limit ?: '-1') . ' '; |
|
61 | + $statement = 'LIMIT '.($limit ?: '-1').' '; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | if (!empty($offset)) { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | } |
66 | 66 | |
67 | 67 | if (!$store->isAvailable()) { |
68 | - throw new CacheException("Unable to mount unavailable store '" . get_class($store) . "'"); |
|
68 | + throw new CacheException("Unable to mount unavailable store '".get_class($store)."'"); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | $this->stores[$name] = $store; |
@@ -90,7 +90,7 @@ |
||
90 | 90 | break; |
91 | 91 | default: |
92 | 92 | throw new EntityException( |
93 | - "Undefined field format '" . static::FIELD_FORMAT . "'" |
|
93 | + "Undefined field format '".static::FIELD_FORMAT."'" |
|
94 | 94 | ); |
95 | 95 | } |
96 | 96 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | * |
61 | 61 | * @throws StorageException |
62 | 62 | */ |
63 | - public function locateBucket(string $address, string &$name = null): BucketInterface; |
|
63 | + public function locateBucket(string $address, string & $name = null): BucketInterface; |
|
64 | 64 | |
65 | 65 | /** |
66 | 66 | * Get or create instance of storage server. |
@@ -177,7 +177,7 @@ |
||
177 | 177 | /** |
178 | 178 | * {@inheritdoc} |
179 | 179 | */ |
180 | - public function locateBucket(string $address, string &$name = null): BucketInterface |
|
180 | + public function locateBucket(string $address, string & $name = null): BucketInterface |
|
181 | 181 | { |
182 | 182 | /** |
183 | 183 | * @var BucketInterface $bestBucket |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | public function exists( |
75 | 75 | BucketInterface $bucket, |
76 | 76 | string $name, |
77 | - ResponseInterface &$response = null |
|
77 | + ResponseInterface & $response = null |
|
78 | 78 | ): bool { |
79 | 79 | try { |
80 | 80 | $response = $this->client->send($this->buildRequest('HEAD', $bucket, $name)); |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | protected function buildUri(BucketInterface $bucket, string $name): UriInterface |
225 | 225 | { |
226 | 226 | return new Uri( |
227 | - $this->options['server'] . '/' . $bucket->getOption('bucket') . '/' . rawurlencode($name) |
|
227 | + $this->options['server'].'/'.$bucket->getOption('bucket').'/'.rawurlencode($name) |
|
228 | 228 | ); |
229 | 229 | } |
230 | 230 | |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | { |
270 | 270 | $headers = []; |
271 | 271 | foreach ($commands as $command => $value) { |
272 | - $headers['X-Amz-' . $command] = $value; |
|
272 | + $headers['X-Amz-'.$command] = $value; |
|
273 | 273 | } |
274 | 274 | |
275 | 275 | return $headers; |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | $normalizedCommands = []; |
298 | 298 | foreach ($packedCommands as $command => $value) { |
299 | 299 | if (!empty($value)) { |
300 | - $normalizedCommands[] = strtolower($command) . ':' . $value; |
|
300 | + $normalizedCommands[] = strtolower($command).':'.$value; |
|
301 | 301 | } |
302 | 302 | } |
303 | 303 | |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | |
311 | 311 | return $request->withAddedHeader( |
312 | 312 | 'Authorization', |
313 | - 'AWS ' . $this->options['accessKey'] . ':' . base64_encode( |
|
313 | + 'AWS '.$this->options['accessKey'].':'.base64_encode( |
|
314 | 314 | hash_hmac('sha1', join("\n", $signature), $this->options['secretKey'], true) |
315 | 315 | ) |
316 | 316 | ); |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | |
335 | 335 | if (!empty($maxAge = $bucket->getOption('maxAge', 0))) { |
336 | 336 | //Shortcut |
337 | - $headers['Cache-control'] = 'max-age=' . $bucket->getOption('maxAge', 0) . ', public'; |
|
337 | + $headers['Cache-control'] = 'max-age='.$bucket->getOption('maxAge', 0).', public'; |
|
338 | 338 | $headers['Expires'] = gmdate( |
339 | 339 | 'D, d M Y H:i:s T', |
340 | 340 | time() + $bucket->getOption('maxAge', 0) |
@@ -81,11 +81,11 @@ discard block |
||
81 | 81 | |
82 | 82 | if ($this->options['cache']) { |
83 | 83 | $this->authToken = $this->store->get( |
84 | - $this->options['username'] . '@rackspace-token' |
|
84 | + $this->options['username'].'@rackspace-token' |
|
85 | 85 | ); |
86 | 86 | |
87 | 87 | $this->regions = (array)$this->store->get( |
88 | - $this->options['username'] . '@rackspace-regions' |
|
88 | + $this->options['username'].'@rackspace-regions' |
|
89 | 89 | ); |
90 | 90 | } |
91 | 91 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | public function exists( |
115 | 115 | BucketInterface $bucket, |
116 | 116 | string $name, |
117 | - ResponseInterface &$response = null |
|
117 | + ResponseInterface & $response = null |
|
118 | 118 | ): bool { |
119 | 119 | try { |
120 | 120 | $response = $this->client->send($this->buildRequest('HEAD', $bucket, $name)); |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | { |
230 | 230 | try { |
231 | 231 | $request = $this->buildRequest('PUT', $bucket, $newName, [ |
232 | - 'X-Copy-From' => '/' . $bucket->getOption('container') . '/' . rawurlencode($oldName), |
|
232 | + 'X-Copy-From' => '/'.$bucket->getOption('container').'/'.rawurlencode($oldName), |
|
233 | 233 | 'Content-Length' => 0 |
234 | 234 | ]); |
235 | 235 | |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | |
267 | 267 | try { |
268 | 268 | $request = $this->buildRequest('PUT', $destination, $name, [ |
269 | - 'X-Copy-From' => '/' . $bucket->getOPtion('container') . '/' . rawurlencode($name), |
|
269 | + 'X-Copy-From' => '/'.$bucket->getOPtion('container').'/'.rawurlencode($name), |
|
270 | 270 | 'Content-Length' => 0 |
271 | 271 | ]); |
272 | 272 | |
@@ -343,13 +343,13 @@ discard block |
||
343 | 343 | |
344 | 344 | if ($this->options['cache']) { |
345 | 345 | $this->store->set( |
346 | - $this->options['username'] . '@rackspace-token', |
|
346 | + $this->options['username'].'@rackspace-token', |
|
347 | 347 | $this->authToken, |
348 | 348 | $this->options['lifetime'] |
349 | 349 | ); |
350 | 350 | |
351 | 351 | $this->store->set( |
352 | - $this->options['username'] . '@rackspace-regions', |
|
352 | + $this->options['username'].'@rackspace-regions', |
|
353 | 353 | $this->regions, |
354 | 354 | $this->options['lifetime'] |
355 | 355 | ); |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | } |
388 | 388 | |
389 | 389 | return new Uri( |
390 | - $this->regions[$region] . '/' . $bucket->getOption('container') . '/' . rawurlencode($name) |
|
390 | + $this->regions[$region].'/'.$bucket->getOption('container').'/'.rawurlencode($name) |
|
391 | 391 | ); |
392 | 392 | } |
393 | 393 |
@@ -80,7 +80,7 @@ |
||
80 | 80 | continue; |
81 | 81 | } |
82 | 82 | |
83 | - $pattern = '/^' . str_replace('*', '.+', $pattern) . '/i'; |
|
83 | + $pattern = '/^'.str_replace('*', '.+', $pattern).'/i'; |
|
84 | 84 | |
85 | 85 | if (preg_match($pattern, $name)) { |
86 | 86 | unset($result[$name]); |