Passed
Push — master ( b846a2...3a35da )
by Nikolaos
04:25
created
src/Http/Message/Traits/UriTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
             '',
194 194
             mb_strtolower($scheme)
195 195
         );
196
-        $schemes  = [
196
+        $schemes = [
197 197
             'http'  => 1,
198 198
             'https' => 1,
199 199
         ];
Please login to merge, or discard this patch.
src/Http/Message/Traits/ResponseTrait.php 1 patch
Spacing   +83 added lines, -83 removed lines patch added patch discarded remove patch
@@ -59,93 +59,93 @@
 block discarded – undo
59 59
     private function getPhrases(): array
60 60
     {
61 61
         return [
62
-            100 => 'Continue',                                         // Information - RFC 7231, 6.2.1
63
-            101 => 'Switching Protocols',                              // Information - RFC 7231, 6.2.2
64
-            102 => 'Processing',                                       // Information - RFC 2518, 10.1
62
+            100 => 'Continue', // Information - RFC 7231, 6.2.1
63
+            101 => 'Switching Protocols', // Information - RFC 7231, 6.2.2
64
+            102 => 'Processing', // Information - RFC 2518, 10.1
65 65
             103 => 'Early Hints',
66
-            200 => 'OK',                                               // Success - RFC 7231, 6.3.1
67
-            201 => 'Created',                                          // Success - RFC 7231, 6.3.2
68
-            202 => 'Accepted',                                         // Success - RFC 7231, 6.3.3
69
-            203 => 'Non-Authoritative Information',                    // Success - RFC 7231, 6.3.4
70
-            204 => 'No Content',                                       // Success - RFC 7231, 6.3.5
71
-            205 => 'Reset Content',                                    // Success - RFC 7231, 6.3.6
72
-            206 => 'Partial Content',                                  // Success - RFC 7233, 4.1
73
-            207 => 'Multi-status',                                     // Success - RFC 4918, 11.1
74
-            208 => 'Already Reported',                                 // Success - RFC 5842, 7.1
75
-            218 => 'This is fine',                                     // Unofficial - Apache Web Server
76
-            419 => 'Page Expired',                                     // Unofficial - Laravel Framework
77
-            226 => 'IM Used',                                          // Success - RFC 3229, 10.4.1
78
-            300 => 'Multiple Choices',                                 // Redirection - RFC 7231, 6.4.1
79
-            301 => 'Moved Permanently',                                // Redirection - RFC 7231, 6.4.2
80
-            302 => 'Found',                                            // Redirection - RFC 7231, 6.4.3
81
-            303 => 'See Other',                                        // Redirection - RFC 7231, 6.4.4
82
-            304 => 'Not Modified',                                     // Redirection - RFC 7232, 4.1
83
-            305 => 'Use Proxy',                                        // Redirection - RFC 7231, 6.4.5
84
-            306 => 'Switch Proxy',                                     // Redirection - RFC 7231, 6.4.6 (Deprecated)
85
-            307 => 'Temporary Redirect',                               // Redirection - RFC 7231, 6.4.7
86
-            308 => 'Permanent Redirect',                               // Redirection - RFC 7538, 3
87
-            400 => 'Bad Request',                                      // Client Error - RFC 7231, 6.5.1
88
-            401 => 'Unauthorized',                                     // Client Error - RFC 7235, 3.1
89
-            402 => 'Payment Required',                                 // Client Error - RFC 7231, 6.5.2
90
-            403 => 'Forbidden',                                        // Client Error - RFC 7231, 6.5.3
91
-            404 => 'Not Found',                                        // Client Error - RFC 7231, 6.5.4
92
-            405 => 'Method Not Allowed',                               // Client Error - RFC 7231, 6.5.5
93
-            406 => 'Not Acceptable',                                   // Client Error - RFC 7231, 6.5.6
94
-            407 => 'Proxy Authentication Required',                    // Client Error - RFC 7235, 3.2
95
-            408 => 'Request Time-out',                                 // Client Error - RFC 7231, 6.5.7
96
-            409 => 'Conflict',                                         // Client Error - RFC 7231, 6.5.8
97
-            410 => 'Gone',                                             // Client Error - RFC 7231, 6.5.9
98
-            411 => 'Length Required',                                  // Client Error - RFC 7231, 6.5.10
99
-            412 => 'Precondition Failed',                              // Client Error - RFC 7232, 4.2
100
-            413 => 'Request Entity Too Large',                         // Client Error - RFC 7231, 6.5.11
101
-            414 => 'Request-URI Too Large',                            // Client Error - RFC 7231, 6.5.12
102
-            415 => 'Unsupported Media Type',                           // Client Error - RFC 7231, 6.5.13
103
-            416 => 'Requested range not satisfiable',                  // Client Error - RFC 7233, 4.4
104
-            417 => 'Expectation Failed',                               // Client Error - RFC 7231, 6.5.14
105
-            418 => "I'm a teapot",                                     // Client Error - RFC 7168, 2.3.3
106
-            420 => 'Method Failure',                                   // Unofficial - Spring Framework
66
+            200 => 'OK', // Success - RFC 7231, 6.3.1
67
+            201 => 'Created', // Success - RFC 7231, 6.3.2
68
+            202 => 'Accepted', // Success - RFC 7231, 6.3.3
69
+            203 => 'Non-Authoritative Information', // Success - RFC 7231, 6.3.4
70
+            204 => 'No Content', // Success - RFC 7231, 6.3.5
71
+            205 => 'Reset Content', // Success - RFC 7231, 6.3.6
72
+            206 => 'Partial Content', // Success - RFC 7233, 4.1
73
+            207 => 'Multi-status', // Success - RFC 4918, 11.1
74
+            208 => 'Already Reported', // Success - RFC 5842, 7.1
75
+            218 => 'This is fine', // Unofficial - Apache Web Server
76
+            419 => 'Page Expired', // Unofficial - Laravel Framework
77
+            226 => 'IM Used', // Success - RFC 3229, 10.4.1
78
+            300 => 'Multiple Choices', // Redirection - RFC 7231, 6.4.1
79
+            301 => 'Moved Permanently', // Redirection - RFC 7231, 6.4.2
80
+            302 => 'Found', // Redirection - RFC 7231, 6.4.3
81
+            303 => 'See Other', // Redirection - RFC 7231, 6.4.4
82
+            304 => 'Not Modified', // Redirection - RFC 7232, 4.1
83
+            305 => 'Use Proxy', // Redirection - RFC 7231, 6.4.5
84
+            306 => 'Switch Proxy', // Redirection - RFC 7231, 6.4.6 (Deprecated)
85
+            307 => 'Temporary Redirect', // Redirection - RFC 7231, 6.4.7
86
+            308 => 'Permanent Redirect', // Redirection - RFC 7538, 3
87
+            400 => 'Bad Request', // Client Error - RFC 7231, 6.5.1
88
+            401 => 'Unauthorized', // Client Error - RFC 7235, 3.1
89
+            402 => 'Payment Required', // Client Error - RFC 7231, 6.5.2
90
+            403 => 'Forbidden', // Client Error - RFC 7231, 6.5.3
91
+            404 => 'Not Found', // Client Error - RFC 7231, 6.5.4
92
+            405 => 'Method Not Allowed', // Client Error - RFC 7231, 6.5.5
93
+            406 => 'Not Acceptable', // Client Error - RFC 7231, 6.5.6
94
+            407 => 'Proxy Authentication Required', // Client Error - RFC 7235, 3.2
95
+            408 => 'Request Time-out', // Client Error - RFC 7231, 6.5.7
96
+            409 => 'Conflict', // Client Error - RFC 7231, 6.5.8
97
+            410 => 'Gone', // Client Error - RFC 7231, 6.5.9
98
+            411 => 'Length Required', // Client Error - RFC 7231, 6.5.10
99
+            412 => 'Precondition Failed', // Client Error - RFC 7232, 4.2
100
+            413 => 'Request Entity Too Large', // Client Error - RFC 7231, 6.5.11
101
+            414 => 'Request-URI Too Large', // Client Error - RFC 7231, 6.5.12
102
+            415 => 'Unsupported Media Type', // Client Error - RFC 7231, 6.5.13
103
+            416 => 'Requested range not satisfiable', // Client Error - RFC 7233, 4.4
104
+            417 => 'Expectation Failed', // Client Error - RFC 7231, 6.5.14
105
+            418 => "I'm a teapot", // Client Error - RFC 7168, 2.3.3
106
+            420 => 'Method Failure', // Unofficial - Spring Framework
107 107
             421 => 'Misdirected Request',
108
-            422 => 'Unprocessable Entity',                             // Client Error - RFC 4918, 11.2
109
-            423 => 'Locked',                                           // Client Error - RFC 4918, 11.3
110
-            424 => 'Failed Dependency',                                // Client Error - RFC 4918, 11.4
108
+            422 => 'Unprocessable Entity', // Client Error - RFC 4918, 11.2
109
+            423 => 'Locked', // Client Error - RFC 4918, 11.3
110
+            424 => 'Failed Dependency', // Client Error - RFC 4918, 11.4
111 111
             425 => 'Unordered Collection',
112
-            426 => 'Upgrade Required',                                 // Client Error - RFC 7231, 6.5.15
113
-            428 => 'Precondition Required',                            // Client Error - RFC 6585, 3
114
-            429 => 'Too Many Requests',                                // Client Error - RFC 6585, 4
115
-            431 => 'Request Header Fields Too Large',                  // Client Error - RFC 6585, 5
116
-            440 => 'Login Time-out',                                   // Unofficial - IIS
117
-            444 => 'No Response',                                      // Unofficial - nginx
118
-            449 => 'Retry With',                                       // Unofficial - IIS
119
-            494 => 'Request header too large',                         // Unofficial - nginx
120
-            495 => 'SSL Certificate Error',                            // Unofficial - nginx
121
-            496 => 'SSL Certificate Required',                         // Unofficial - nginx
122
-            497 => 'HTTP Request Sent to HTTPS Port',                  // Unofficial - nginx
123
-            499 => 'Client Closed Request',                            // Unofficial - nginx
112
+            426 => 'Upgrade Required', // Client Error - RFC 7231, 6.5.15
113
+            428 => 'Precondition Required', // Client Error - RFC 6585, 3
114
+            429 => 'Too Many Requests', // Client Error - RFC 6585, 4
115
+            431 => 'Request Header Fields Too Large', // Client Error - RFC 6585, 5
116
+            440 => 'Login Time-out', // Unofficial - IIS
117
+            444 => 'No Response', // Unofficial - nginx
118
+            449 => 'Retry With', // Unofficial - IIS
119
+            494 => 'Request header too large', // Unofficial - nginx
120
+            495 => 'SSL Certificate Error', // Unofficial - nginx
121
+            496 => 'SSL Certificate Required', // Unofficial - nginx
122
+            497 => 'HTTP Request Sent to HTTPS Port', // Unofficial - nginx
123
+            499 => 'Client Closed Request', // Unofficial - nginx
124 124
             450 => 'Blocked by Windows Parental Controls (Microsoft)', // Unofficial - nginx
125
-            451 => 'Unavailable For Legal Reasons',                    // Client Error - RFC 7725, 3
126
-            498 => 'Invalid Token (Esri)',                             // Unofficial - ESRI
127
-            500 => 'Internal Server Error',                            // Server Error - RFC 7231, 6.6.1
128
-            501 => 'Not Implemented',                                  // Server Error - RFC 7231, 6.6.2
129
-            502 => 'Bad Gateway',                                      // Server Error - RFC 7231, 6.6.3
130
-            503 => 'Service Unavailable',                              // Server Error - RFC 7231, 6.6.4
131
-            504 => 'Gateway Time-out',                                 // Server Error - RFC 7231, 6.6.5
132
-            505 => 'HTTP Version not supported',                       // Server Error - RFC 7231, 6.6.6
133
-            506 => 'Variant Also Negotiates',                          // Server Error - RFC 2295, 8.1
134
-            507 => 'Insufficient Storage',                             // Server Error - RFC 4918, 11.5
135
-            508 => 'Loop Detected',                                    // Server Error - RFC 5842, 7.2
136
-            509 => 'Bandwidth Limit Exceeded',                         // Unofficial - Apache/cPanel
137
-            510 => 'Not Extended',                                     // Server Error - RFC 2774, 7
138
-            511 => 'Network Authentication Required',                  // Server Error - RFC 6585, 6
139
-            520 => 'Unknown Error',                                    // Unofficial - Cloudflare
140
-            521 => 'Web Server Is Down',                               // Unofficial - Cloudflare
141
-            522 => 'Connection Timed Out',                             // Unofficial - Cloudflare
142
-            523 => 'Origin Is Unreachable',                            // Unofficial - Cloudflare
143
-            524 => 'A Timeout Occurred',                               // Unofficial - Cloudflare
144
-            525 => 'SSL Handshake Failed',                             // Unofficial - Cloudflare
145
-            526 => 'Invalid SSL Certificate',                          // Unofficial - Cloudflare
146
-            527 => 'Railgun Error',                                    // Unofficial - Cloudflare
147
-            530 => 'Origin DNS Error',                                 // Unofficial - Cloudflare
148
-            598 => 'Network read timeout error',                       // Unofficial
125
+            451 => 'Unavailable For Legal Reasons', // Client Error - RFC 7725, 3
126
+            498 => 'Invalid Token (Esri)', // Unofficial - ESRI
127
+            500 => 'Internal Server Error', // Server Error - RFC 7231, 6.6.1
128
+            501 => 'Not Implemented', // Server Error - RFC 7231, 6.6.2
129
+            502 => 'Bad Gateway', // Server Error - RFC 7231, 6.6.3
130
+            503 => 'Service Unavailable', // Server Error - RFC 7231, 6.6.4
131
+            504 => 'Gateway Time-out', // Server Error - RFC 7231, 6.6.5
132
+            505 => 'HTTP Version not supported', // Server Error - RFC 7231, 6.6.6
133
+            506 => 'Variant Also Negotiates', // Server Error - RFC 2295, 8.1
134
+            507 => 'Insufficient Storage', // Server Error - RFC 4918, 11.5
135
+            508 => 'Loop Detected', // Server Error - RFC 5842, 7.2
136
+            509 => 'Bandwidth Limit Exceeded', // Unofficial - Apache/cPanel
137
+            510 => 'Not Extended', // Server Error - RFC 2774, 7
138
+            511 => 'Network Authentication Required', // Server Error - RFC 6585, 6
139
+            520 => 'Unknown Error', // Unofficial - Cloudflare
140
+            521 => 'Web Server Is Down', // Unofficial - Cloudflare
141
+            522 => 'Connection Timed Out', // Unofficial - Cloudflare
142
+            523 => 'Origin Is Unreachable', // Unofficial - Cloudflare
143
+            524 => 'A Timeout Occurred', // Unofficial - Cloudflare
144
+            525 => 'SSL Handshake Failed', // Unofficial - Cloudflare
145
+            526 => 'Invalid SSL Certificate', // Unofficial - Cloudflare
146
+            527 => 'Railgun Error', // Unofficial - Cloudflare
147
+            530 => 'Origin DNS Error', // Unofficial - Cloudflare
148
+            598 => 'Network read timeout error', // Unofficial
149 149
             599 => 'Network Connect Timeout Error'                     // Server Error - RFC 6585, 6
150 150
         ];
151 151
     }
Please login to merge, or discard this patch.
src/Storage/Adapter/Libmemcached.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
                     Memcached::OPT_REMOVE_FAILED_SERVERS => true,
146 146
                     Memcached::OPT_RETRY_TIMEOUT         => 1,
147 147
                 ];
