@@ -47,11 +47,11 @@ |
||
| 47 | 47 | ?array $uploadedFiles = null, |
| 48 | 48 | ?array $parsedBody = null |
| 49 | 49 | ): ServerRequestInterface { |
| 50 | - $serverParams = $serverParams ?? $_SERVER; |
|
| 51 | - $queryParams = $queryParams ?? $_GET; |
|
| 52 | - $cookieParams = $cookieParams ?? $_COOKIE; |
|
| 50 | + $serverParams = $serverParams ?? $_SERVER; |
|
| 51 | + $queryParams = $queryParams ?? $_GET; |
|
| 52 | + $cookieParams = $cookieParams ?? $_COOKIE; |
|
| 53 | 53 | $uploadedFiles = $uploadedFiles ?? $_FILES; |
| 54 | - $parsedBody = $parsedBody ?? $_POST; |
|
| 54 | + $parsedBody = $parsedBody ?? $_POST; |
|
| 55 | 55 | |
| 56 | 56 | return new ServerRequest( |
| 57 | 57 | server_request_protocol_version($serverParams), |
@@ -262,7 +262,7 @@ |
||
| 262 | 262 | throw new InvalidArgumentException('HTTP status code must be an integer'); |
| 263 | 263 | } |
| 264 | 264 | |
| 265 | - if (! ($statusCode >= 100 && $statusCode <= 599)) { |
|
| 265 | + if (!($statusCode >= 100 && $statusCode <= 599)) { |
|
| 266 | 266 | throw new InvalidArgumentException('Invalid HTTP status code'); |
| 267 | 267 | } |
| 268 | 268 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | throw new InvalidUriComponentException('URI component "fragment" must be a string'); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string { |
|
| 66 | + $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function(array $match): string { |
|
| 67 | 67 | /** @var array{0: string, 1?: string} $match */ |
| 68 | 68 | |
| 69 | 69 | return isset($match[1]) ? rawurlencode($match[1]) : $match[0]; |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | throw new InvalidUriComponentException('URI component "password" must be a string'); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string { |
|
| 66 | + $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function(array $match): string { |
|
| 67 | 67 | /** @var array{0: string, 1?: string} $match */ |
| 68 | 68 | |
| 69 | 69 | return isset($match[1]) ? rawurlencode($match[1]) : $match[0]; |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | throw new InvalidUriComponentException('URI component "host" must be a string'); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string { |
|
| 67 | + $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function(array $match): string { |
|
| 68 | 68 | /** @var array{0: string, 1?: string} $match */ |
| 69 | 69 | |
| 70 | 70 | return isset($match[1]) ? rawurlencode($match[1]) : $match[0]; |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | throw new InvalidUriComponentException('URI component "path" must be a string'); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string { |
|
| 66 | + $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function(array $match): string { |
|
| 67 | 67 | /** @var array{0: string, 1?: string} $match */ |
| 68 | 68 | |
| 69 | 69 | return isset($match[1]) ? rawurlencode($match[1]) : $match[0]; |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | throw new InvalidUriComponentException('URI component "query" must be a string'); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string { |
|
| 66 | + $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function(array $match): string { |
|
| 67 | 67 | /** @var array{0: string, 1?: string} $match */ |
| 68 | 68 | |
| 69 | 69 | return isset($match[1]) ? rawurlencode($match[1]) : $match[0]; |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | throw new InvalidUriComponentException('URI component "user" must be a string'); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function (array $match): string { |
|
| 66 | + $this->value = preg_replace_callback(self::NORMALIZE_REGEX, function(array $match): string { |
|
| 67 | 67 | /** @var array{0: string, 1?: string} $match */ |
| 68 | 68 | |
| 69 | 69 | return isset($match[1]) ? rawurlencode($match[1]) : $match[0]; |
@@ -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 InvalidHeaderValueException(sprintf( |
| 96 | 96 | 'The delay "%2$d" for the header "%1$s" is not valid', |
| 97 | 97 | $this->getFieldName(), |