@@ -88,7 +88,7 @@ |
||
| 88 | 88 | */ |
| 89 | 89 | public function range($value, int $min, int $max): bool |
| 90 | 90 | { |
| 91 | - if (!is_string($value)) { |
|
| 91 | + if (!is_string($value)){ |
|
| 92 | 92 | return false; |
| 93 | 93 | } |
| 94 | 94 | |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | */ |
| 114 | 114 | private function resolveExpirationInterval($expiration): \DateInterval |
| 115 | 115 | { |
| 116 | - if ($expiration === null) { |
|
| 116 | + if ($expiration === null){ |
|
| 117 | 117 | return $this->expiration; |
| 118 | 118 | } |
| 119 | 119 | |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | */ |
| 79 | 79 | protected function assertCloudFrontAvailable(): void |
| 80 | 80 | { |
| 81 | - if (\class_exists(UrlSigner::class)) { |
|
| 81 | + if (\class_exists(UrlSigner::class)){ |
|
| 82 | 82 | return; |
| 83 | 83 | } |
| 84 | 84 | |
@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | * @var string |
| 22 | 22 | */ |
| 23 | 23 | private const ERROR_NOT_AVAILABLE = |
| 24 | - 'The "aws/aws-sdk-php" package is supplied with the Guzzle PSR-7 ' . |
|
| 25 | - 'implementation, but it is not available. Please install the ' . |
|
| 24 | + 'The "aws/aws-sdk-php" package is supplied with the Guzzle PSR-7 '. |
|
| 25 | + 'implementation, but it is not available. Please install the '. |
|
| 26 | 26 | '"aws/aws-sdk-php" package or use any other implementation of PSR-17 factories.' |
| 27 | 27 | ; |
| 28 | 28 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | */ |
| 49 | 49 | private function assertAvailable(): void |
| 50 | 50 | { |
| 51 | - if (\class_exists(Uri::class)) { |
|
| 51 | + if (\class_exists(Uri::class)){ |
|
| 52 | 52 | return; |
| 53 | 53 | } |
| 54 | 54 | |
@@ -39,11 +39,11 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function create($duration): \DateInterval |
| 41 | 41 | { |
| 42 | - try { |
|
| 42 | + try{ |
|
| 43 | 43 | return $this->createOrFail($duration); |
| 44 | - } catch (\InvalidArgumentException $e) { |
|
| 44 | + }catch (\InvalidArgumentException $e){ |
|
| 45 | 45 | throw $e; |
| 46 | - } catch (\Throwable $e) { |
|
| 46 | + }catch (\Throwable $e){ |
|
| 47 | 47 | throw new \InvalidArgumentException($e->getMessage(), (int)$e->getCode(), $e); |
| 48 | 48 | } |
| 49 | 49 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | private function createOrFail($duration): \DateInterval |
| 67 | 67 | { |
| 68 | - switch (true) { |
|
| 68 | + switch (true){ |
|
| 69 | 69 | case $duration instanceof \DateInterval: |
| 70 | 70 | return $duration; |
| 71 | 71 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | return new \DateInterval($duration); |
| 77 | 77 | |
| 78 | 78 | case \is_int($duration): |
| 79 | - return new \DateInterval('PT' . $duration . 'S'); |
|
| 79 | + return new \DateInterval('PT'.$duration.'S'); |
|
| 80 | 80 | |
| 81 | 81 | case $duration === null: |
| 82 | 82 | return new \DateInterval('PT0S'); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | { |
| 32 | 32 | $resolver = $this->getResolver(); |
| 33 | 33 | |
| 34 | - if ($resolver === null) { |
|
| 34 | + if ($resolver === null){ |
|
| 35 | 35 | throw new \LogicException('Can not generate public url: File not accessible by HTTP'); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | public function testVisibility(): void |
| 58 | 58 | { |
| 59 | 59 | $this->markTestSkipped( |
| 60 | - 'This test [' . __FUNCTION__ . '] returns incorrect visibility ' . |
|
| 61 | - 'of files on Windows OS. ' . |
|
| 60 | + 'This test ['.__FUNCTION__.'] returns incorrect visibility '. |
|
| 61 | + 'of files on Windows OS. '. |
|
| 62 | 62 | 'It is required to understand the situation' |
| 63 | 63 | ); |
| 64 | 64 | |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | |
| 152 | 152 | $actual = ''; |
| 153 | 153 | $stream = $this->local->getStream('file.txt'); |
| 154 | - while (!\feof($stream)) { |
|
| 154 | + while (!\feof($stream)){ |
|
| 155 | 155 | $actual .= \fread($stream, 256); |
| 156 | 156 | } |
| 157 | 157 | \fclose($stream); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | { |
| 93 | 93 | $this->expectException(InvalidArgumentException::class); |
| 94 | 94 | $this->expectExceptionMessage( |
| 95 | - 'URI argument must be a valid URI in ' . |
|
| 95 | + 'URI argument must be a valid URI in '. |
|
| 96 | 96 | '"[STORAGE]://[PATH_TO_FILE]" format, but `test://` given' |
| 97 | 97 | ); |
| 98 | 98 | |
@@ -157,8 +157,8 @@ discard block |
||
| 157 | 157 | public function testVisibility(): void |
| 158 | 158 | { |
| 159 | 159 | $this->markTestSkipped( |
| 160 | - 'This test [' . __FUNCTION__ . '] returns incorrect visibility ' . |
|
| 161 | - 'of files on Windows OS. ' . |
|
| 160 | + 'This test ['.__FUNCTION__.'] returns incorrect visibility '. |
|
| 161 | + 'of files on Windows OS. '. |
|
| 162 | 162 | 'It is required to understand the situation' |
| 163 | 163 | ); |
| 164 | 164 | |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | |
| 258 | 258 | $actual = ''; |
| 259 | 259 | $stream = $this->manager->getStream('file.txt'); |
| 260 | - while (!\feof($stream)) { |
|
| 260 | + while (!\feof($stream)){ |
|
| 261 | 261 | $actual .= \fread($stream, 256); |
| 262 | 262 | } |
| 263 | 263 | \fclose($stream); |
@@ -81,8 +81,8 @@ discard block |
||
| 81 | 81 | public function testVisibility(): void |
| 82 | 82 | { |
| 83 | 83 | $this->markTestSkipped( |
| 84 | - 'This test [' . __FUNCTION__ . '] returns incorrect visibility ' . |
|
| 85 | - 'of files on Windows OS. ' . |
|
| 84 | + 'This test ['.__FUNCTION__.'] returns incorrect visibility '. |
|
| 85 | + 'of files on Windows OS. '. |
|
| 86 | 86 | 'It is required to understand the situation' |
| 87 | 87 | ); |
| 88 | 88 | |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | |
| 191 | 191 | $actual = ''; |
| 192 | 192 | $stream = $source->getStream(); |
| 193 | - while (!\feof($stream)) { |
|
| 193 | + while (!\feof($stream)){ |
|
| 194 | 194 | $actual .= \fread($stream, 256); |
| 195 | 195 | } |
| 196 | 196 | \fclose($stream); |