148
-                $client   = array_merge($failover, $client);
148
+                $client = array_merge($failover, $client);
149 149
 
150 150
                 $this
151 151
                     ->setOptions($connection, $client)
Please login to merge, or discard this patch.
src/Storage/Adapter/Stream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      */
257 257
     public function set(string $key, $value, $ttl = null): bool
258 258
     {
259
-        $payload   = [
259
+        $payload = [
260 260
             "created" => time(),
261 261
             "ttl"     => $this->getTtl($ttl),
262 262
             "content" => $this->getSerializedData($value),
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
         }
337 337
 
338 338
         set_error_handler(
339
-            function ($number, $message, $file, $line, $context) use (&$warning) {
339
+            function($number, $message, $file, $line, $context) use (&$warning) {
340 340
                 $warning = true;
341 341
             },
342 342
             E_NOTICE
Please login to merge, or discard this patch.
src/Storage/Serializer/Php.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
             $warning = false;
59 59
             set_error_handler(
60
-                function ($number, $message, $file, $line, $context) use (&$warning) {
60
+                function($number, $message, $file, $line, $context) use (&$warning) {
61 61
                     $warning = true;
62 62
                 },
63 63
                 E_NOTICE
Please login to merge, or discard this patch.
src/Storage/Serializer/Igbinary.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     {
53 53
         $warning = false;
54 54
         set_error_handler(
55
-            function ($number, $message, $file, $line, $context) use (&$warning) {
55
+            function($number, $message, $file, $line, $context) use (&$warning) {
56 56
                 $warning = true;
57 57
             },
58 58
             E_WARNING
Please login to merge, or discard this patch.
src/Http/Message/Stream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -298,7 +298,7 @@
 block discarded – undo
298 298
         $handle  = $stream;
299 299
         if (is_string($stream)) {
300 300
             set_error_handler(
301
-                function ($error) use (&$warning) {
301
+                function($error) use (&$warning) {
302 302
                     if ($error === E_WARNING) {
303 303
                         $warning = true;
304 304
                     }
Please login to merge, or discard this patch.
src/Helper/Arr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -423,7 +423,7 @@
 block discarded – undo
423 423
          */
424 424
         $whiteList = self::filter(
425 425
             $whiteList,
426
-            function ($element) {
426
+            function($element) {
427 427
                 return is_int($element) || is_string($element);
428 428
             }
429 429
         );
Please login to merge, or discard this patch.
src/Storage/Serializer/Msgpack.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     {
53 53
         $warning = false;
54 54
         set_error_handler(
55
-            function ($number, $message, $file, $line, $context) use (&$warning) {
55
+            function($number, $message, $file, $line, $context) use (&$warning) {
56 56
                 $warning = true;
57 57
             },
58 58
             E_WARNING
Please login to merge, or discard this patch.