@@ -44,7 +44,7 @@ |
||
| 44 | 44 | { |
| 45 | 45 | $files ??= $_FILES; |
| 46 | 46 | |
| 47 | - $walker = function ($path, $size, $error, $name, $type) use (&$walker) { |
|
| 47 | + $walker = function($path, $size, $error, $name, $type) use (&$walker) { |
|
| 48 | 48 | if (!is_array($path)) { |
| 49 | 49 | // What if the path is an empty string? |
| 50 | 50 | $stream = new FileStream($path, 'rb'); |
@@ -44,8 +44,8 @@ |
||
| 44 | 44 | |
| 45 | 45 | while (true) { |
| 46 | 46 | $char = $header[++$cursor] ?? null; |
| 47 | - $prev = $header[$cursor-1] ?? null; |
|
| 48 | - $next = $header[$cursor+1] ?? null; |
|
| 47 | + $prev = $header[$cursor - 1] ?? null; |
|
| 48 | + $next = $header[$cursor + 1] ?? null; |
|
| 49 | 49 | |
| 50 | 50 | if ($char === null) { |
| 51 | 51 | break; |
@@ -97,14 +97,14 @@ |
||
| 97 | 97 | */ |
| 98 | 98 | private function validateRange(int $firstBytePosition, int $lastBytePosition, int $instanceLength): void |
| 99 | 99 | { |
| 100 | - if (! ($firstBytePosition <= $lastBytePosition)) { |
|
| 100 | + if (!($firstBytePosition <= $lastBytePosition)) { |
|
| 101 | 101 | throw new InvalidHeaderException( |
| 102 | 102 | 'The "first-byte-pos" value of the content range ' . |
| 103 | 103 | 'must be less than or equal to the "last-byte-pos" value' |
| 104 | 104 | ); |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | - if (! ($lastBytePosition < $instanceLength)) { |
|
| 107 | + if (!($lastBytePosition < $instanceLength)) { |
|
| 108 | 108 | throw new InvalidHeaderException( |
| 109 | 109 | 'The "last-byte-pos" value of the content range ' . |
| 110 | 110 | 'must be less than the "instance-length" value' |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | */ |
| 77 | 77 | private function validateValue(int $value): void |
| 78 | 78 | { |
| 79 | - if (! ($value >= 0)) { |
|
| 79 | + if (!($value >= 0)) { |
|
| 80 | 80 | throw new InvalidHeaderException(sprintf( |
| 81 | 81 | 'The value "%2$d" for the header "%1$s" is not valid', |
| 82 | 82 | $this->getFieldName(), |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | */ |
| 77 | 77 | private function validateValue(int $value): void |
| 78 | 78 | { |
| 79 | - if (! ($value >= 0)) { |
|
| 79 | + if (!($value >= 0)) { |
|
| 80 | 80 | throw new InvalidHeaderException(sprintf( |
| 81 | 81 | 'The value "%2$d" for the header "%1$s" is not valid', |
| 82 | 82 | $this->getFieldName(), |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | */ |
| 92 | 92 | private function validateDelay(int $delay): void |
| 93 | 93 | { |
| 94 | - if (! ($delay >= 0)) { |
|
| 94 | + if (!($delay >= 0)) { |
|
| 95 | 95 | throw new InvalidHeaderException(sprintf( |
| 96 | 96 | 'The delay "%2$d" for the header "%1$s" is not valid', |
| 97 | 97 | $this->getFieldName(), |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | * |
| 96 | 96 | * @deprecated Use the {@see SetCookieHeader::DEFAULT_OPTIONS} constant. |
| 97 | 97 | */ |
| 98 | - protected static ?array $defaultOptions = null; |
|
| 98 | + protected static ? array $defaultOptions = null; |
|
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | 101 | * The cookie name |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | */ |
| 77 | 77 | private function validateValue(int $value): void |
| 78 | 78 | { |
| 79 | - if (! ($value === -1 || $value >= 1)) { |
|
| 79 | + if (!($value === -1 || $value >= 1)) { |
|
| 80 | 80 | throw new InvalidHeaderException(sprintf( |
| 81 | 81 | 'The value "%2$d" for the header "%1$s" is not valid.', |
| 82 | 82 | $this->getFieldName(), |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | */ |
| 143 | 143 | private function validateCode(int $code): void |
| 144 | 144 | { |
| 145 | - if (! ($code >= 100 && $code <= 999)) { |
|
| 145 | + if (!($code >= 100 && $code <= 999)) { |
|
| 146 | 146 | throw new InvalidHeaderException(sprintf( |
| 147 | 147 | 'The code "%2$d" for the header "%1$s" is not valid', |
| 148 | 148 | $this->getFieldName(), |