Passed
Pull Request — master (#27)
by Anatoly
05:58 queued 01:43
created
src/ServerRequestFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,11 +47,11 @@
 block discarded – undo
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),
Please login to merge, or discard this patch.
src/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Uri/Component/Fragment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/Uri/Component/Password.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/Uri/Component/Host.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/Uri/Component/Path.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/Uri/Component/Query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/Uri/Component/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/Header/RefreshHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.