GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 5cefd1...492078 )
by Anton
04:08
created
deps/vendor/react/http/src/Middleware/RequestBodyBufferMiddleware.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,16 +50,16 @@
 block discarded – undo
50 50
             $sizeLimit = 0;
51 51
         }
52 52
 
53
-        return Stream\buffer($body, $sizeLimit)->then(function ($buffer) use ($request, $stack) {
53
+        return Stream\buffer($body, $sizeLimit)->then(function($buffer) use ($request, $stack) {
54 54
             $request = $request->withBody(new BufferedBody($buffer));
55 55
 
56 56
             return $stack($request);
57
-        }, function ($error) use ($stack, $request, $body) {
57
+        }, function($error) use ($stack, $request, $body) {
58 58
             // On buffer overflow keep the request body stream in,
59 59
             // but ignore the contents and wait for the close event
60 60
             // before passing the request on to the next middleware.
61 61
             if ($error instanceof OverflowException) {
62
-                return Stream\first($body, 'close')->then(function () use ($stack, $request) {
62
+                return Stream\first($body, 'close')->then(function() use ($stack, $request) {
63 63
                     return $stack($request);
64 64
                 });
65 65
             }
Please login to merge, or discard this patch.
deps/vendor/composer/autoload_static.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInit6e0324fc886fd55694e53338d30399bc
8 8
 {
9
-    public static $files = array (
9
+    public static $files = array(
10 10
         'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
11 11
         '972fda704d680a3a53c68e34e193cb22' => __DIR__ . '/..' . '/react/promise-timer/src/functions_include.php',
12 12
         '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
         '23c18046f52bef3eea034657bafda50f' => __DIR__ . '/..' . '/symfony/polyfill-php81/bootstrap.php',
23 23
     );
24 24
 
25
-    public static $prefixLengthsPsr4 = array (
25
+    public static $prefixLengthsPsr4 = array(
26 26
         'S' => 
27
-        array (
27
+        array(
28 28
             'Symfony\\Polyfill\\Php81\\' => 23,
29 29
             'Symfony\\Polyfill\\Php80\\' => 23,
30 30
             'Symfony\\Polyfill\\Php73\\' => 23,
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             'Symfony\\Component\\Console\\' => 26,
40 40
         ),
41 41
         'R' => 
42
-        array (
42
+        array(
43 43
             'RingCentral\\Psr7\\' => 17,
44 44
             'React\\Stream\\' => 13,
45 45
             'React\\Socket\\' => 13,
@@ -52,138 +52,138 @@  discard block
 block discarded – undo
52 52
             'React\\Cache\\' => 12,
53 53
         ),
54 54
         'P' => 
55
-        array (
55
+        array(
56 56
             'Psr\\Http\\Message\\' => 17,
57 57
             'Psr\\Container\\' => 14,
58 58
         ),
59 59
         'J' => 
60
-        array (
60
+        array(
61 61
             'JsonSchema\\' => 11,
62 62
         ),
63 63
         'F' => 
64
-        array (
64
+        array(
65 65
             'Fig\\Http\\Message\\' => 17,
66 66
         ),
67 67
     );
68 68
 
69
-    public static $prefixDirsPsr4 = array (
69
+    public static $prefixDirsPsr4 = array(
70 70
         'Symfony\\Polyfill\\Php81\\' => 
71
-        array (
71
+        array(
72 72
             0 => __DIR__ . '/..' . '/symfony/polyfill-php81',
73 73
         ),
74 74
         'Symfony\\Polyfill\\Php80\\' => 
75
-        array (
75
+        array(
76 76
             0 => __DIR__ . '/..' . '/symfony/polyfill-php80',
77 77
         ),
78 78
         'Symfony\\Polyfill\\Php73\\' => 
79
-        array (
79
+        array(
80 80
             0 => __DIR__ . '/..' . '/symfony/polyfill-php73',
81 81
         ),
82 82
         'Symfony\\Polyfill\\Mbstring\\' => 
83
-        array (
83
+        array(
84 84
             0 => __DIR__ . '/..' . '/symfony/polyfill-mbstring',
85 85
         ),
86 86
         'Symfony\\Polyfill\\Intl\\Normalizer\\' => 
87
-        array (
87
+        array(
88 88
             0 => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer',
89 89
         ),
90 90
         'Symfony\\Polyfill\\Intl\\Grapheme\\' => 
91
-        array (
91
+        array(
92 92
             0 => __DIR__ . '/..' . '/symfony/polyfill-intl-grapheme',
93 93
         ),
94 94
         'Symfony\\Polyfill\\Ctype\\' => 
95
-        array (
95
+        array(
96 96
             0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
97 97
         ),
98 98
         'Symfony\\Contracts\\Service\\' => 
99
-        array (
99
+        array(
100 100
             0 => __DIR__ . '/..' . '/symfony/service-contracts',
101 101
         ),
102 102
         'Symfony\\Component\\Yaml\\' => 
103
-        array (
103
+        array(
104 104
             0 => __DIR__ . '/..' . '/symfony/yaml',
105 105
         ),
106 106
         'Symfony\\Component\\String\\' => 
107
-        array (
107
+        array(
108 108
             0 => __DIR__ . '/..' . '/symfony/string',
109 109
         ),
110 110
         'Symfony\\Component\\Process\\' => 
111
-        array (
111
+        array(
112 112
             0 => __DIR__ . '/..' . '/symfony/process',
113 113
         ),
114 114
         'Symfony\\Component\\Console\\' => 
115
-        array (
115
+        array(
116 116
             0 => __DIR__ . '/..' . '/symfony/console',
117 117
         ),
118 118
         'RingCentral\\Psr7\\' => 
119
-        array (
119
+        array(
120 120
             0 => __DIR__ . '/..' . '/ringcentral/psr7/src',
121 121
         ),
122 122
         'React\\Stream\\' => 
123
-        array (
123
+        array(
124 124
             0 => __DIR__ . '/..' . '/react/stream/src',
125 125
         ),
126 126
         'React\\Socket\\' => 
127
-        array (
127
+        array(
128 128
             0 => __DIR__ . '/..' . '/react/socket/src',
129 129
         ),
130 130
         'React\\Promise\\Timer\\' => 
131
-        array (
131
+        array(
132 132
             0 => __DIR__ . '/..' . '/react/promise-timer/src',
133 133
         ),
134 134
         'React\\Promise\\Stream\\' => 
135
-        array (
135
+        array(
136 136
             0 => __DIR__ . '/..' . '/react/promise-stream/src',
137 137
         ),
138 138
         'React\\Promise\\' => 
139
-        array (
139
+        array(
140 140
             0 => __DIR__ . '/..' . '/react/promise/src',
141 141
         ),
142 142
         'React\\Http\\' => 
143
-        array (
143
+        array(
144 144
             0 => __DIR__ . '/..' . '/react/http/src',
145 145
         ),
146 146
         'React\\EventLoop\\' => 
147
-        array (
147
+        array(
148 148
             0 => __DIR__ . '/..' . '/react/event-loop/src',
149 149
         ),
150 150
         'React\\Dns\\' => 
151
-        array (
151
+        array(
152 152
             0 => __DIR__ . '/..' . '/react/dns/src',
153 153
         ),
154 154
         'React\\Cache\\' => 
155
-        array (
155
+        array(
156 156
             0 => __DIR__ . '/..' . '/react/cache/src',
157 157
         ),
158 158
         'Psr\\Http\\Message\\' => 
159
-        array (
159
+        array(
160 160
             0 => __DIR__ . '/..' . '/psr/http-message/src',
161 161
         ),
162 162
         'Psr\\Container\\' => 
163
-        array (
163
+        array(
164 164
             0 => __DIR__ . '/..' . '/psr/container/src',
165 165
         ),
166 166
         'JsonSchema\\' => 
167
-        array (
167
+        array(
168 168
             0 => __DIR__ . '/..' . '/justinrainbow/json-schema/src/JsonSchema',
169 169
         ),
170 170
         'Fig\\Http\\Message\\' => 
171
-        array (
171
+        array(
172 172
             0 => __DIR__ . '/..' . '/fig/http-message-util/src',
173 173
         ),
174 174
     );
175 175
 
176
-    public static $prefixesPsr0 = array (
176
+    public static $prefixesPsr0 = array(
177 177
         'E' => 
178
-        array (
178
+        array(
179 179
             'Evenement' => 
180
-            array (
180
+            array(
181 181
                 0 => __DIR__ . '/..' . '/evenement/evenement/src',
182 182
             ),
183 183
         ),
184 184
     );
185 185
 
186
-    public static $classMap = array (
186
+    public static $classMap = array(
187 187
         'Attribute' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',
188 188
         'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
189 189
         'JsonException' => __DIR__ . '/..' . '/symfony/polyfill-php73/Resources/stubs/JsonException.php',
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 
198 198
     public static function getInitializer(ClassLoader $loader)
199 199
     {
200
-        return \Closure::bind(function () use ($loader) {
200
+        return \Closure::bind(function() use ($loader) {
201 201
             $loader->prefixLengthsPsr4 = ComposerStaticInit6e0324fc886fd55694e53338d30399bc::$prefixLengthsPsr4;
202 202
             $loader->prefixDirsPsr4 = ComposerStaticInit6e0324fc886fd55694e53338d30399bc::$prefixDirsPsr4;
203 203
             $loader->prefixesPsr0 = ComposerStaticInit6e0324fc886fd55694e53338d30399bc::$prefixesPsr0;
Please login to merge, or discard this patch.
deps/vendor/evenement/evenement/examples/benchmark-emit-no-arguments.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 
14 14
 use Evenement\EventEmitter;
15 15
 
16
-require __DIR__.'/../vendor/autoload.php';
16
+require __DIR__ . '/../vendor/autoload.php';
17 17
 
18 18
 $emitter = new EventEmitter();
19 19
 
20
-$emitter->on('event', function () {});
20
+$emitter->on('event', function() {});
21 21
 
22 22
 $start = microtime(true);
23 23
 for ($i = 0; $i < ITERATIONS; $i++) {
Please login to merge, or discard this patch.
deps/vendor/evenement/evenement/examples/benchmark-emit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 
14 14
 use Evenement\EventEmitter;
15 15
 
16
-require __DIR__.'/../vendor/autoload.php';
16
+require __DIR__ . '/../vendor/autoload.php';
17 17
 
18 18
 $emitter = new EventEmitter();
19 19
 
20
-$emitter->on('event', function ($a, $b, $c) {});
20
+$emitter->on('event', function($a, $b, $c) {});
21 21
 
22 22
 $start = microtime(true);
23 23
 for ($i = 0; $i < ITERATIONS; $i++) {
Please login to merge, or discard this patch.
deps/vendor/evenement/evenement/examples/benchmark-remove-listener-once.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@
 block discarded – undo
15 15
 
16 16
 use Evenement\EventEmitter;
17 17
 
18
-require __DIR__.'/../vendor/autoload.php';
18
+require __DIR__ . '/../vendor/autoload.php';
19 19
 
20 20
 $emitter = new EventEmitter();
21 21
 
22 22
 $listeners = [];
23 23
 for ($i = 0; $i < ITERATIONS; $i++) {
24
-    $listeners[] = function ($a, $b, $c) {};
24
+    $listeners[] = function($a, $b, $c) {};
25 25
 }
26 26
 
27 27
 $start = microtime(true);
Please login to merge, or discard this patch.
deps/vendor/evenement/evenement/examples/benchmark-emit-once.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
 
16 16
 use Evenement\EventEmitter;
17 17
 
18
-require __DIR__.'/../vendor/autoload.php';
18
+require __DIR__ . '/../vendor/autoload.php';
19 19
 
20 20
 $emitter = new EventEmitter();
21 21
 
22 22
 for ($i = 0; $i < ITERATIONS; $i++) {
23
-    $emitter->once('event', function ($a, $b, $c) {});
23
+    $emitter->once('event', function($a, $b, $c) {});
24 24
 }
25 25
 
26 26
 $start = microtime(true);
Please login to merge, or discard this patch.
deps/vendor/evenement/evenement/examples/benchmark-emit-one-argument.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 
14 14
 use Evenement\EventEmitter;
15 15
 
16
-require __DIR__.'/../vendor/autoload.php';
16
+require __DIR__ . '/../vendor/autoload.php';
17 17
 
18 18
 $emitter = new EventEmitter();
19 19
 
20
-$emitter->on('event', function ($a) {});
20
+$emitter->on('event', function($a) {});
21 21
 
22 22
 $start = microtime(true);
23 23
 for ($i = 0; $i < ITERATIONS; $i++) {
Please login to merge, or discard this patch.
deps/vendor/evenement/evenement/tests/Evenement/Tests/EventEmitterTest.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function testAddListenerWithLambda()
28 28
     {
29
-        $this->emitter->on('foo', function () {});
29
+        $this->emitter->on('foo', function() {});
30 30
     }
31 31
 
32 32
     public function testAddListenerWithMethod()
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $listenerCalled = 0;
56 56
 
57
-        $this->emitter->once('foo', function () use (&$listenerCalled) {
57
+        $this->emitter->once('foo', function() use (&$listenerCalled) {
58 58
             $listenerCalled++;
59 59
         });
60 60
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     {
74 74
         $capturedArgs = [];
75 75
 
76
-        $this->emitter->once('foo', function ($a, $b) use (&$capturedArgs) {
76
+        $this->emitter->once('foo', function($a, $b) use (&$capturedArgs) {
77 77
             $capturedArgs = array($a, $b);
78 78
         });
79 79
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     {
87 87
         $listenerCalled = false;
88 88
 
89
-        $this->emitter->on('foo', function () use (&$listenerCalled) {
89
+        $this->emitter->on('foo', function() use (&$listenerCalled) {
90 90
             $listenerCalled = true;
91 91
         });
92 92
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
         $listenerCalled = false;
103 103
 
104
-        $this->emitter->on('foo', function ($value) use (&$listenerCalled, $test) {
104
+        $this->emitter->on('foo', function($value) use (&$listenerCalled, $test) {
105 105
             $listenerCalled = true;
106 106
 
107 107
             $test->assertSame('bar', $value);
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
         $listenerCalled = false;
120 120
 
121
-        $this->emitter->on('foo', function ($arg1, $arg2) use (&$listenerCalled, $test) {
121
+        $this->emitter->on('foo', function($arg1, $arg2) use (&$listenerCalled, $test) {
122 122
             $listenerCalled = true;
123 123
 
124 124
             $test->assertSame('bar', $arg1);
@@ -141,11 +141,11 @@  discard block
 block discarded – undo
141 141
     {
142 142
         $listenersCalled = 0;
143 143
 
144
-        $this->emitter->on('foo', function () use (&$listenersCalled) {
144
+        $this->emitter->on('foo', function() use (&$listenersCalled) {
145 145
             $listenersCalled++;
146 146
         });
147 147
 
148
-        $this->emitter->on('foo', function () use (&$listenersCalled) {
148
+        $this->emitter->on('foo', function() use (&$listenersCalled) {
149 149
             $listenersCalled++;
150 150
         });
151 151
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     {
159 159
         $listenersCalled = 0;
160 160
 
161
-        $listener = function () use (&$listenersCalled) {
161
+        $listener = function() use (&$listenersCalled) {
162 162
             $listenersCalled++;
163 163
         };
164 164
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     {
175 175
         $listenersCalled = 0;
176 176
 
177
-        $listener = function () use (&$listenersCalled) {
177
+        $listener = function() use (&$listenersCalled) {
178 178
             $listenersCalled++;
179 179
         };
180 180
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     {
191 191
         $listenersCalled = 0;
192 192
 
193
-        $this->emitter->on('foo', function () use (&$listenersCalled) {
193
+        $this->emitter->on('foo', function() use (&$listenersCalled) {
194 194
             $listenersCalled++;
195 195
         });
196 196
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
     {
206 206
         $listenersCalled = 0;
207 207
 
208
-        $this->emitter->on('foo', function () use (&$listenersCalled) {
208
+        $this->emitter->on('foo', function() use (&$listenersCalled) {
209 209
             $listenersCalled++;
210 210
         });
211 211
 
@@ -220,11 +220,11 @@  discard block
 block discarded – undo
220 220
     {
221 221
         $listenersCalled = 0;
222 222
 
223
-        $this->emitter->on('foo', function () use (&$listenersCalled) {
223
+        $this->emitter->on('foo', function() use (&$listenersCalled) {
224 224
             $listenersCalled++;
225 225
         });
226 226
 
227
-        $this->emitter->on('bar', function () use (&$listenersCalled) {
227
+        $this->emitter->on('bar', function() use (&$listenersCalled) {
228 228
             $listenersCalled++;
229 229
         });
230 230
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     {
241 241
         $calledWith = null;
242 242
 
243
-        $this->emitter->on('foo', function ($data) use (&$calledWith) {
243
+        $this->emitter->on('foo', function($data) use (&$calledWith) {
244 244
             $calledWith = $data;
245 245
         });
246 246
 
@@ -292,12 +292,12 @@  discard block
 block discarded – undo
292 292
 
293 293
     public function testListeners()
294 294
     {
295
-        $onA = function () {};
296
-        $onB = function () {};
297
-        $onC = function () {};
298
-        $onceA = function () {};
299
-        $onceB = function () {};
300
-        $onceC = function () {};
295
+        $onA = function() {};
296
+        $onB = function() {};
297
+        $onC = function() {};
298
+        $onceA = function() {};
299
+        $onceB = function() {};
300
+        $onceC = function() {};
301 301
 
302 302
         self::assertCount(0, $this->emitter->listeners('event'));
303 303
         $this->emitter->on('event', $onA);
@@ -335,11 +335,11 @@  discard block
 block discarded – undo
335 335
     public function testOnceCallIsNotRemovedWhenWorkingOverOnceListeners()
336 336
     {
337 337
         $aCalled = false;
338
-        $aCallable = function () use (&$aCalled) {
338
+        $aCallable = function() use (&$aCalled) {
339 339
             $aCalled = true;
340 340
         };
341 341
         $bCalled = false;
342
-        $bCallable = function () use (&$bCalled, $aCallable) {
342
+        $bCallable = function() use (&$bCalled, $aCallable) {
343 343
             $bCalled = true;
344 344
             $this->emitter->once('event', $aCallable);
345 345
         };
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
         self::expectException(InvalidArgumentException::class);
363 363
         self::expectExceptionMessage('event name must not be null');
364 364
 
365
-        $this->emitter->on(null, function () {});
365
+        $this->emitter->on(null, function() {});
366 366
     }
367 367
 
368 368
     public function testEventNameMustBeStringOnce()
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
         self::expectException(InvalidArgumentException::class);
371 371
         self::expectExceptionMessage('event name must not be null');
372 372
 
373
-        $this->emitter->once(null, function () {});
373
+        $this->emitter->once(null, function() {});
374 374
     }
375 375
 
376 376
     public function testEventNameMustBeStringRemoveListener()
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
         self::expectException(InvalidArgumentException::class);
379 379
         self::expectExceptionMessage('event name must not be null');
380 380
 
381
-        $this->emitter->removeListener(null, function () {});
381
+        $this->emitter->removeListener(null, function() {});
382 382
     }
383 383
 
384 384
     public function testEventNameMustBeStringEmit()
@@ -391,10 +391,10 @@  discard block
 block discarded – undo
391 391
 
392 392
     public function testListenersGetAll()
393 393
     {
394
-        $a = function () {};
395
-        $b = function () {};
396
-        $c = function () {};
397
-        $d = function () {};
394
+        $a = function() {};
395
+        $b = function() {};
396
+        $c = function() {};
397
+        $d = function() {};
398 398
 
399 399
         $this->emitter->once('event2', $c);
400 400
         $this->emitter->on('event', $a);
@@ -423,9 +423,9 @@  discard block
 block discarded – undo
423 423
         $first = 0;
424 424
         $second = 0;
425 425
 
426
-        $this->emitter->once('event', function () use (&$first, &$second) {
426
+        $this->emitter->once('event', function() use (&$first, &$second) {
427 427
             $first++;
428
-            $this->emitter->once('event', function () use (&$second) {
428
+            $this->emitter->once('event', function() use (&$second) {
429 429
                 $second++;
430 430
             });
431 431
             $this->emitter->emit('event');
Please login to merge, or discard this patch.
deps/vendor/symfony/polyfill-mbstring/bootstrap80.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 use Symfony\Polyfill\Mbstring as p;
13 13
 
14 14
 if (!function_exists('mb_convert_encoding')) {
15
-    function mb_convert_encoding(array|string|null $string, ?string $to_encoding, array|string|null $from_encoding = null): array|string|false { return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); }
15
+    function mb_convert_encoding(array | string | null $string, ?string $to_encoding, array | string | null $from_encoding = null): array | string | false { return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); }
16 16
 }
17 17
 if (!function_exists('mb_decode_mimeheader')) {
18 18
     function mb_decode_mimeheader(?string $string): string { return p\Mbstring::mb_decode_mimeheader((string) $string); }
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
     function mb_convert_case(?string $string, ?int $mode, ?string $encoding = null): string { return p\Mbstring::mb_convert_case((string) $string, (int) $mode, $encoding); }
31 31
 }
32 32
 if (!function_exists('mb_internal_encoding')) {
33
-    function mb_internal_encoding(?string $encoding = null): string|bool { return p\Mbstring::mb_internal_encoding($encoding); }
33
+    function mb_internal_encoding(?string $encoding = null): string | bool { return p\Mbstring::mb_internal_encoding($encoding); }
34 34
 }
35 35
 if (!function_exists('mb_language')) {
36
-    function mb_language(?string $language = null): string|bool { return p\Mbstring::mb_language($language); }
36
+    function mb_language(?string $language = null): string | bool { return p\Mbstring::mb_language($language); }
37 37
 }
38 38
 if (!function_exists('mb_list_encodings')) {
39 39
     function mb_list_encodings(): array { return p\Mbstring::mb_list_encodings(); }
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
     function mb_encoding_aliases(?string $encoding): array { return p\Mbstring::mb_encoding_aliases((string) $encoding); }
43 43
 }
44 44
 if (!function_exists('mb_check_encoding')) {
45
-    function mb_check_encoding(array|string|null $value = null, ?string $encoding = null): bool { return p\Mbstring::mb_check_encoding($value, $encoding); }
45
+    function mb_check_encoding(array | string | null $value = null, ?string $encoding = null): bool { return p\Mbstring::mb_check_encoding($value, $encoding); }
46 46
 }
47 47
 if (!function_exists('mb_detect_encoding')) {
48
-    function mb_detect_encoding(?string $string, array|string|null $encodings = null, ?bool $strict = false): string|false { return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict); }
48
+    function mb_detect_encoding(?string $string, array | string | null $encodings = null, ?bool $strict = false): string | false { return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict); }
49 49
 }
50 50
 if (!function_exists('mb_detect_order')) {
51
-    function mb_detect_order(array|string|null $encoding = null): array|bool { return p\Mbstring::mb_detect_order($encoding); }
51
+    function mb_detect_order(array | string | null $encoding = null): array | bool { return p\Mbstring::mb_detect_order($encoding); }
52 52
 }
53 53
 if (!function_exists('mb_parse_str')) {
54 54
     function mb_parse_str(?string $string, &$result = []): bool { parse_str((string) $string, $result); return (bool) $result; }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     function mb_strlen(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strlen((string) $string, $encoding); }
58 58
 }
59 59
 if (!function_exists('mb_strpos')) {
60
-    function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
60
+    function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int | false { return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
61 61
 }
62 62
 if (!function_exists('mb_strtolower')) {
63 63
     function mb_strtolower(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtolower((string) $string, $encoding); }
@@ -66,37 +66,37 @@  discard block
 block discarded – undo
66 66
     function mb_strtoupper(?string $string, ?string $encoding = null): string { return p\Mbstring::mb_strtoupper((string) $string, $encoding); }
67 67
 }
68 68
 if (!function_exists('mb_substitute_character')) {
69
-    function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool { return p\Mbstring::mb_substitute_character($substitute_character); }
69
+    function mb_substitute_character(string | int | null $substitute_character = null): string | int | bool { return p\Mbstring::mb_substitute_character($substitute_character); }
70 70
 }
71 71
 if (!function_exists('mb_substr')) {
72 72
     function mb_substr(?string $string, ?int $start, ?int $length = null, ?string $encoding = null): string { return p\Mbstring::mb_substr((string) $string, (int) $start, $length, $encoding); }
73 73
 }
74 74
 if (!function_exists('mb_stripos')) {
75
-    function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
75
+    function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int | false { return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
76 76
 }
77 77
 if (!function_exists('mb_stristr')) {
78
-    function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
78
+    function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string | false { return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
79 79
 }
80 80
 if (!function_exists('mb_strrchr')) {
81
-    function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
81
+    function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string | false { return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
82 82
 }
83 83
 if (!function_exists('mb_strrichr')) {
84
-    function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
84
+    function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string | false { return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
85 85
 }
86 86
 if (!function_exists('mb_strripos')) {
87
-    function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
87
+    function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int | false { return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
88 88
 }
89 89
 if (!function_exists('mb_strrpos')) {
90
-    function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int|false { return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
90
+    function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null): int | false { return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }
91 91
 }
92 92
 if (!function_exists('mb_strstr')) {
93
-    function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string|false { return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
93
+    function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null): string | false { return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }
94 94
 }
95 95
 if (!function_exists('mb_get_info')) {
96
-    function mb_get_info(?string $type = 'all'): array|string|int|false { return p\Mbstring::mb_get_info((string) $type); }
96
+    function mb_get_info(?string $type = 'all'): array | string | int | false { return p\Mbstring::mb_get_info((string) $type); }
97 97
 }
98 98
 if (!function_exists('mb_http_output')) {
99
-    function mb_http_output(?string $encoding = null): string|bool { return p\Mbstring::mb_http_output($encoding); }
99
+    function mb_http_output(?string $encoding = null): string | bool { return p\Mbstring::mb_http_output($encoding); }
100 100
 }
101 101
 if (!function_exists('mb_strwidth')) {
102 102
     function mb_strwidth(?string $string, ?string $encoding = null): int { return p\Mbstring::mb_strwidth((string) $string, $encoding); }
@@ -108,18 +108,18 @@  discard block
 block discarded – undo
108 108
     function mb_output_handler(?string $string, ?int $status): string { return p\Mbstring::mb_output_handler((string) $string, (int) $status); }
109 109
 }
110 110
 if (!function_exists('mb_http_input')) {
111
-    function mb_http_input(?string $type = null): array|string|false { return p\Mbstring::mb_http_input($type); }
111
+    function mb_http_input(?string $type = null): array | string | false { return p\Mbstring::mb_http_input($type); }
112 112
 }
113 113
 
114 114
 if (!function_exists('mb_convert_variables')) {
115
-    function mb_convert_variables(?string $to_encoding, array|string|null $from_encoding, mixed &$var, mixed &...$vars): string|false { return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars); }
115
+    function mb_convert_variables(?string $to_encoding, array | string | null $from_encoding, mixed &$var, mixed &...$vars): string | false { return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars); }
116 116
 }
117 117
 
118 118
 if (!function_exists('mb_ord')) {
119
-    function mb_ord(?string $string, ?string $encoding = null): int|false { return p\Mbstring::mb_ord((string) $string, $encoding); }
119
+    function mb_ord(?string $string, ?string $encoding = null): int | false { return p\Mbstring::mb_ord((string) $string, $encoding); }
120 120
 }
121 121
 if (!function_exists('mb_chr')) {
122
-    function mb_chr(?int $codepoint, ?string $encoding = null): string|false { return p\Mbstring::mb_chr((int) $codepoint, $encoding); }
122
+    function mb_chr(?int $codepoint, ?string $encoding = null): string | false { return p\Mbstring::mb_chr((int) $codepoint, $encoding); }
123 123
 }
124 124
 if (!function_exists('mb_scrub')) {
125 125
     function mb_scrub(?string $string, ?string $encoding = null): string { $encoding ??= mb_internal_encoding(); return mb_convert_encoding((string) $string, $encoding, $encoding); }
Please login to merge, or discard this patch.