Passed
Pull Request — master (#31)
by Anatoly
39:30
created
functions/server_request_files.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
functions/header_accept_parse.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
     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;
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 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'
Please login to merge, or discard this patch.
src/Header/AgeHeader.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 InvalidHeaderException(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/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 InvalidHeaderException(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/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 InvalidHeaderException(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.
src/Header/SetCookieHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
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 InvalidHeaderException(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/WarningHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
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(),
Please login to merge, or discard this patch.