Passed
Pull Request — master (#27)
by Anatoly
04:10
created
src/Header/AccessControlMaxAgeHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
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 InvalidHeaderValueException(sprintf(
81 81
                 'The value "%2$d" for the header "%1$s" is not valid.',
82 82
                 $this->getFieldName(),
Please login to merge, or discard this patch.
src/Header/ContentRangeHeader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,14 +97,14 @@
 block discarded – undo
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 InvalidHeaderValueException(
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 InvalidHeaderValueException(
109 109
                 'The "last-byte-pos" value of the content range ' .
110 110
                 'must be less than the "instance-length" value'
Please login to merge, or discard this patch.
src/Header/WarningHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
      */
120 120
     private function validateCode(int $code): void
121 121
     {
122
-        if (! ($code >= 100 && $code <= 999)) {
122
+        if (!($code >= 100 && $code <= 999)) {
123 123
             throw new InvalidHeaderValueException(sprintf(
124 124
                 'The code "%2$d" for the header "%1$s" is not valid',
125 125
                 $this->getFieldName(),
Please login to merge, or discard this patch.
src/ServerRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -358,8 +358,8 @@
 block discarded – undo
358 358
          *
359 359
          * @psalm-suppress MissingClosureParamType
360 360
          */
361
-        array_walk_recursive($files, static function ($file): void {
362
-            if (! ($file instanceof UploadedFileInterface)) {
361
+        array_walk_recursive($files, static function($file): void {
362
+            if (!($file instanceof UploadedFileInterface)) {
363 363
                 throw new InvalidArgumentException('Invalid uploaded files');
364 364
             }
365 365
         });
Please login to merge, or discard this patch.
functions/server_request_files.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
 {
45 45
     $rawUploadedFiles ??= $_FILES;
46 46
 
47
-    $walker = function ($path, $size, $error, $name, $type) use (&$walker) {
48
-        if (! is_array($path)) {
47
+    $walker = function($path, $size, $error, $name, $type) use (&$walker) {
48
+        if (!is_array($path)) {
49 49
             return new UploadedFile(new FileStream($path, 'rb'), $size, $error, $name, $type);
50 50
         }
51 51
 
Please login to merge, or discard this patch.
functions/server_request_uri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     $serverParams ??= $_SERVER;
36 36
 
37 37
     if (array_key_exists('HTTPS', $serverParams)) {
38
-        if (! ('off' === $serverParams['HTTPS'])) {
38
+        if (!('off' === $serverParams['HTTPS'])) {
39 39
             $scheme = 'https://';
40 40
         }
41 41
     }
Please login to merge, or discard this patch.
src/Header/ContentLengthHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
      */
77 77
     private function validateValue(int $value): void
78 78
     {
79
-        if (! ($value >= 0)) {
79
+        if (!($value >= 0)) {
80 80
             throw new InvalidHeaderValueException(sprintf(
81 81
                 'The value "%2$d" for the header "%1$s" is not valid',
82 82
                 $this->getFieldName(),
Please login to merge, or discard this patch.