Completed
Pull Request — master (#388)
by
unknown
02:39
created
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/apcu/apcu.php 2 patches
Indentation   +133 added lines, -133 removed lines patch added patch discarded remove patch
@@ -250,73 +250,73 @@  discard block
 block discarded – undo
250 250
  */
251 251
 class APCIterator implements Iterator
252 252
 {
253
-    /**
254
-     * Constructs an APCIterator iterator object
255
-     * @link https://php.net/manual/en/apciterator.construct.php
256
-     * @param string $cache The cache type, which will be 'user' or 'file'.
257
-     * @param string|string[]|null $search A PCRE regular expression that matches against APC key names,
258
-     * either as a string for a single regular expression, or as an array of regular expressions.
259
-     * Or, optionally pass in NULL to skip the search.
260
-     * @param int $format The desired format, as configured with one ore more of the APC_ITER_* constants.
261
-     * @param int $chunk_size The chunk size. Must be a value greater than 0. The default value is 100.
262
-     * @param int $list The type to list. Either pass in APC_LIST_ACTIVE  or APC_LIST_INACTIVE.
263
-     */
264
-    public function __construct($cache, $search = null, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE) {}
265
-
266
-    /**
267
-     * Rewinds back the iterator to the first element
268
-     * @link https://php.net/manual/en/apciterator.rewind.php
269
-     */
270
-    public function rewind() {}
271
-
272
-    /**
273
-     * Checks if the current iterator position is valid
274
-     * @link https://php.net/manual/en/apciterator.valid.php
275
-     * @return bool Returns TRUE if the current iterator position is valid, otherwise FALSE.
276
-     */
277
-    public function valid() {}
278
-
279
-    /**
280
-     * Gets the current item from the APCIterator stack
281
-     * @link https://php.net/manual/en/apciterator.current.php
282
-     * @return mixed|false Returns the current item on success, or FALSE if no more items or exist, or on failure.
283
-     */
284
-    public function current() {}
285
-
286
-    /**
287
-     * Gets the current iterator key
288
-     * @link https://php.net/manual/en/apciterator.key.php
289
-     * @return string|int|false Returns the key on success, or FALSE upon failure.
290
-     */
291
-    public function key() {}
292
-
293
-    /**
294
-     * Moves the iterator pointer to the next element
295
-     * @link https://php.net/manual/en/apciterator.next.php
296
-     * @return bool Returns TRUE on success or FALSE on failure.
297
-     */
298
-    public function next() {}
299
-
300
-    /**
301
-     * Gets the total number of cache hits
302
-     * @link https://php.net/manual/en/apciterator.gettotalhits.php
303
-     * @return int|false The number of hits on success, or FALSE on failure.
304
-     */
305
-    public function getTotalHits() {}
306
-
307
-    /**
308
-     * Gets the total cache size
309
-     * @link https://php.net/manual/en/apciterator.gettotalsize.php
310
-     * @return int|bool The total cache size.
311
-     */
312
-    public function getTotalSize() {}
313
-
314
-    /**
315
-     * Get the total count
316
-     * @link https://php.net/manual/en/apciterator.gettotalcount.php
317
-     * @return int|bool The total count.
318
-     */
319
-    public function getTotalCount() {}
253
+	/**
254
+	 * Constructs an APCIterator iterator object
255
+	 * @link https://php.net/manual/en/apciterator.construct.php
256
+	 * @param string $cache The cache type, which will be 'user' or 'file'.
257
+	 * @param string|string[]|null $search A PCRE regular expression that matches against APC key names,
258
+	 * either as a string for a single regular expression, or as an array of regular expressions.
259
+	 * Or, optionally pass in NULL to skip the search.
260
+	 * @param int $format The desired format, as configured with one ore more of the APC_ITER_* constants.
261
+	 * @param int $chunk_size The chunk size. Must be a value greater than 0. The default value is 100.
262
+	 * @param int $list The type to list. Either pass in APC_LIST_ACTIVE  or APC_LIST_INACTIVE.
263
+	 */
264
+	public function __construct($cache, $search = null, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE) {}
265
+
266
+	/**
267
+	 * Rewinds back the iterator to the first element
268
+	 * @link https://php.net/manual/en/apciterator.rewind.php
269
+	 */
270
+	public function rewind() {}
271
+
272
+	/**
273
+	 * Checks if the current iterator position is valid
274
+	 * @link https://php.net/manual/en/apciterator.valid.php
275
+	 * @return bool Returns TRUE if the current iterator position is valid, otherwise FALSE.
276
+	 */
277
+	public function valid() {}
278
+
279
+	/**
280
+	 * Gets the current item from the APCIterator stack
281
+	 * @link https://php.net/manual/en/apciterator.current.php
282
+	 * @return mixed|false Returns the current item on success, or FALSE if no more items or exist, or on failure.
283
+	 */
284
+	public function current() {}
285
+
286
+	/**
287
+	 * Gets the current iterator key
288
+	 * @link https://php.net/manual/en/apciterator.key.php
289
+	 * @return string|int|false Returns the key on success, or FALSE upon failure.
290
+	 */
291
+	public function key() {}
292
+
293
+	/**
294
+	 * Moves the iterator pointer to the next element
295
+	 * @link https://php.net/manual/en/apciterator.next.php
296
+	 * @return bool Returns TRUE on success or FALSE on failure.
297
+	 */
298
+	public function next() {}
299
+
300
+	/**
301
+	 * Gets the total number of cache hits
302
+	 * @link https://php.net/manual/en/apciterator.gettotalhits.php
303
+	 * @return int|false The number of hits on success, or FALSE on failure.
304
+	 */
305
+	public function getTotalHits() {}
306
+
307
+	/**
308
+	 * Gets the total cache size
309
+	 * @link https://php.net/manual/en/apciterator.gettotalsize.php
310
+	 * @return int|bool The total cache size.
311
+	 */
312
+	public function getTotalSize() {}
313
+
314
+	/**
315
+	 * Get the total count
316
+	 * @link https://php.net/manual/en/apciterator.gettotalcount.php
317
+	 * @return int|bool The total count.
318
+	 */
319
+	public function getTotalCount() {}
320 320
 }
321 321
 
322 322
 /**
@@ -591,70 +591,70 @@  discard block
 block discarded – undo
591 591
  */
592 592
 class APCUIterator implements Iterator
593 593
 {
594
-    /**
595
-     * Constructs an APCUIterator iterator object
596
-     * @link https://php.net/manual/en/apcuiterator.construct.php
597
-     * @param string|string[]|null $search A PCRE regular expression that matches against APCu key names,
598
-     * either as a string for a single regular expression, or as an array of regular expressions.
599
-     * Or, optionally pass in NULL to skip the search.
600
-     * @param int $format The desired format, as configured with one ore more of the APC_ITER_* constants.
601
-     * @param int $chunk_size The chunk size. Must be a value greater than 0. The default value is 100.
602
-     * @param int $list The type to list. Either pass in APC_LIST_ACTIVE  or APC_LIST_DELETED.
603
-     */
604
-    public function __construct($search = null, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE) {}
605
-
606
-    /**
607
-     * Rewinds back the iterator to the first element
608
-     * @link https://php.net/manual/en/apcuiterator.rewind.php
609
-     */
610
-    public function rewind() {}
611
-
612
-    /**
613
-     * Checks if the current iterator position is valid
614
-     * @link https://php.net/manual/en/apcuiterator.valid.php
615
-     * @return bool Returns TRUE if the current iterator position is valid, otherwise FALSE.
616
-     */
617
-    public function valid() {}
618
-
619
-    /**
620
-     * Gets the current item from the APCUIterator stack
621
-     * @link https://php.net/manual/en/apcuiterator.current.php
622
-     * @return mixed|false Returns the current item on success, or FALSE if no more items or exist, or on failure.
623
-     */
624
-    public function current() {}
625
-
626
-    /**
627
-     * Gets the current iterator key
628
-     * @link https://php.net/manual/en/apcuiterator.key.php
629
-     * @return string|int|false Returns the key on success, or FALSE upon failure.
630
-     */
631
-    public function key() {}
632
-
633
-    /**
634
-     * Moves the iterator pointer to the next element
635
-     * @link https://php.net/manual/en/apcuiterator.next.php
636
-     * @return bool Returns TRUE on success or FALSE on failure.
637
-     */
638
-    public function next() {}
639
-
640
-    /**
641
-     * Gets the total number of cache hits
642
-     * @link https://php.net/manual/en/apcuiterator.gettotalhits.php
643
-     * @return int|false The number of hits on success, or FALSE on failure.
644
-     */
645
-    public function getTotalHits() {}
646
-
647
-    /**
648
-     * Gets the total cache size
649
-     * @link https://php.net/manual/en/apcuiterator.gettotalsize.php
650
-     * @return int|false The total cache size.
651
-     */
652
-    public function getTotalSize() {}
653
-
654
-    /**
655
-     * Get the total count
656
-     * @link https://php.net/manual/en/apcuiterator.gettotalcount.php
657
-     * @return int|false The total count.
658
-     */
659
-    public function getTotalCount() {}
594
+	/**
595
+	 * Constructs an APCUIterator iterator object
596
+	 * @link https://php.net/manual/en/apcuiterator.construct.php
597
+	 * @param string|string[]|null $search A PCRE regular expression that matches against APCu key names,
598
+	 * either as a string for a single regular expression, or as an array of regular expressions.
599
+	 * Or, optionally pass in NULL to skip the search.
600
+	 * @param int $format The desired format, as configured with one ore more of the APC_ITER_* constants.
601
+	 * @param int $chunk_size The chunk size. Must be a value greater than 0. The default value is 100.
602
+	 * @param int $list The type to list. Either pass in APC_LIST_ACTIVE  or APC_LIST_DELETED.
603
+	 */
604
+	public function __construct($search = null, $format = APC_ITER_ALL, $chunk_size = 100, $list = APC_LIST_ACTIVE) {}
605
+
606
+	/**
607
+	 * Rewinds back the iterator to the first element
608
+	 * @link https://php.net/manual/en/apcuiterator.rewind.php
609
+	 */
610
+	public function rewind() {}
611
+
612
+	/**
613
+	 * Checks if the current iterator position is valid
614
+	 * @link https://php.net/manual/en/apcuiterator.valid.php
615
+	 * @return bool Returns TRUE if the current iterator position is valid, otherwise FALSE.
616
+	 */
617
+	public function valid() {}
618
+
619
+	/**
620
+	 * Gets the current item from the APCUIterator stack
621
+	 * @link https://php.net/manual/en/apcuiterator.current.php
622
+	 * @return mixed|false Returns the current item on success, or FALSE if no more items or exist, or on failure.
623
+	 */
624
+	public function current() {}
625
+
626
+	/**
627
+	 * Gets the current iterator key
628
+	 * @link https://php.net/manual/en/apcuiterator.key.php
629
+	 * @return string|int|false Returns the key on success, or FALSE upon failure.
630
+	 */
631
+	public function key() {}
632
+
633
+	/**
634
+	 * Moves the iterator pointer to the next element
635
+	 * @link https://php.net/manual/en/apcuiterator.next.php
636
+	 * @return bool Returns TRUE on success or FALSE on failure.
637
+	 */
638
+	public function next() {}
639
+
640
+	/**
641
+	 * Gets the total number of cache hits
642
+	 * @link https://php.net/manual/en/apcuiterator.gettotalhits.php
643
+	 * @return int|false The number of hits on success, or FALSE on failure.
644
+	 */
645
+	public function getTotalHits() {}
646
+
647
+	/**
648
+	 * Gets the total cache size
649
+	 * @link https://php.net/manual/en/apcuiterator.gettotalsize.php
650
+	 * @return int|false The total cache size.
651
+	 */
652
+	public function getTotalSize() {}
653
+
654
+	/**
655
+	 * Get the total count
656
+	 * @link https://php.net/manual/en/apcuiterator.gettotalcount.php
657
+	 * @return int|false The total count.
658
+	 */
659
+	public function getTotalCount() {}
660 660
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -248,8 +248,7 @@  discard block
 block discarded – undo
248 248
  *
249 249
  * @link https://php.net/manual/en/class.apciterator.php
250 250
  */
251
-class APCIterator implements Iterator
252
-{
251
+class APCIterator implements Iterator {
253 252
     /**
254 253
      * Constructs an APCIterator iterator object
255 254
      * @link https://php.net/manual/en/apciterator.construct.php
@@ -589,8 +588,7 @@  discard block
 block discarded – undo
589 588
  * @link https://php.net/manual/en/class.apcuiterator.php
590 589
  * @since APCu 5.0.0
591 590
  */
592
-class APCUIterator implements Iterator
593
-{
591
+class APCUIterator implements Iterator {
594 592
     /**
595 593
      * Constructs an APCUIterator iterator object
596 594
      * @link https://php.net/manual/en/apcuiterator.construct.php
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/zlib/zlib.php 3 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -528,11 +528,11 @@  discard block
 block discarded – undo
528 528
  */
529 529
 final class InflateContext
530 530
 {
531
-    /**
532
-     * Use inflate_init() instead
533
-     * @see inflate_init()
534
-     */
535
-    private function __construct() {}
531
+	/**
532
+	 * Use inflate_init() instead
533
+	 * @see inflate_init()
534
+	 */
535
+	private function __construct() {}
536 536
 }
537 537
 
538 538
 /**
@@ -540,11 +540,11 @@  discard block
 block discarded – undo
540 540
  */
541 541
 final class DeflateContext
542 542
 {
543
-    /**
544
-     * Use deflate_init() instead
545
-     * @see deflate_init()
546
-     */
547
-    private function __construct() {}
543
+	/**
544
+	 * Use deflate_init() instead
545
+	 * @see deflate_init()
546
+	 */
547
+	private function __construct() {}
548 548
 }
549 549
 
550 550
 define('FORCE_GZIP', 31);
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * </p>
19 19
  * @return int|false the number of (uncompressed) bytes read from the file, or FALSE on error
20 20
  */
21
-function readgzfile(string $filename, int $use_include_path = 0): int|false {}
21
+function readgzfile(string $filename, int $use_include_path = 0): int | false {}
22 22
 
23 23
 /**
24 24
  * Rewind the position of a gz-file pointer
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
  * </p>
64 64
  * @return string|false The uncompressed character or <b>FALSE</b> on EOF (unlike <b>gzeof</b>).
65 65
  */
66
-function gzgetc($stream): string|false {}
66
+function gzgetc($stream): string | false {}
67 67
 
68 68
 /**
69 69
  * Get line from file pointer
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
  * </p>
78 78
  * @return string|false The uncompressed string, or <b>FALSE</b> on error.
79 79
  */
80
-function gzgets($stream, ?int $length = 1024): string|false {}
80
+function gzgets($stream, ?int $length = 1024): string | false {}
81 81
 
82 82
 /**
83 83
  * Get line from gz-file pointer and strip HTML tags
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
  * @return string|false The uncompressed and striped string, or <b>FALSE</b> on error.
97 97
  * @removed 8.0
98 98
  */
99
-#[Deprecated(since: "7.3")]
99
+#[Deprecated(since : "7.3")]
100 100
 function gzgetss($zp, int $length, $allowable_tags) {}
101 101
 
102 102
 /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
  * </p>
112 112
  * @return string|false The data that have been read.
113 113
  */
114
-function gzread($stream, int $length): string|false {}
114
+function gzread($stream, int $length): string | false {}
115 115
 
116 116
 /**
117 117
  * Open gz-file
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
  * </p>
188 188
  * @return int|false The position of the file pointer or <b>FALSE</b> if an error occurs.
189 189
  */
190
-function gztell($stream): int|false {}
190
+function gztell($stream): int | false {}
191 191
 
192 192
 /**
193 193
  * Binary-safe gz-file write
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
  * @return int|false the number of (uncompressed) bytes written to the given gz-file
215 215
  * stream.
216 216
  */
217
-function gzwrite($stream, string $data, ?int $length): int|false {}
217
+function gzwrite($stream, string $data, ?int $length): int | false {}
218 218
 
219 219
 /**
220 220
  * Alias of <b>gzwrite</b>
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
  * @param int|null $length [optional]
225 225
  * @return int|false
226 226
  */
227
-function gzputs($stream, string $data, ?int $length): int|false {}
227
+function gzputs($stream, string $data, ?int $length): int | false {}
228 228
 
229 229
 /**
230 230
  * Read entire gz-file into an array
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
  * </p>
239 239
  * @return array|false An array containing the file, one line per cell.
240 240
  */
241
-function gzfile(string $filename, int $use_include_path = 0): array|false {}
241
+function gzfile(string $filename, int $use_include_path = 0): array | false {}
242 242
 
243 243
 /**
244 244
  * Compress a string
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
  * @return string|false The compressed string or <b>FALSE</b> if an error occurred.
260 260
  */
261 261
 #[Pure]
262
-function gzcompress(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_DEFLATE): string|false {}
262
+function gzcompress(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_DEFLATE): string | false {}
263 263
 
264 264
 /**
265 265
  * Uncompress a compressed string
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
  * </p>
279 279
  */
280 280
 #[Pure]
281
-function gzuncompress(string $data, int $max_length = 0): string|false {}
281
+function gzuncompress(string $data, int $max_length = 0): string | false {}
282 282
 
283 283
 /**
284 284
  * Deflate a string
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
  * @return string|false The deflated string or <b>FALSE</b> if an error occurred.
298 298
  */
299 299
 #[Pure]
300
-function gzdeflate(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_RAW): string|false {}
300
+function gzdeflate(string $data, int $level = -1, int $encoding = ZLIB_ENCODING_RAW): string | false {}
301 301
 
302 302
 /**
303 303
  * Inflate a deflated string
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
  * </p>
317 317
  */
318 318
 #[Pure]
319
-function gzinflate(string $data, int $max_length = 0): string|false {}
319
+function gzinflate(string $data, int $max_length = 0): string | false {}
320 320
 
321 321
 /**
322 322
  * Create a gzip compressed string
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
  * @return string|false The encoded string, or <b>FALSE</b> if an error occurred.
347 347
  */
348 348
 #[Pure]
349
-function gzencode(string $data, int $level = -1, int $encoding = FORCE_GZIP): string|false {}
349
+function gzencode(string $data, int $level = -1, int $encoding = FORCE_GZIP): string | false {}
350 350
 
351 351
 /**
352 352
  * Decodes a gzip compressed string
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
  * @since 5.4
362 362
  */
363 363
 #[Pure]
364
-function gzdecode(string $data, int $max_length): string|false {}
364
+function gzdecode(string $data, int $max_length): string | false {}
365 365
 
366 366
 /**
367 367
  * Compress data with the specified encoding
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
  * @since 5.4
377 377
  */
378 378
 #[Pure]
379
-function zlib_encode(string $data, int $encoding, int $level = -1): string|false {}
379
+function zlib_encode(string $data, int $encoding, int $level = -1): string | false {}
380 380
 
381 381
 /**
382 382
  * Uncompress any raw/gzip/zlib encoded data
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
  * @since 5.4
390 390
  */
391 391
 #[Pure]
392
-function zlib_decode(string $data, int $max_length): string|false {}
392
+function zlib_decode(string $data, int $max_length): string | false {}
393 393
 
394 394
 /**
395 395
  * Returns the coding type used for output compression
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
  * or <b>FALSE</b>.
399 399
  */
400 400
 #[Pure]
401
-function zlib_get_coding_type(): string|false {}
401
+function zlib_get_coding_type(): string | false {}
402 402
 
403 403
 /**
404 404
  * ob_start callback function to gzip output buffer
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
  * @param int $flags
408 408
  * @return string|false
409 409
  */
410
-function ob_gzhandler(string $data, int $flags): string|false {}
410
+function ob_gzhandler(string $data, int $flags): string | false {}
411 411
 
412 412
 /**
413 413
  * Initialize an incremental deflate context
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
  * @since 7.0
432 432
  */
433 433
 #[Pure]
434
-#[LanguageLevelTypeAware(["8.0" => "DeflateContext|false"], default: "resource|false")]
434
+#[LanguageLevelTypeAware(["8.0" => "DeflateContext|false"], default : "resource|false")]
435 435
 function deflate_init(int $encoding, array $options = []) {}
436 436
 
437 437
 /**
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
  * </p>
456 456
  * @since 7.0
457 457
  */
458
-function deflate_add(#[LanguageLevelTypeAware(["8.0" => "DeflateContext"], default: "resource")] $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false {}
458
+function deflate_add(#[LanguageLevelTypeAware(["8.0" => "DeflateContext"], default : "resource")] $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string | false {}
459 459
 
460 460
 /**
461 461
  * Initialize an incremental inflate context
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
  * @since 7.0
480 480
  */
481 481
 #[Pure]
482
-#[LanguageLevelTypeAware(["8.0" => "InflateContext|false"], default: "resource|false")]
482
+#[LanguageLevelTypeAware(["8.0" => "InflateContext|false"], default : "resource|false")]
483 483
 function inflate_init(int $encoding, array $options = []) {}
484 484
 
485 485
 /**
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
  * </p>
504 504
  * @since 7.0
505 505
  */
506
-function inflate_add(#[LanguageLevelTypeAware(["8.0" => "InflateContext"], default: "resource")] $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string|false {}
506
+function inflate_add(#[LanguageLevelTypeAware(["8.0" => "InflateContext"], default : "resource")] $context, string $data, int $flush_mode = ZLIB_SYNC_FLUSH): string | false {}
507 507
 
508 508
 /**
509 509
  * Get number of bytes read so far
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
  * @since 7.2
513 513
  */
514 514
 #[Pure]
515
-function inflate_get_read_len(#[LanguageLevelTypeAware(["8.0" => "InflateContext"], default: "resource")] $context): int {}
515
+function inflate_get_read_len(#[LanguageLevelTypeAware(["8.0" => "InflateContext"], default : "resource")] $context): int {}
516 516
 
517 517
 /**
518 518
  * Get decompression status
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
  * @since 7.2
522 522
  */
523 523
 #[Pure]
524
-function inflate_get_status(#[LanguageLevelTypeAware(["8.0" => "InflateContext"], default: "resource")] $context): int {}
524
+function inflate_get_status(#[LanguageLevelTypeAware(["8.0" => "InflateContext"], default : "resource")] $context): int {}
525 525
 
526 526
 /**
527 527
  * @since 8.0
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -526,8 +526,7 @@  discard block
 block discarded – undo
526 526
 /**
527 527
  * @since 8.0
528 528
  */
529
-final class InflateContext
530
-{
529
+final class InflateContext {
531 530
     /**
532 531
      * Use inflate_init() instead
533 532
      * @see inflate_init()
@@ -538,8 +537,7 @@  discard block
 block discarded – undo
538 537
 /**
539 538
  * @since 8.0
540 539
  */
541
-final class DeflateContext
542
-{
540
+final class DeflateContext {
543 541
     /**
544 542
      * Use deflate_init() instead
545 543
      * @see deflate_init()
Please login to merge, or discard this patch.
php-scoper/vendor/jetbrains/phpstorm-stubs/blackfire/blackfire.php 2 patches
Indentation   +101 added lines, -101 removed lines patch added patch discarded remove patch
@@ -6,118 +6,118 @@
 block discarded – undo
6 6
  */
7 7
 final class BlackfireProbe
8 8
 {
9
-    /**
10
-     * Returns a global singleton and enables it by default.
11
-     *
12
-     * @return \BlackfireProbe
13
-     */
14
-    public static function getMainInstance() {}
9
+	/**
10
+	 * Returns a global singleton and enables it by default.
11
+	 *
12
+	 * @return \BlackfireProbe
13
+	 */
14
+	public static function getMainInstance() {}
15 15
 
16
-    /**
17
-     * Tells whether the probe is currently profiling or not.
18
-     *
19
-     * @return bool
20
-     */
21
-    public static function isEnabled() {}
16
+	/**
17
+	 * Tells whether the probe is currently profiling or not.
18
+	 *
19
+	 * @return bool
20
+	 */
21
+	public static function isEnabled() {}
22 22
 
23
-    /**
24
-     * Adds a marker for the Timeline View.
25
-     *
26
-     * @param string $markerName
27
-     */
28
-    public static function addMarker($markerName = '') {}
23
+	/**
24
+	 * Adds a marker for the Timeline View.
25
+	 *
26
+	 * @param string $markerName
27
+	 */
28
+	public static function addMarker($markerName = '') {}
29 29
 
30
-    /**
31
-     * BlackfireProbe constructor. SHOULD NOT BE USED DIRECTLY!
32
-     * USE getMainInstance() INSTEAD!
33
-     *
34
-     * @param string $query An URL-encoded string that configures the probe. Part of the string is signed.
35
-     *                      Typically comes from X-Blackfire-Query HTTP header or BLACKRFIRE_QUERY environment variable.
36
-     * @param string|null $envId An id that is given to the agent for signature impersonation.
37
-     * @param string|null $envToken The token associated to $envId.
38
-     * @param string|null $agentSocket The URL where profiles will be written (directory, socket or TCP destination).
39
-     */
40
-    public function __construct($query, $envId = null, $envToken = null, $agentSocket = null) {}
30
+	/**
31
+	 * BlackfireProbe constructor. SHOULD NOT BE USED DIRECTLY!
32
+	 * USE getMainInstance() INSTEAD!
33
+	 *
34
+	 * @param string $query An URL-encoded string that configures the probe. Part of the string is signed.
35
+	 *                      Typically comes from X-Blackfire-Query HTTP header or BLACKRFIRE_QUERY environment variable.
36
+	 * @param string|null $envId An id that is given to the agent for signature impersonation.
37
+	 * @param string|null $envToken The token associated to $envId.
38
+	 * @param string|null $agentSocket The URL where profiles will be written (directory, socket or TCP destination).
39
+	 */
40
+	public function __construct($query, $envId = null, $envToken = null, $agentSocket = null) {}
41 41
 
42
-    /**
43
-     * Tells if the probe is cryptographically verified,
44
-     * i.e. if the signature in X-Blackfire-Query HTTP header or
45
-     * BLACKFIRE_QUERY environment variable is valid.
46
-     *
47
-     * @return bool
48
-     */
49
-    public function isVerified() {}
42
+	/**
43
+	 * Tells if the probe is cryptographically verified,
44
+	 * i.e. if the signature in X-Blackfire-Query HTTP header or
45
+	 * BLACKFIRE_QUERY environment variable is valid.
46
+	 *
47
+	 * @return bool
48
+	 */
49
+	public function isVerified() {}
50 50
 
51
-    /**
52
-     * @param string $configuration
53
-     */
54
-    public function setConfiguration($configuration) {}
51
+	/**
52
+	 * @param string $configuration
53
+	 */
54
+	public function setConfiguration($configuration) {}
55 55
 
56
-    /**
57
-     * Gets the response message/status/line.
58
-     *
59
-     * This lines gives details about the status of the probe. That can be:
60
-     * - an error: `Blackfire-Error: $errNumber $urlEncodedErrorMessage`
61
-     * - or not: `Blackfire-Response: $rfc1738EncodedMessage`
62
-     *
63
-     * @return string The response line
64
-     */
65
-    public function getResponseLine() {}
56
+	/**
57
+	 * Gets the response message/status/line.
58
+	 *
59
+	 * This lines gives details about the status of the probe. That can be:
60
+	 * - an error: `Blackfire-Error: $errNumber $urlEncodedErrorMessage`
61
+	 * - or not: `Blackfire-Response: $rfc1738EncodedMessage`
62
+	 *
63
+	 * @return string The response line
64
+	 */
65
+	public function getResponseLine() {}
66 66
 
67
-    /**
68
-     * Enables manual instrumentation. Starts collecting profiling data.
69
-     *
70
-     * @return bool False if enabling failed.
71
-     */
72
-    public function enable() {}
67
+	/**
68
+	 * Enables manual instrumentation. Starts collecting profiling data.
69
+	 *
70
+	 * @return bool False if enabling failed.
71
+	 */
72
+	public function enable() {}
73 73
 
74
-    /**
75
-     * Discards collected data and disables instrumentation.
76
-     *
77
-     * Does not close the profile payload, allowing to re-enable the probe and aggregate data in the same profile.
78
-     *
79
-     * @return bool False if the probe was not enabled.
80
-     */
81
-    public function discard() {}
74
+	/**
75
+	 * Discards collected data and disables instrumentation.
76
+	 *
77
+	 * Does not close the profile payload, allowing to re-enable the probe and aggregate data in the same profile.
78
+	 *
79
+	 * @return bool False if the probe was not enabled.
80
+	 */
81
+	public function discard() {}
82 82
 
83
-    /**
84
-     * Disables instrumentation.
85
-     *
86
-     * Does not close the profile payload, allowing to re-enable the probe
87
-     * and to aggregate data in the same profile.
88
-     *
89
-     * @return bool False if the probe was not enabled.
90
-     */
91
-    public function disable() {}
83
+	/**
84
+	 * Disables instrumentation.
85
+	 *
86
+	 * Does not close the profile payload, allowing to re-enable the probe
87
+	 * and to aggregate data in the same profile.
88
+	 *
89
+	 * @return bool False if the probe was not enabled.
90
+	 */
91
+	public function disable() {}
92 92
 
93
-    /**
94
-     * Stops the profiling and forces the collected data to be sent to Blackfire.
95
-     *
96
-     * @return bool False if the probe was not enabled.
97
-     */
98
-    public function close() {}
93
+	/**
94
+	 * Stops the profiling and forces the collected data to be sent to Blackfire.
95
+	 *
96
+	 * @return bool False if the probe was not enabled.
97
+	 */
98
+	public function close() {}
99 99
 
100
-    /**
101
-     * Creates a sub-query string to create a new profile linked to the current one.
102
-     * Generated query must be set in the X-Blackire-Query HTTP header or in the BLACKFIRE_QUERY environment variable.
103
-     *
104
-     * @return string|null The sub-query or null if the current profile is not the first sample or profiling is disabled.
105
-     */
106
-    public function createSubProfileQuery() {}
100
+	/**
101
+	 * Creates a sub-query string to create a new profile linked to the current one.
102
+	 * Generated query must be set in the X-Blackire-Query HTTP header or in the BLACKFIRE_QUERY environment variable.
103
+	 *
104
+	 * @return string|null The sub-query or null if the current profile is not the first sample or profiling is disabled.
105
+	 */
106
+	public function createSubProfileQuery() {}
107 107
 
108
-    /**
109
-     * Sets a custom transaction name for Blackfire Monitoring.
110
-     *
111
-     * @param string $transactionName Name to register for the transaction (e.g. 'user_model:show')
112
-     *
113
-     * @return void
114
-     */
115
-    public function setTransactionName(string $transactionName) {}
108
+	/**
109
+	 * Sets a custom transaction name for Blackfire Monitoring.
110
+	 *
111
+	 * @param string $transactionName Name to register for the transaction (e.g. 'user_model:show')
112
+	 *
113
+	 * @return void
114
+	 */
115
+	public function setTransactionName(string $transactionName) {}
116 116
 
117
-    /**
118
-     * Disables Blackfire Monitoring instrumentation for a transaction.
119
-     *
120
-     * @return void
121
-     */
122
-    public function ignoreTransaction() {}
117
+	/**
118
+	 * Disables Blackfire Monitoring instrumentation for a transaction.
119
+	 *
120
+	 * @return void
121
+	 */
122
+	public function ignoreTransaction() {}
123 123
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
  * Blackfire extension stubs.
5 5
  * @link https://blackfire.io
6 6
  */
7
-final class BlackfireProbe
8
-{
7
+final class BlackfireProbe {
9 8
     /**
10 9
      * Returns a global singleton and enables it by default.
11 10
      *
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/dba/dba.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
  * @return string|false the associated string if the key/data pair is found, <b>FALSE</b>
202 202
  * otherwise.
203 203
  */
204
-function dba_fetch($key, $handle): string|false {}
204
+function dba_fetch($key, $handle): string | false {}
205 205
 
206 206
 /**
207 207
  * Fetch data specified by key
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
  * @return string|false the associated string if the key/data pair is found, <b>FALSE</b>
223 223
  * otherwise.
224 224
  */
225
-function dba_fetch($key, $skip, $dba): string|false {}
225
+function dba_fetch($key, $skip, $dba): string | false {}
226 226
 
227 227
 /**
228 228
  * Insert entry
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
  * </p>
270 270
  * @return string|false the key on success or <b>FALSE</b> on failure.
271 271
  */
272
-function dba_firstkey($dba): string|false {}
272
+function dba_firstkey($dba): string | false {}
273 273
 
274 274
 /**
275 275
  * Fetch next key
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
  * </p>
281 281
  * @return string|false the key on success or <b>FALSE</b> on failure.
282 282
  */
283
-function dba_nextkey($dba): string|false {}
283
+function dba_nextkey($dba): string | false {}
284 284
 
285 285
 /**
286 286
  * Optimize database
@@ -338,6 +338,6 @@  discard block
 block discarded – undo
338 338
  * value_name). This function will return <b>FALSE</b> if
339 339
  * <i>key</i> is <b>NULL</b> or <b>FALSE</b>.
340 340
  */
341
-function dba_key_split(string|false|null $key): array|false {}
341
+function dba_key_split(string | false | null $key): array | false {}
342 342
 
343 343
 // End of dba v.
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/ldap/ldap.php 2 patches
Indentation   +127 added lines, -127 removed lines patch added patch discarded remove patch
@@ -17,17 +17,17 @@  discard block
 block discarded – undo
17 17
  * @since 7.2
18 18
  */
19 19
 function ldap_exop_passwd(
20
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
21
-    #[Available(from: '7.1', to: '7.1')] string $user = "",
22
-    #[Available(from: '7.2', to: '7.2')] string $user,
23
-    #[Available(from: '7.3')] string $user = "",
24
-    #[Available(from: '7.1', to: '7.1')] string $old_password = "",
25
-    #[Available(from: '7.2', to: '7.2')] string $old_password,
26
-    #[Available(from: '7.3')] string $old_password = "",
27
-    #[Available(from: '7.1', to: '7.1')] string $new_password = "",
28
-    #[Available(from: '7.2', to: '7.2')] string $new_password,
29
-    #[Available(from: '7.3')] string $new_password = "",
30
-    #[Available(from: '7.3')] &$controls = []
20
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
21
+	#[Available(from: '7.1', to: '7.1')] string $user = "",
22
+	#[Available(from: '7.2', to: '7.2')] string $user,
23
+	#[Available(from: '7.3')] string $user = "",
24
+	#[Available(from: '7.1', to: '7.1')] string $old_password = "",
25
+	#[Available(from: '7.2', to: '7.2')] string $old_password,
26
+	#[Available(from: '7.3')] string $old_password = "",
27
+	#[Available(from: '7.1', to: '7.1')] string $new_password = "",
28
+	#[Available(from: '7.2', to: '7.2')] string $new_password,
29
+	#[Available(from: '7.3')] string $new_password = "",
30
+	#[Available(from: '7.3')] &$controls = []
31 31
 ): string|bool {}
32 32
 
33 33
 /**
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
  * @since 7.2
77 77
  */
78 78
 function ldap_parse_exop(
79
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
80
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result,
81
-    #[Available(from: '7.2', to: '7.4')] &$response_data,
82
-    #[Available(from: '8.0')] &$response_data = '',
83
-    #[Available(from: '7.2', to: '7.4')] &$response_oid,
84
-    #[Available(from: '8.0')] &$response_oid = ''
79
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
80
+	#[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result,
81
+	#[Available(from: '7.2', to: '7.4')] &$response_data,
82
+	#[Available(from: '8.0')] &$response_data = '',
83
+	#[Available(from: '7.2', to: '7.4')] &$response_oid,
84
+	#[Available(from: '8.0')] &$response_oid = ''
85 85
 ): bool {}
86 86
 
87 87
 /**
@@ -251,15 +251,15 @@  discard block
 block discarded – undo
251 251
  */
252 252
 #[PhpVersionAware(['8.1' => 'LDAP\Result|array|false'], default: 'resource|false')]
253 253
 function ldap_read(
254
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
255
-    array|string $base,
256
-    array|string $filter,
257
-    array $attributes,
258
-    int $attributes_only,
259
-    int $sizelimit = -1,
260
-    int $timelimit = -1,
261
-    int $deref,
262
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
254
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
255
+	array|string $base,
256
+	array|string $filter,
257
+	array $attributes,
258
+	int $attributes_only,
259
+	int $sizelimit = -1,
260
+	int $timelimit = -1,
261
+	int $deref,
262
+	#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
263 263
 ) {}
264 264
 
265 265
 /**
@@ -320,15 +320,15 @@  discard block
 block discarded – undo
320 320
  */
321 321
 #[PhpVersionAware(['8.1' => 'LDAP\Result|array|false'], default: 'resource|false')]
322 322
 function ldap_list(
323
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
324
-    array|string $base,
325
-    array|string $filter,
326
-    array $attributes,
327
-    int $attributes_only,
328
-    int $sizelimit = -1,
329
-    int $timelimit = -1,
330
-    int $deref,
331
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
323
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
324
+	array|string $base,
325
+	array|string $filter,
326
+	array $attributes,
327
+	int $attributes_only,
328
+	int $sizelimit = -1,
329
+	int $timelimit = -1,
330
+	int $deref,
331
+	#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
332 332
 ) {}
333 333
 
334 334
 /**
@@ -393,15 +393,15 @@  discard block
 block discarded – undo
393 393
  */
394 394
 #[PhpVersionAware(['8.1' => 'LDAP\Result|array|false'], default: 'resource|false')]
395 395
 function ldap_search(
396
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
397
-    array|string $base,
398
-    array|string $filter,
399
-    array $attributes,
400
-    int $attributes_only,
401
-    int $sizelimit = -1,
402
-    int $timelimit = -1,
403
-    int $deref,
404
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
396
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
397
+	array|string $base,
398
+	array|string $filter,
399
+	array $attributes,
400
+	int $attributes_only,
401
+	int $sizelimit = -1,
402
+	int $timelimit = -1,
403
+	int $deref,
404
+	#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
405 405
 ) {}
406 406
 
407 407
 /**
@@ -425,8 +425,8 @@  discard block
 block discarded – undo
425 425
  */
426 426
 #[PhpVersionAware(["8.0" => "int"], default: "int|false")]
427 427
 function ldap_count_entries(
428
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
429
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
428
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
429
+	#[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
430 430
 ) {}
431 431
 
432 432
 /**
@@ -441,8 +441,8 @@  discard block
 block discarded – undo
441 441
  */
442 442
 #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry|false'], default: 'resource|false')]
443 443
 function ldap_first_entry(
444
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
445
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
444
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
445
+	#[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
446 446
 ) {}
447 447
 
448 448
 /**
@@ -458,8 +458,8 @@  discard block
 block discarded – undo
458 458
  */
459 459
 #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry|false'], default: 'resource|false')]
460 460
 function ldap_next_entry(
461
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
462
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
461
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
462
+	#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
463 463
 ) {}
464 464
 
465 465
 /**
@@ -489,8 +489,8 @@  discard block
 block discarded – undo
489 489
  * </pre>
490 490
  */
491 491
 function ldap_get_entries(
492
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
493
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
492
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
493
+	#[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
494 494
 ): array|false {}
495 495
 
496 496
 /**
@@ -504,8 +504,8 @@  discard block
 block discarded – undo
504 504
  * error.
505 505
  */
506 506
 function ldap_first_attribute(
507
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
508
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
507
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
508
+	#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
509 509
 ): string|false {}
510 510
 
511 511
 /**
@@ -519,8 +519,8 @@  discard block
 block discarded – undo
519 519
  * error.
520 520
  */
521 521
 function ldap_next_attribute(
522
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
523
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
522
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
523
+	#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
524 524
 ): string|false {}
525 525
 
526 526
 /**
@@ -534,8 +534,8 @@  discard block
 block discarded – undo
534 534
  * on success and <b>FALSE</b> on error.
535 535
  */
536 536
 function ldap_get_attributes(
537
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
538
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
537
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
538
+	#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
539 539
 ): array {}
540 540
 
541 541
 /**
@@ -560,9 +560,9 @@  discard block
 block discarded – undo
560 560
  * return_value[i] = ith value of attribute
561 561
  */
562 562
 function ldap_get_values(
563
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
564
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry,
565
-    string $attribute
563
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
564
+	#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry,
565
+	string $attribute
566 566
 ): array|false {}
567 567
 
568 568
 /**
@@ -579,9 +579,9 @@  discard block
 block discarded – undo
579 579
  * in the resultant array.
580 580
  */
581 581
 function ldap_get_values_len(
582
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
583
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry,
584
-    string $attribute
582
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
583
+	#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry,
584
+	string $attribute
585 585
 ): array|false {}
586 586
 
587 587
 /**
@@ -594,8 +594,8 @@  discard block
 block discarded – undo
594 594
  * @return string|false the DN of the result entry and <b>FALSE</b> on error.
595 595
  */
596 596
 function ldap_get_dn(
597
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
598
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
597
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
598
+	#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
599 599
 ): string|false {}
600 600
 
601 601
 /**
@@ -651,10 +651,10 @@  discard block
 block discarded – undo
651 651
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
652 652
  */
653 653
 function ldap_add(
654
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
655
-    string $dn,
656
-    array $entry,
657
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
654
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
655
+	string $dn,
656
+	array $entry,
657
+	#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
658 658
 ): bool {}
659 659
 
660 660
 /**
@@ -698,9 +698,9 @@  discard block
 block discarded – undo
698 698
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
699 699
  */
700 700
 function ldap_delete(
701
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
702
-    string $dn,
703
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
701
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
702
+	string $dn,
703
+	#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
704 704
 ): bool {}
705 705
 
706 706
 /**
@@ -736,10 +736,10 @@  discard block
 block discarded – undo
736 736
  * @since 7.0
737 737
  */
738 738
 function ldap_modify(
739
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
740
-    string $dn,
741
-    array $entry,
742
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
739
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
740
+	string $dn,
741
+	array $entry,
742
+	#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
743 743
 ): bool {}
744 744
 
745 745
 /**
@@ -756,10 +756,10 @@  discard block
 block discarded – undo
756 756
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
757 757
  */
758 758
 function ldap_mod_add(
759
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
760
-    string $dn,
761
-    array $entry,
762
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
759
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
760
+	string $dn,
761
+	array $entry,
762
+	#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
763 763
 ): bool {}
764 764
 
765 765
 /**
@@ -794,10 +794,10 @@  discard block
 block discarded – undo
794 794
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
795 795
  */
796 796
 function ldap_mod_replace(
797
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
798
-    string $dn,
799
-    array $entry,
800
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
797
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
798
+	string $dn,
799
+	array $entry,
800
+	#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
801 801
 ): bool {}
802 802
 
803 803
 /**
@@ -832,10 +832,10 @@  discard block
 block discarded – undo
832 832
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
833 833
  */
834 834
 function ldap_mod_del(
835
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
836
-    string $dn,
837
-    array $entry,
838
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
835
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
836
+	string $dn,
837
+	array $entry,
838
+	#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
839 839
 ): bool {}
840 840
 
841 841
 /**
@@ -907,11 +907,11 @@  discard block
 block discarded – undo
907 907
  * <b>FALSE</b>. Returns -1 on error.
908 908
  */
909 909
 function ldap_compare(
910
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
911
-    string $dn,
912
-    string $attribute,
913
-    string $value,
914
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
910
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
911
+	string $dn,
912
+	string $attribute,
913
+	string $value,
914
+	#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
915 915
 ): int|bool {}
916 916
 
917 917
 /**
@@ -956,12 +956,12 @@  discard block
 block discarded – undo
956 956
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
957 957
  */
958 958
 function ldap_rename(
959
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
960
-    string $dn,
961
-    string $new_rdn,
962
-    string $new_parent,
963
-    bool $delete_old_rdn,
964
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
959
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
960
+	string $dn,
961
+	string $new_rdn,
962
+	string $new_parent,
963
+	bool $delete_old_rdn,
964
+	#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
965 965
 ): bool {}
966 966
 
967 967
 /**
@@ -1062,10 +1062,10 @@  discard block
 block discarded – undo
1062 1062
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1063 1063
  */
1064 1064
 function ldap_get_option(
1065
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1066
-    int $option,
1067
-    #[Available(from: '5.3', to: '7.4')] &$value,
1068
-    #[Available(from: '8.0')] &$value = null
1065
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1066
+	int $option,
1067
+	#[Available(from: '5.3', to: '7.4')] &$value,
1068
+	#[Available(from: '8.0')] &$value = null
1069 1069
 ): bool {}
1070 1070
 
1071 1071
 /**
@@ -1168,9 +1168,9 @@  discard block
 block discarded – undo
1168 1168
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1169 1169
  */
1170 1170
 function ldap_set_option(
1171
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection|null'], default: 'resource')] $ldap,
1172
-    int $option,
1173
-    $value
1171
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection|null'], default: 'resource')] $ldap,
1172
+	int $option,
1173
+	$value
1174 1174
 ): bool {}
1175 1175
 
1176 1176
 /**
@@ -1182,8 +1182,8 @@  discard block
 block discarded – undo
1182 1182
  */
1183 1183
 #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry|false'], default: 'resource')]
1184 1184
 function ldap_first_reference(
1185
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1186
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
1185
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1186
+	#[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
1187 1187
 ) {}
1188 1188
 
1189 1189
 /**
@@ -1195,8 +1195,8 @@  discard block
 block discarded – undo
1195 1195
  */
1196 1196
 #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry|false'], default: 'resource')]
1197 1197
 function ldap_next_reference(
1198
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1199
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
1198
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1199
+	#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
1200 1200
 ) {}
1201 1201
 
1202 1202
 /**
@@ -1208,9 +1208,9 @@  discard block
 block discarded – undo
1208 1208
  * @return bool
1209 1209
  */
1210 1210
 function ldap_parse_reference(
1211
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1212
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry,
1213
-    &$referrals
1211
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1212
+	#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry,
1213
+	&$referrals
1214 1214
 ): bool {}
1215 1215
 
1216 1216
 /**
@@ -1226,13 +1226,13 @@  discard block
 block discarded – undo
1226 1226
  * @return bool
1227 1227
  */
1228 1228
 function ldap_parse_result(
1229
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1230
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result,
1231
-    &$error_code,
1232
-    &$matched_dn,
1233
-    &$error_message,
1234
-    &$referrals,
1235
-    #[Available(from: '7.3')] &$controls = []
1229
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1230
+	#[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result,
1231
+	&$error_code,
1232
+	&$matched_dn,
1233
+	&$error_message,
1234
+	&$referrals,
1235
+	#[Available(from: '7.3')] &$controls = []
1236 1236
 ): bool {}
1237 1237
 
1238 1238
 /**
@@ -1381,10 +1381,10 @@  discard block
 block discarded – undo
1381 1381
  * @since 5.4
1382 1382
  */
1383 1383
 function ldap_modify_batch(
1384
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1385
-    string $dn,
1386
-    array $modifications_info,
1387
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
1384
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1385
+	string $dn,
1386
+	array $modifications_info,
1387
+	#[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
1388 1388
 ): bool {}
1389 1389
 
1390 1390
 /**
@@ -1394,8 +1394,8 @@  discard block
 block discarded – undo
1394 1394
  * @since 8.0
1395 1395
  */
1396 1396
 function ldap_count_references(
1397
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1398
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
1397
+	#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1398
+	#[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
1399 1399
 ): int {}
1400 1400
 
1401 1401
 define('LDAP_ESCAPE_FILTER', 1);
Please login to merge, or discard this patch.
Spacing   +123 added lines, -123 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
     #[Available(from: '7.1', to: '7.1')] string $new_password = "",
28 28
     #[Available(from: '7.2', to: '7.2')] string $new_password,
29 29
     #[Available(from: '7.3')] string $new_password = "",
30
-    #[Available(from: '7.3')] &$controls = []
31
-): string|bool {}
30
+    #[Available(from: '7.3')] & $controls = []
31
+): string | bool {}
32 32
 
33 33
 /**
34 34
  * Refresh extended operation helper
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
  * @return int|false From RFC: The responseTtl field is the time in seconds which the server chooses to have as the time-to-live field for that entry. It must not be any smaller than that which the client requested, and it may be larger. However, to allow servers to maintain a relatively accurate directory, and to prevent clients from abusing the dynamic extensions, servers are permitted to shorten a client-requested time-to-live value, down to a minimum of 86400 seconds (one day). FALSE will be returned on error.
40 40
  * @since 7.3
41 41
  */
42
-function ldap_exop_refresh(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, string $dn, int $ttl): int|false {}
42
+function ldap_exop_refresh(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, string $dn, int $ttl): int | false {}
43 43
 
44 44
 /**
45 45
  * WHOAMI extended operation helper
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
  * @return string|false The data returned by the server, or FALSE on error.
49 49
  * @since 7.2
50 50
  */
51
-function ldap_exop_whoami(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap): string|false {}
51
+function ldap_exop_whoami(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap): string | false {}
52 52
 
53 53
 /**
54 54
  * Performs an extended operation on the specified link with reqoid the OID of the operation and reqdata the data.
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
  * @since 7.2
64 64
  */
65 65
 #[PhpVersionAware(['8.1' => 'LDAP\Result|bool'], default: 'resource|bool')]
66
-function ldap_exop(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, string $request_oid, ?string $request_data, #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = [], &$response_data, &$response_oid) {}
66
+function ldap_exop(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, string $request_oid, ?string $request_data, #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = [], &$response_data, &$response_oid) {}
67 67
 
68 68
 /**
69 69
  * Parse LDAP extended operation data from result object result
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
  * @since 7.2
77 77
  */
78 78
 function ldap_parse_exop(
79
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
80
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result,
81
-    #[Available(from: '7.2', to: '7.4')] &$response_data,
82
-    #[Available(from: '8.0')] &$response_data = '',
83
-    #[Available(from: '7.2', to: '7.4')] &$response_oid,
84
-    #[Available(from: '8.0')] &$response_oid = ''
79
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
80
+    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default : 'resource')] $result,
81
+    #[Available(from : '7.2', to : '7.4')] & $response_data,
82
+    #[Available(from : '8.0')] & $response_data = '',
83
+    #[Available(from : '7.2', to : '7.4')] & $response_oid,
84
+    #[Available(from : '8.0')] & $response_oid = ''
85 85
 ): bool {}
86 86
 
87 87
 /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
  * If no arguments are specified then the link identifier of the already
124 124
  * opened link will be returned.
125 125
  */
126
-#[PhpVersionAware(['8.1' => 'LDAP\Connection|false'], default: 'resource|false')]
126
+#[PhpVersionAware(['8.1' => 'LDAP\Connection|false'], default : 'resource|false')]
127 127
 function ldap_connect(?string $uri, int $port = 389) {}
128 128
 
129 129
 /**
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
  * @param resource $ldap
133 133
  * @return bool
134 134
  */
135
-function ldap_close(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap): bool {}
135
+function ldap_close(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap): bool {}
136 136
 
137 137
 /**
138 138
  * Bind to LDAP directory
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
  * @param string|null $password [optional]
145 145
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
146 146
  */
147
-function ldap_bind(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, ?string $dn, ?string $password): bool {}
147
+function ldap_bind(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, ?string $dn, ?string $password): bool {}
148 148
 
149 149
 /**
150 150
  * Bind to LDAP directory
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
  * @return resource|false
160 160
  * @since 7.3
161 161
  */
162
-#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default: 'resource|false')]
163
-function ldap_bind_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, ?string $dn, ?string $password, #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []) {}
162
+#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default : 'resource|false')]
163
+function ldap_bind_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, ?string $dn, ?string $password, #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []) {}
164 164
 
165 165
 /**
166 166
  * Bind to LDAP directory using SASL
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
  * @param string $props [optional]
176 176
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
177 177
  */
178
-function ldap_sasl_bind(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, $binddn = null, $password = null, $sasl_mech = null, $sasl_realm = null, $sasl_authc_id = null, $sasl_authz_id = null, $props = null): bool {}
178
+function ldap_sasl_bind(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, $binddn = null, $password = null, $sasl_mech = null, $sasl_realm = null, $sasl_authc_id = null, $sasl_authz_id = null, $props = null): bool {}
179 179
 
180 180
 /**
181 181
  * Unbind from LDAP directory
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
  * </p>
186 186
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
187 187
  */
188
-function ldap_unbind(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap): bool {}
188
+function ldap_unbind(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap): bool {}
189 189
 
190 190
 /**
191 191
  * Read an entry
@@ -249,17 +249,17 @@  discard block
 block discarded – undo
249 249
  * @param array|null $controls [optional] Array of LDAP Controls to send with the request.
250 250
  * @return resource|false a search result identifier or <b>FALSE</b> on error.
251 251
  */
252
-#[PhpVersionAware(['8.1' => 'LDAP\Result|array|false'], default: 'resource|false')]
252
+#[PhpVersionAware(['8.1' => 'LDAP\Result|array|false'], default : 'resource|false')]
253 253
 function ldap_read(
254
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
255
-    array|string $base,
256
-    array|string $filter,
254
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
255
+    array | string $base,
256
+    array | string $filter,
257 257
     array $attributes,
258 258
     int $attributes_only,
259 259
     int $sizelimit = -1,
260 260
     int $timelimit = -1,
261 261
     int $deref,
262
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
262
+    #[Available(from : '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []
263 263
 ) {}
264 264
 
265 265
 /**
@@ -318,17 +318,17 @@  discard block
 block discarded – undo
318 318
  * @param array|null $controls [optional] Array of LDAP Controls to send with the request.
319 319
  * @return resource|false a search result identifier or <b>FALSE</b> on error.
320 320
  */
321
-#[PhpVersionAware(['8.1' => 'LDAP\Result|array|false'], default: 'resource|false')]
321
+#[PhpVersionAware(['8.1' => 'LDAP\Result|array|false'], default : 'resource|false')]
322 322
 function ldap_list(
323
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
324
-    array|string $base,
325
-    array|string $filter,
323
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
324
+    array | string $base,
325
+    array | string $filter,
326 326
     array $attributes,
327 327
     int $attributes_only,
328 328
     int $sizelimit = -1,
329 329
     int $timelimit = -1,
330 330
     int $deref,
331
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
331
+    #[Available(from : '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []
332 332
 ) {}
333 333
 
334 334
 /**
@@ -391,17 +391,17 @@  discard block
 block discarded – undo
391 391
  * @param array|null $controls [optional] Array of LDAP Controls to send with the request.
392 392
  * @return resource|false a search result identifier or <b>FALSE</b> on error.
393 393
  */
394
-#[PhpVersionAware(['8.1' => 'LDAP\Result|array|false'], default: 'resource|false')]
394
+#[PhpVersionAware(['8.1' => 'LDAP\Result|array|false'], default : 'resource|false')]
395 395
 function ldap_search(
396
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
397
-    array|string $base,
398
-    array|string $filter,
396
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
397
+    array | string $base,
398
+    array | string $filter,
399 399
     array $attributes,
400 400
     int $attributes_only,
401 401
     int $sizelimit = -1,
402 402
     int $timelimit = -1,
403 403
     int $deref,
404
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
404
+    #[Available(from : '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []
405 405
 ) {}
406 406
 
407 407
 /**
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
  * @param resource $result
411 411
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
412 412
  */
413
-function ldap_free_result(#[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result): bool {}
413
+function ldap_free_result(#[PhpVersionAware(['8.1' => 'LDAP\Result'], default : 'resource')] $result): bool {}
414 414
 
415 415
 /**
416 416
  * Count the number of entries in a search
@@ -423,10 +423,10 @@  discard block
 block discarded – undo
423 423
  * </p>
424 424
  * @return int|false number of entries in the result or <b>FALSE</b> on error.
425 425
  */
426
-#[PhpVersionAware(["8.0" => "int"], default: "int|false")]
426
+#[PhpVersionAware(["8.0" => "int"], default : "int|false")]
427 427
 function ldap_count_entries(
428
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
429
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
428
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
429
+    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default : 'resource')] $result
430 430
 ) {}
431 431
 
432 432
 /**
@@ -439,10 +439,10 @@  discard block
 block discarded – undo
439 439
  * @return resource|false the result entry identifier for the first entry on success and
440 440
  * <b>FALSE</b> on error.
441 441
  */
442
-#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry|false'], default: 'resource|false')]
442
+#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry|false'], default : 'resource|false')]
443 443
 function ldap_first_entry(
444
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
445
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
444
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
445
+    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default : 'resource')] $result
446 446
 ) {}
447 447
 
448 448
 /**
@@ -456,10 +456,10 @@  discard block
 block discarded – undo
456 456
  * are being read starting with <b>ldap_first_entry</b>. If
457 457
  * there are no more entries in the result then it returns <b>FALSE</b>.
458 458
  */
459
-#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry|false'], default: 'resource|false')]
459
+#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry|false'], default : 'resource|false')]
460 460
 function ldap_next_entry(
461
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
462
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
461
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
462
+    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default : 'resource')] $entry
463 463
 ) {}
464 464
 
465 465
 /**
@@ -489,9 +489,9 @@  discard block
 block discarded – undo
489 489
  * </pre>
490 490
  */
491 491
 function ldap_get_entries(
492
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
493
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
494
-): array|false {}
492
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
493
+    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default : 'resource')] $result
494
+): array | false {}
495 495
 
496 496
 /**
497 497
  * Return first attribute
@@ -504,9 +504,9 @@  discard block
 block discarded – undo
504 504
  * error.
505 505
  */
506 506
 function ldap_first_attribute(
507
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
508
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
509
-): string|false {}
507
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
508
+    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default : 'resource')] $entry
509
+): string | false {}
510 510
 
511 511
 /**
512 512
  * Get the next attribute in result
@@ -519,9 +519,9 @@  discard block
 block discarded – undo
519 519
  * error.
520 520
  */
521 521
 function ldap_next_attribute(
522
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
523
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
524
-): string|false {}
522
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
523
+    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default : 'resource')] $entry
524
+): string | false {}
525 525
 
526 526
 /**
527 527
  * Get attributes from a search result entry
@@ -534,8 +534,8 @@  discard block
 block discarded – undo
534 534
  * on success and <b>FALSE</b> on error.
535 535
  */
536 536
 function ldap_get_attributes(
537
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
538
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
537
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
538
+    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default : 'resource')] $entry
539 539
 ): array {}
540 540
 
541 541
 /**
@@ -560,10 +560,10 @@  discard block
 block discarded – undo
560 560
  * return_value[i] = ith value of attribute
561 561
  */
562 562
 function ldap_get_values(
563
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
564
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry,
563
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
564
+    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default : 'resource')] $entry,
565 565
     string $attribute
566
-): array|false {}
566
+): array | false {}
567 567
 
568 568
 /**
569 569
  * Get all binary values from a result entry
@@ -579,10 +579,10 @@  discard block
 block discarded – undo
579 579
  * in the resultant array.
580 580
  */
581 581
 function ldap_get_values_len(
582
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
583
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry,
582
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
583
+    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default : 'resource')] $entry,
584 584
     string $attribute
585
-): array|false {}
585
+): array | false {}
586 586
 
587 587
 /**
588 588
  * Get the DN of a result entry
@@ -594,9 +594,9 @@  discard block
 block discarded – undo
594 594
  * @return string|false the DN of the result entry and <b>FALSE</b> on error.
595 595
  */
596 596
 function ldap_get_dn(
597
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
598
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
599
-): string|false {}
597
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
598
+    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default : 'resource')] $entry
599
+): string | false {}
600 600
 
601 601
 /**
602 602
  * Splits DN into its component parts
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
  * represents the number of returned values, next elements are numerically
616 616
  * indexed DN components.
617 617
  */
618
-function ldap_explode_dn(string $dn, int $with_attrib): array|false {}
618
+function ldap_explode_dn(string $dn, int $with_attrib): array | false {}
619 619
 
620 620
 /**
621 621
  * Convert DN to User Friendly Naming format
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
  * </p>
626 626
  * @return string|false the user friendly name.
627 627
  */
628
-function ldap_dn2ufn(string $dn): string|false {}
628
+function ldap_dn2ufn(string $dn): string | false {}
629 629
 
630 630
 /**
631 631
  * Add entries to LDAP directory
@@ -651,10 +651,10 @@  discard block
 block discarded – undo
651 651
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
652 652
  */
653 653
 function ldap_add(
654
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
654
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
655 655
     string $dn,
656 656
     array $entry,
657
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
657
+    #[Available(from : '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []
658 658
 ): bool {}
659 659
 
660 660
 /**
@@ -682,8 +682,8 @@  discard block
 block discarded – undo
682 682
  * @return resource|false
683 683
  * @since 7.3
684 684
  */
685
-#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default: 'resource|false')]
686
-function ldap_add_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, string $dn, array $entry, #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []) {}
685
+#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default : 'resource|false')]
686
+function ldap_add_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, string $dn, array $entry, #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []) {}
687 687
 
688 688
 /**
689 689
  * Delete an entry from a directory
@@ -698,9 +698,9 @@  discard block
 block discarded – undo
698 698
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
699 699
  */
700 700
 function ldap_delete(
701
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
701
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
702 702
     string $dn,
703
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
703
+    #[Available(from : '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []
704 704
 ): bool {}
705 705
 
706 706
 /**
@@ -717,8 +717,8 @@  discard block
 block discarded – undo
717 717
  * @return resource|false
718 718
  * @since 7.3
719 719
  */
720
-#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default: 'resource|false')]
721
-function ldap_delete_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, string $dn, #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []) {}
720
+#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default : 'resource|false')]
721
+function ldap_delete_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, string $dn, #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []) {}
722 722
 
723 723
 /**
724 724
  * This function is an alias of: ldap_mod_replace().
@@ -736,10 +736,10 @@  discard block
 block discarded – undo
736 736
  * @since 7.0
737 737
  */
738 738
 function ldap_modify(
739
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
739
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
740 740
     string $dn,
741 741
     array $entry,
742
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
742
+    #[Available(from : '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []
743 743
 ): bool {}
744 744
 
745 745
 /**
@@ -756,10 +756,10 @@  discard block
 block discarded – undo
756 756
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
757 757
  */
758 758
 function ldap_mod_add(
759
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
759
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
760 760
     string $dn,
761 761
     array $entry,
762
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
762
+    #[Available(from : '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []
763 763
 ): bool {}
764 764
 
765 765
 /**
@@ -777,8 +777,8 @@  discard block
 block discarded – undo
777 777
  * @return resource|false
778 778
  * @since 7.3
779 779
  */
780
-#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default: 'resource|false')]
781
-function ldap_mod_add_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, string $dn, array $entry, #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []) {}
780
+#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default : 'resource|false')]
781
+function ldap_mod_add_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, string $dn, array $entry, #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []) {}
782 782
 
783 783
 /**
784 784
  * Replace attribute values with new ones
@@ -794,10 +794,10 @@  discard block
 block discarded – undo
794 794
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
795 795
  */
796 796
 function ldap_mod_replace(
797
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
797
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
798 798
     string $dn,
799 799
     array $entry,
800
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
800
+    #[Available(from : '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []
801 801
 ): bool {}
802 802
 
803 803
 /**
@@ -815,8 +815,8 @@  discard block
 block discarded – undo
815 815
  * @return resource|false
816 816
  * @since 7.3
817 817
  */
818
-#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default: 'resource|false')]
819
-function ldap_mod_replace_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, string $dn, array $entry, #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []) {}
818
+#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default : 'resource|false')]
819
+function ldap_mod_replace_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, string $dn, array $entry, #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []) {}
820 820
 
821 821
 /**
822 822
  * Delete attribute values from current attributes
@@ -832,10 +832,10 @@  discard block
 block discarded – undo
832 832
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
833 833
  */
834 834
 function ldap_mod_del(
835
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
835
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
836 836
     string $dn,
837 837
     array $entry,
838
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
838
+    #[Available(from : '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []
839 839
 ): bool {}
840 840
 
841 841
 /**
@@ -853,8 +853,8 @@  discard block
 block discarded – undo
853 853
  * @return resource|false
854 854
  * @since 7.3
855 855
  */
856
-#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default: 'resource|false')]
857
-function ldap_mod_del_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, string $dn, array $entry, #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []) {}
856
+#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default : 'resource|false')]
857
+function ldap_mod_del_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, string $dn, array $entry, #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []) {}
858 858
 
859 859
 /**
860 860
  * Return the LDAP error number of the last LDAP command
@@ -865,7 +865,7 @@  discard block
 block discarded – undo
865 865
  * @return int Return the LDAP error number of the last LDAP command for this
866 866
  * link.
867 867
  */
868
-function ldap_errno(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap): int {}
868
+function ldap_errno(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap): int {}
869 869
 
870 870
 /**
871 871
  * Convert LDAP error number into string error message
@@ -885,7 +885,7 @@  discard block
 block discarded – undo
885 885
  * </p>
886 886
  * @return string string error message.
887 887
  */
888
-function ldap_error(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap): string {}
888
+function ldap_error(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap): string {}
889 889
 
890 890
 /**
891 891
  * Compare value of attribute found in entry specified with DN
@@ -907,12 +907,12 @@  discard block
 block discarded – undo
907 907
  * <b>FALSE</b>. Returns -1 on error.
908 908
  */
909 909
 function ldap_compare(
910
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
910
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
911 911
     string $dn,
912 912
     string $attribute,
913 913
     string $value,
914
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
915
-): int|bool {}
914
+    #[Available(from : '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []
915
+): int | bool {}
916 916
 
917 917
 /**
918 918
  * Sort LDAP result entries
@@ -930,8 +930,8 @@  discard block
 block discarded – undo
930 930
  * @removed 8.0
931 931
  * @return bool
932 932
  */
933
-#[Deprecated(since: "7.0")]
934
-function ldap_sort(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, $result, string $sortfilter): bool {}
933
+#[Deprecated(since : "7.0")]
934
+function ldap_sort(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, $result, string $sortfilter): bool {}
935 935
 
936 936
 /**
937 937
  * Modify the name of an entry
@@ -956,12 +956,12 @@  discard block
 block discarded – undo
956 956
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
957 957
  */
958 958
 function ldap_rename(
959
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
959
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
960 960
     string $dn,
961 961
     string $new_rdn,
962 962
     string $new_parent,
963 963
     bool $delete_old_rdn,
964
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
964
+    #[Available(from : '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []
965 965
 ): bool {}
966 966
 
967 967
 /**
@@ -988,8 +988,8 @@  discard block
 block discarded – undo
988 988
  * @return resource|false
989 989
  * @since 7.3
990 990
  */
991
-#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default: 'resource|false')]
992
-function ldap_rename_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []) {}
991
+#[PhpVersionAware(['8.1' => 'LDAP\Result|false'], default : 'resource|false')]
992
+function ldap_rename_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, string $dn, string $new_rdn, string $new_parent, bool $delete_old_rdn, #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []) {}
993 993
 
994 994
 /**
995 995
  * Get the current value for given option
@@ -1062,10 +1062,10 @@  discard block
 block discarded – undo
1062 1062
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1063 1063
  */
1064 1064
 function ldap_get_option(
1065
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1065
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
1066 1066
     int $option,
1067
-    #[Available(from: '5.3', to: '7.4')] &$value,
1068
-    #[Available(from: '8.0')] &$value = null
1067
+    #[Available(from : '5.3', to : '7.4')] & $value,
1068
+    #[Available(from : '8.0')] & $value = null
1069 1069
 ): bool {}
1070 1070
 
1071 1071
 /**
@@ -1168,7 +1168,7 @@  discard block
 block discarded – undo
1168 1168
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
1169 1169
  */
1170 1170
 function ldap_set_option(
1171
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection|null'], default: 'resource')] $ldap,
1171
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection|null'], default : 'resource')] $ldap,
1172 1172
     int $option,
1173 1173
     $value
1174 1174
 ): bool {}
@@ -1180,10 +1180,10 @@  discard block
 block discarded – undo
1180 1180
  * @param resource $result
1181 1181
  * @return resource
1182 1182
  */
1183
-#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry|false'], default: 'resource')]
1183
+#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry|false'], default : 'resource')]
1184 1184
 function ldap_first_reference(
1185
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1186
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
1185
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
1186
+    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default : 'resource')] $result
1187 1187
 ) {}
1188 1188
 
1189 1189
 /**
@@ -1193,10 +1193,10 @@  discard block
 block discarded – undo
1193 1193
  * @param resource $entry
1194 1194
  * @return resource
1195 1195
  */
1196
-#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry|false'], default: 'resource')]
1196
+#[PhpVersionAware(['8.1' => 'LDAP\ResultEntry|false'], default : 'resource')]
1197 1197
 function ldap_next_reference(
1198
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1199
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry
1198
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
1199
+    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default : 'resource')] $entry
1200 1200
 ) {}
1201 1201
 
1202 1202
 /**
@@ -1208,8 +1208,8 @@  discard block
 block discarded – undo
1208 1208
  * @return bool
1209 1209
  */
1210 1210
 function ldap_parse_reference(
1211
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1212
-    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default: 'resource')] $entry,
1211
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
1212
+    #[PhpVersionAware(['8.1' => 'LDAP\ResultEntry'], default : 'resource')] $entry,
1213 1213
     &$referrals
1214 1214
 ): bool {}
1215 1215
 
@@ -1226,13 +1226,13 @@  discard block
 block discarded – undo
1226 1226
  * @return bool
1227 1227
  */
1228 1228
 function ldap_parse_result(
1229
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1230
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result,
1229
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
1230
+    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default : 'resource')] $result,
1231 1231
     &$error_code,
1232 1232
     &$matched_dn,
1233 1233
     &$error_message,
1234 1234
     &$referrals,
1235
-    #[Available(from: '7.3')] &$controls = []
1235
+    #[Available(from : '7.3')] & $controls = []
1236 1236
 ): bool {}
1237 1237
 
1238 1238
 /**
@@ -1241,7 +1241,7 @@  discard block
 block discarded – undo
1241 1241
  * @param resource $ldap
1242 1242
  * @return bool
1243 1243
  */
1244
-function ldap_start_tls(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap): bool {}
1244
+function ldap_start_tls(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap): bool {}
1245 1245
 
1246 1246
 /**
1247 1247
  * Set a callback function to do re-binds on referral chasing
@@ -1250,7 +1250,7 @@  discard block
 block discarded – undo
1250 1250
  * @param callable|null $callback
1251 1251
  * @return bool
1252 1252
  */
1253
-function ldap_set_rebind_proc(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, ?callable $callback): bool {}
1253
+function ldap_set_rebind_proc(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, ?callable $callback): bool {}
1254 1254
 
1255 1255
 /**
1256 1256
  * Send LDAP pagination control
@@ -1274,8 +1274,8 @@  discard block
 block discarded – undo
1274 1274
  * @since 5.4
1275 1275
  * @removed 8.0
1276 1276
  */
1277
-#[Deprecated(since: "7.4")]
1278
-function ldap_control_paged_result(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, int $pagesize, $iscritical = false, $cookie = ""): bool {}
1277
+#[Deprecated(since : "7.4")]
1278
+function ldap_control_paged_result(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, int $pagesize, $iscritical = false, $cookie = ""): bool {}
1279 1279
 
1280 1280
 /**
1281 1281
  * Retrieve the LDAP pagination cookie
@@ -1294,8 +1294,8 @@  discard block
 block discarded – undo
1294 1294
  * @since 5.4
1295 1295
  * @removed 8.0
1296 1296
  */
1297
-#[Deprecated(since: "7.4")]
1298
-function ldap_control_paged_result_response(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap, $result, &$cookie = null, &$estimated = null): bool {}
1297
+#[Deprecated(since : "7.4")]
1298
+function ldap_control_paged_result_response(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap, $result, &$cookie = null, &$estimated = null): bool {}
1299 1299
 
1300 1300
 /**
1301 1301
  * Escape a string for use in an LDAP filter or DN
@@ -1381,10 +1381,10 @@  discard block
 block discarded – undo
1381 1381
  * @since 5.4
1382 1382
  */
1383 1383
 function ldap_modify_batch(
1384
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1384
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
1385 1385
     string $dn,
1386 1386
     array $modifications_info,
1387
-    #[Available(from: '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default: "array")] $controls = []
1387
+    #[Available(from : '7.3')] #[PhpVersionAware(["8.0" => "null|array"], default : "array")] $controls = []
1388 1388
 ): bool {}
1389 1389
 
1390 1390
 /**
@@ -1394,8 +1394,8 @@  discard block
 block discarded – undo
1394 1394
  * @since 8.0
1395 1395
  */
1396 1396
 function ldap_count_references(
1397
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
1398
-    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default: 'resource')] $result
1397
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default : 'resource')] $ldap,
1398
+    #[PhpVersionAware(['8.1' => 'LDAP\Result'], default : 'resource')] $result
1399 1399
 ): int {}
1400 1400
 
1401 1401
 define('LDAP_ESCAPE_FILTER', 1);
Please login to merge, or discard this patch.
php-scoper/vendor/jetbrains/phpstorm-stubs/xlswriter/xlswriter.php 2 patches
Indentation   +621 added lines, -621 removed lines patch added patch discarded remove patch
@@ -8,624 +8,624 @@
 block discarded – undo
8 8
 
9 9
 namespace Vtiful\Kernel;
10 10
 
11
-    /**
12
-     * Class Excel
13
-     * @link https://www.php.net/manual/en/class.vtiful-kernel-excel.php
14
-     * @package Vtiful\Kernel
15
-     */
16
-    class Excel
17
-    {
18
-        public const TYPE_STRING = 0x01;
19
-        public const TYPE_INT = 0x02;
20
-        public const TYPE_DOUBLE = 0x04;
21
-        public const TYPE_TIMESTAMP = 0x08;
22
-
23
-        public const SKIP_NONE = 0x00;
24
-        public const SKIP_EMPTY_ROW = 0x01;
25
-        public const SKIP_EMPTY_CELLS = 0x02;
26
-
27
-        public const GRIDLINES_HIDE_ALL = 0;
28
-        public const GRIDLINES_SHOW_SCREEN = 1;
29
-        public const GRIDLINES_SHOW_PRINT = 2;
30
-        public const GRIDLINES_SHOW_ALL = 3;
31
-
32
-        /**
33
-         * Excel constructor.
34
-         *
35
-         * @param array $config
36
-         */
37
-        public function __construct(array $config) {}
38
-
39
-        /**
40
-         * File Name
41
-         *
42
-         * @param string $fileName
43
-         * @param string $sheetName
44
-         *
45
-         * @return Excel
46
-         */
47
-        public function fileName(string $fileName, string $sheetName = 'Sheet1'): self
48
-        {
49
-            return $this;
50
-        }
51
-
52
-        /**
53
-         * Const memory model
54
-         *
55
-         * @param string $fileName
56
-         * @param string $sheetName
57
-         *
58
-         * @return Excel
59
-         */
60
-        public function constMemory(string $fileName, string $sheetName = 'Sheet1'): self
61
-        {
62
-            return $this;
63
-        }
64
-
65
-        /**
66
-         * Add a new worksheet to a workbook.
67
-         *
68
-         * The worksheet name must be a valid Excel worksheet name, i.e. it must be
69
-         * less than 32 character and it cannot contain any of the characters:
70
-         *
71
-         *     / \ [ ] : * ?
72
-         *
73
-         * In addition, you cannot use the same, case insensitive, `$sheetName` for more
74
-         * than one worksheet.
75
-         *
76
-         * @param string|null $sheetName
77
-         *
78
-         * @return Excel
79
-         */
80
-        public function addSheet(?string $sheetName): self
81
-        {
82
-            return $this;
83
-        }
84
-
85
-        /**
86
-         * Checkout worksheet
87
-         *
88
-         * @param string $sheetName
89
-         *
90
-         * @return Excel
91
-         */
92
-        public function checkoutSheet(string $sheetName): self
93
-        {
94
-            return $this;
95
-        }
96
-
97
-        /**
98
-         * Insert data on the first line of the worksheet
99
-         *
100
-         * @param array $header
101
-         *
102
-         * @return Excel
103
-         */
104
-        public function header(array $header): self
105
-        {
106
-            return $this;
107
-        }
108
-
109
-        /**
110
-         * Insert data on the worksheet
111
-         *
112
-         * @param array $data
113
-         *
114
-         * @return Excel
115
-         */
116
-        public function data(array $data): self
117
-        {
118
-            return $this;
119
-        }
120
-
121
-        /**
122
-         * Generate file
123
-         *
124
-         * @return string
125
-         */
126
-        public function output(): string
127
-        {
128
-            return 'FilePath';
129
-        }
130
-
131
-        /**
132
-         * Get file resource
133
-         *
134
-         * @return resource
135
-         */
136
-        public function getHandle() {}
137
-
138
-        /**
139
-         * Auto filter on the worksheet
140
-         *
141
-         * @param string $range
142
-         *
143
-         * @return Excel
144
-         */
145
-        public function autoFilter(string $range): self
146
-        {
147
-            return $this;
148
-        }
149
-
150
-        /**
151
-         * Insert data on the cell
152
-         *
153
-         * @param int $row
154
-         * @param int $column
155
-         * @param int|string|float $data
156
-         * @param string|null $format
157
-         * @param resource|null $formatHandle
158
-         *
159
-         * @return Excel
160
-         */
161
-        public function insertText(int $row, int $column, $data, string $format = null, $formatHandle = null): self
162
-        {
163
-            return $this;
164
-        }
165
-
166
-        /**
167
-         * Insert date on the cell
168
-         *
169
-         * @param int $row
170
-         * @param int $column
171
-         * @param int $timestamp
172
-         * @param string|null $format
173
-         * @param resource|null $formatHandle
174
-         *
175
-         * @return Excel
176
-         */
177
-        public function insertDate(int $row, int $column, int $timestamp, string $format = null, $formatHandle = null): self
178
-        {
179
-            return $this;
180
-        }
181
-
182
-        /**
183
-         * Insert chart on the cell
184
-         *
185
-         * @param int $row
186
-         * @param int $column
187
-         * @param resource $chartResource
188
-         *
189
-         * @return Excel
190
-         */
191
-        public function insertChart(int $row, int $column, $chartResource): self
192
-        {
193
-            return $this;
194
-        }
195
-
196
-        /**
197
-         * Insert url on the cell
198
-         *
199
-         * @param int $row
200
-         * @param int $column
201
-         * @param string $url
202
-         * @param resource|null $formatHandle
203
-         *
204
-         * @return Excel
205
-         */
206
-        public function insertUrl(int $row, int $column, string $url, $formatHandle = null): self
207
-        {
208
-            return $this;
209
-        }
210
-
211
-        /**
212
-         * Insert image on the cell
213
-         *
214
-         * @param int $row
215
-         * @param int $column
216
-         * @param string $imagePath
217
-         * @param float $width
218
-         * @param float $height
219
-         *
220
-         * @return Excel
221
-         */
222
-        public function insertImage(int $row, int $column, string $imagePath, float $width = 1, float $height = 1): self
223
-        {
224
-            return $this;
225
-        }
226
-
227
-        /**
228
-         * Insert Formula on the cell
229
-         *
230
-         * @param int $row
231
-         * @param int $column
232
-         * @param string $formula
233
-         *
234
-         * @return Excel
235
-         */
236
-        public function insertFormula(int $row, int $column, string $formula): self
237
-        {
238
-            return $this;
239
-        }
240
-
241
-        /**
242
-         * Merge cells
243
-         *
244
-         * @param string $range
245
-         * @param string $data
246
-         *
247
-         * @return Excel
248
-         */
249
-        public function MergeCells(string $range, string $data): self
250
-        {
251
-            return $this;
252
-        }
253
-
254
-        /**
255
-         * Set column cells width or format
256
-         *
257
-         * @param string $range
258
-         * @param float $cellWidth
259
-         * @param resource|null $formatHandle
260
-         *
261
-         * @return Excel
262
-         */
263
-        public function setColumn(string $range, float $cellWidth, $formatHandle = null): self
264
-        {
265
-            return $this;
266
-        }
267
-
268
-        /**
269
-         * Set row cells height or format
270
-         *
271
-         * @param string $range
272
-         * @param float $cellHeight
273
-         * @param resource|null $formatHandle
274
-         *
275
-         * @return Excel
276
-         */
277
-        public function setRow(string $range, float $cellHeight, $formatHandle = null): self
278
-        {
279
-            return $this;
280
-        }
281
-
282
-        /**
283
-         * Open xlsx file
284
-         *
285
-         * @param string $fileName
286
-         *
287
-         * @return Excel
288
-         */
289
-        public function openFile(string $fileName): self
290
-        {
291
-            return $this;
292
-        }
293
-
294
-        /**
295
-         * Open sheet
296
-         *
297
-         * default open first sheet
298
-         *
299
-         * @param string|null $sheetName
300
-         * @param int         $skipFlag
301
-         *
302
-         * @return Excel
303
-         */
304
-        public function openSheet(string $sheetName = null, int $skipFlag = 0x00): self
305
-        {
306
-            return $this;
307
-        }
308
-
309
-        /**
310
-         * Set row cell data type
311
-         *
312
-         * @param array $types
313
-         *
314
-         * @return Excel
315
-         */
316
-        public function setType(array $types): self
317
-        {
318
-            return $this;
319
-        }
320
-
321
-        /**
322
-         * Read values from the sheet
323
-         *
324
-         * @return array
325
-         */
326
-        public function getSheetData(): array
327
-        {
328
-            return [];
329
-        }
330
-
331
-        /**
332
-         * Read values from the sheet
333
-         *
334
-         * @return array
335
-         */
336
-        public function nextRow(): array
337
-        {
338
-            return [];
339
-        }
340
-
341
-        /**
342
-         * Next Cell In Callback
343
-         *
344
-         * @param callable $callback function(int $row, int $cell, string $data)
345
-         * @param string|null $sheetName sheet name
346
-         */
347
-        public function nextCellCallback(callable $callback, string $sheetName = null): void {}
348
-
349
-        /**
350
-         * Freeze panes
351
-         *
352
-         * freezePanes(1, 0); // Freeze the first row.
353
-         * freezePanes(0, 1); // Freeze the first column.
354
-         * freezePanes(1, 1); // Freeze first row/column.
355
-         *
356
-         * @param int $row
357
-         * @param int $column
358
-         *
359
-         * @return static
360
-         */
361
-        public function freezePanes(int $row, int $column): self
362
-        {
363
-            return $this;
364
-        }
365
-
366
-        /**
367
-         * Gridline
368
-         *
369
-         * Display or hide screen and print gridlines using one of the values of
370
-         *
371
-         * \Vtiful\Kernel\Excel::GRIDLINES_HIDE_ALL
372
-         * \Vtiful\Kernel\Excel::GRIDLINES_SHOW_ALL
373
-         * \Vtiful\Kernel\Excel::GRIDLINES_SHOW_PRINT
374
-         * \Vtiful\Kernel\Excel::GRIDLINES_SHOW_SCREEN
375
-         *
376
-         * Excel default is that the screen gridlines are on and the printed worksheet is off.
377
-         *
378
-         * @param int $option
379
-         *
380
-         * @return static
381
-         */
382
-        public function gridline(int $option): self
383
-        {
384
-            return $this;
385
-        }
386
-
387
-        /**
388
-         * Worksheet zoom
389
-         *
390
-         * Set the worksheet zoom factor in the range 10 <= zoom <= 400:
391
-         *
392
-         * @param int $scale
393
-         *
394
-         * @return static
395
-         */
396
-        public function zoom(int $scale): self
397
-        {
398
-            return $this;
399
-        }
400
-    }
401
-
402
-    /**
403
-     * Class Format
404
-     *
405
-     * @link https://www.php.net/manual/en/class.vtiful-kernel-format.php
406
-     * @package Vtiful\Kernel
407
-     */
408
-    class Format
409
-    {
410
-        public const UNDERLINE_SINGLE = 0x00;
411
-        public const UNDERLINE_DOUBLE = 0x00;
412
-        public const UNDERLINE_SINGLE_ACCOUNTING = 0x00;
413
-        public const UNDERLINE_DOUBLE_ACCOUNTING = 0x00;
414
-
415
-        public const FORMAT_ALIGN_LEFT = 0x00;
416
-        public const FORMAT_ALIGN_CENTER = 0x00;
417
-        public const FORMAT_ALIGN_RIGHT = 0x00;
418
-        public const FORMAT_ALIGN_FILL = 0x00;
419
-        public const FORMAT_ALIGN_JUSTIFY = 0x00;
420
-        public const FORMAT_ALIGN_CENTER_ACROSS = 0x00;
421
-        public const FORMAT_ALIGN_DISTRIBUTED = 0x00;
422
-        public const FORMAT_ALIGN_VERTICAL_TOP = 0x00;
423
-        public const FORMAT_ALIGN_VERTICAL_BOTTOM = 0x00;
424
-        public const FORMAT_ALIGN_VERTICAL_CENTER = 0x00;
425
-        public const FORMAT_ALIGN_VERTICAL_JUSTIFY = 0x00;
426
-        public const FORMAT_ALIGN_VERTICAL_DISTRIBUTED = 0x00;
427
-
428
-        public const COLOR_BLACK = 0x00;
429
-        public const COLOR_BLUE = 0x00;
430
-        public const COLOR_BROWN = 0x00;
431
-        public const COLOR_CYAN = 0x00;
432
-        public const COLOR_GRAY = 0x00;
433
-        public const COLOR_GREEN = 0x00;
434
-        public const COLOR_LIME = 0x00;
435
-        public const COLOR_MAGENTA = 0x00;
436
-        public const COLOR_NAVY = 0x00;
437
-        public const COLOR_ORANGE = 0x00;
438
-        public const COLOR_PINK = 0x00;
439
-        public const COLOR_PURPLE = 0x00;
440
-        public const COLOR_RED = 0x00;
441
-        public const COLOR_SILVER = 0x00;
442
-        public const COLOR_WHITE = 0x00;
443
-        public const COLOR_YELLOW = 0x00;
444
-
445
-        public const PATTERN_NONE = 0x00;
446
-        public const PATTERN_SOLID = 0x00;
447
-        public const PATTERN_MEDIUM_GRAY = 0x00;
448
-        public const PATTERN_DARK_GRAY = 0x00;
449
-        public const PATTERN_LIGHT_GRAY = 0x00;
450
-        public const PATTERN_DARK_HORIZONTAL = 0x00;
451
-        public const PATTERN_DARK_VERTICAL = 0x00;
452
-        public const PATTERN_DARK_DOWN = 0x00;
453
-        public const PATTERN_DARK_UP = 0x00;
454
-        public const PATTERN_DARK_GRID = 0x00;
455
-        public const PATTERN_DARK_TRELLIS = 0x00;
456
-        public const PATTERN_LIGHT_HORIZONTAL = 0x00;
457
-        public const PATTERN_LIGHT_VERTICAL = 0x00;
458
-        public const PATTERN_LIGHT_DOWN = 0x00;
459
-        public const PATTERN_LIGHT_UP = 0x00;
460
-        public const PATTERN_LIGHT_GRID = 0x00;
461
-        public const PATTERN_LIGHT_TRELLIS = 0x00;
462
-        public const PATTERN_GRAY_125 = 0x00;
463
-        public const PATTERN_GRAY_0625 = 0x00;
464
-
465
-        public const BORDER_THIN = 0x00;
466
-        public const BORDER_MEDIUM = 0x00;
467
-        public const BORDER_DASHED = 0x00;
468
-        public const BORDER_DOTTED = 0x00;
469
-        public const BORDER_THICK = 0x00;
470
-        public const BORDER_DOUBLE = 0x00;
471
-        public const BORDER_HAIR = 0x00;
472
-        public const BORDER_MEDIUM_DASHED = 0x00;
473
-        public const BORDER_DASH_DOT = 0x00;
474
-        public const BORDER_MEDIUM_DASH_DOT = 0x00;
475
-        public const BORDER_DASH_DOT_DOT = 0x00;
476
-        public const BORDER_MEDIUM_DASH_DOT_DOT = 0x00;
477
-        public const BORDER_SLANT_DASH_DOT = 0x00;
478
-
479
-        /**
480
-         * Format constructor.
481
-         *
482
-         * @param resource $fileHandle
483
-         */
484
-        public function __construct($fileHandle) {}
485
-
486
-        /**
487
-         * Wrap
488
-         *
489
-         * @return static
490
-         */
491
-        public function wrap(): self
492
-        {
493
-            return $this;
494
-        }
495
-
496
-        /**
497
-         * Bold
498
-         *
499
-         * @return static
500
-         */
501
-        public function bold(): self
502
-        {
503
-            return $this;
504
-        }
505
-
506
-        /**
507
-         * Italic
508
-         *
509
-         * @return static
510
-         */
511
-        public function italic(): self
512
-        {
513
-            return $this;
514
-        }
515
-
516
-        /**
517
-         * Cells border
518
-         *
519
-         * @param int $style const BORDER_***
520
-         *
521
-         * @return static
522
-         */
523
-        public function border(int $style): self
524
-        {
525
-            return $this;
526
-        }
527
-
528
-        /**
529
-         * Align
530
-         *
531
-         * @param int ...$style const FORMAT_ALIGN_****
532
-         *
533
-         * @return static
534
-         */
535
-        public function align(...$style): self
536
-        {
537
-            return $this;
538
-        }
539
-
540
-        /**
541
-         * Number format
542
-         *
543
-         * @param string $format
544
-         *
545
-         * #,##0
546
-         *
547
-         * @return static
548
-         */
549
-        public function number(string $format): self
550
-        {
551
-            return $this;
552
-        }
553
-
554
-        /**
555
-         * Font color
556
-         *
557
-         * @param int $color const COLOR_****
558
-         *
559
-         * @return static
560
-         */
561
-        public function fontColor(int $color): self
562
-        {
563
-            return $this;
564
-        }
565
-
566
-        /**
567
-         * Font
568
-         *
569
-         * @param string $fontName
570
-         *
571
-         * @return static
572
-         */
573
-        public function font(string $fontName): self
574
-        {
575
-            return $this;
576
-        }
577
-
578
-        /**
579
-         * Font size
580
-         *
581
-         * @param float $size
582
-         *
583
-         * @return static
584
-         */
585
-        public function fontSize(float $size): self
586
-        {
587
-            return $this;
588
-        }
589
-
590
-        /**
591
-         * String strikeout
592
-         *
593
-         * @return Format
594
-         */
595
-        public function strikeout(): self
596
-        {
597
-            return $this;
598
-        }
599
-
600
-        /**
601
-         * Underline
602
-         *
603
-         * @param int $style const UNDERLINE_****
604
-         *
605
-         * @return static
606
-         */
607
-        public function underline(int $style): self
608
-        {
609
-            return $this;
610
-        }
611
-
612
-        /**
613
-         * Cell background
614
-         *
615
-         * @param int $color const COLOR_****
616
-         * @param int $pattern const PATTERN_****
617
-         *
618
-         * @return static
619
-         */
620
-        public function background(int $color, int $pattern = self::PATTERN_SOLID): self
621
-        {
622
-            return $this;
623
-        }
624
-
625
-        /**
626
-         * Format to resource
627
-         *
628
-         * @return resource
629
-         */
630
-        public function toResource() {}
631
-    }
11
+	/**
12
+	 * Class Excel
13
+	 * @link https://www.php.net/manual/en/class.vtiful-kernel-excel.php
14
+	 * @package Vtiful\Kernel
15
+	 */
16
+	class Excel
17
+	{
18
+		public const TYPE_STRING = 0x01;
19
+		public const TYPE_INT = 0x02;
20
+		public const TYPE_DOUBLE = 0x04;
21
+		public const TYPE_TIMESTAMP = 0x08;
22
+
23
+		public const SKIP_NONE = 0x00;
24
+		public const SKIP_EMPTY_ROW = 0x01;
25
+		public const SKIP_EMPTY_CELLS = 0x02;
26
+
27
+		public const GRIDLINES_HIDE_ALL = 0;
28
+		public const GRIDLINES_SHOW_SCREEN = 1;
29
+		public const GRIDLINES_SHOW_PRINT = 2;
30
+		public const GRIDLINES_SHOW_ALL = 3;
31
+
32
+		/**
33
+		 * Excel constructor.
34
+		 *
35
+		 * @param array $config
36
+		 */
37
+		public function __construct(array $config) {}
38
+
39
+		/**
40
+		 * File Name
41
+		 *
42
+		 * @param string $fileName
43
+		 * @param string $sheetName
44
+		 *
45
+		 * @return Excel
46
+		 */
47
+		public function fileName(string $fileName, string $sheetName = 'Sheet1'): self
48
+		{
49
+			return $this;
50
+		}
51
+
52
+		/**
53
+		 * Const memory model
54
+		 *
55
+		 * @param string $fileName
56
+		 * @param string $sheetName
57
+		 *
58
+		 * @return Excel
59
+		 */
60
+		public function constMemory(string $fileName, string $sheetName = 'Sheet1'): self
61
+		{
62
+			return $this;
63
+		}
64
+
65
+		/**
66
+		 * Add a new worksheet to a workbook.
67
+		 *
68
+		 * The worksheet name must be a valid Excel worksheet name, i.e. it must be
69
+		 * less than 32 character and it cannot contain any of the characters:
70
+		 *
71
+		 *     / \ [ ] : * ?
72
+		 *
73
+		 * In addition, you cannot use the same, case insensitive, `$sheetName` for more
74
+		 * than one worksheet.
75
+		 *
76
+		 * @param string|null $sheetName
77
+		 *
78
+		 * @return Excel
79
+		 */
80
+		public function addSheet(?string $sheetName): self
81
+		{
82
+			return $this;
83
+		}
84
+
85
+		/**
86
+		 * Checkout worksheet
87
+		 *
88
+		 * @param string $sheetName
89
+		 *
90
+		 * @return Excel
91
+		 */
92
+		public function checkoutSheet(string $sheetName): self
93
+		{
94
+			return $this;
95
+		}
96
+
97
+		/**
98
+		 * Insert data on the first line of the worksheet
99
+		 *
100
+		 * @param array $header
101
+		 *
102
+		 * @return Excel
103
+		 */
104
+		public function header(array $header): self
105
+		{
106
+			return $this;
107
+		}
108
+
109
+		/**
110
+		 * Insert data on the worksheet
111
+		 *
112
+		 * @param array $data
113
+		 *
114
+		 * @return Excel
115
+		 */
116
+		public function data(array $data): self
117
+		{
118
+			return $this;
119
+		}
120
+
121
+		/**
122
+		 * Generate file
123
+		 *
124
+		 * @return string
125
+		 */
126
+		public function output(): string
127
+		{
128
+			return 'FilePath';
129
+		}
130
+
131
+		/**
132
+		 * Get file resource
133
+		 *
134
+		 * @return resource
135
+		 */
136
+		public function getHandle() {}
137
+
138
+		/**
139
+		 * Auto filter on the worksheet
140
+		 *
141
+		 * @param string $range
142
+		 *
143
+		 * @return Excel
144
+		 */
145
+		public function autoFilter(string $range): self
146
+		{
147
+			return $this;
148
+		}
149
+
150
+		/**
151
+		 * Insert data on the cell
152
+		 *
153
+		 * @param int $row
154
+		 * @param int $column
155
+		 * @param int|string|float $data
156
+		 * @param string|null $format
157
+		 * @param resource|null $formatHandle
158
+		 *
159
+		 * @return Excel
160
+		 */
161
+		public function insertText(int $row, int $column, $data, string $format = null, $formatHandle = null): self
162
+		{
163
+			return $this;
164
+		}
165
+
166
+		/**
167
+		 * Insert date on the cell
168
+		 *
169
+		 * @param int $row
170
+		 * @param int $column
171
+		 * @param int $timestamp
172
+		 * @param string|null $format
173
+		 * @param resource|null $formatHandle
174
+		 *
175
+		 * @return Excel
176
+		 */
177
+		public function insertDate(int $row, int $column, int $timestamp, string $format = null, $formatHandle = null): self
178
+		{
179
+			return $this;
180
+		}
181
+
182
+		/**
183
+		 * Insert chart on the cell
184
+		 *
185
+		 * @param int $row
186
+		 * @param int $column
187
+		 * @param resource $chartResource
188
+		 *
189
+		 * @return Excel
190
+		 */
191
+		public function insertChart(int $row, int $column, $chartResource): self
192
+		{
193
+			return $this;
194
+		}
195
+
196
+		/**
197
+		 * Insert url on the cell
198
+		 *
199
+		 * @param int $row
200
+		 * @param int $column
201
+		 * @param string $url
202
+		 * @param resource|null $formatHandle
203
+		 *
204
+		 * @return Excel
205
+		 */
206
+		public function insertUrl(int $row, int $column, string $url, $formatHandle = null): self
207
+		{
208
+			return $this;
209
+		}
210
+
211
+		/**
212
+		 * Insert image on the cell
213
+		 *
214
+		 * @param int $row
215
+		 * @param int $column
216
+		 * @param string $imagePath
217
+		 * @param float $width
218
+		 * @param float $height
219
+		 *
220
+		 * @return Excel
221
+		 */
222
+		public function insertImage(int $row, int $column, string $imagePath, float $width = 1, float $height = 1): self
223
+		{
224
+			return $this;
225
+		}
226
+
227
+		/**
228
+		 * Insert Formula on the cell
229
+		 *
230
+		 * @param int $row
231
+		 * @param int $column
232
+		 * @param string $formula
233
+		 *
234
+		 * @return Excel
235
+		 */
236
+		public function insertFormula(int $row, int $column, string $formula): self
237
+		{
238
+			return $this;
239
+		}
240
+
241
+		/**
242
+		 * Merge cells
243
+		 *
244
+		 * @param string $range
245
+		 * @param string $data
246
+		 *
247
+		 * @return Excel
248
+		 */
249
+		public function MergeCells(string $range, string $data): self
250
+		{
251
+			return $this;
252
+		}
253
+
254
+		/**
255
+		 * Set column cells width or format
256
+		 *
257
+		 * @param string $range
258
+		 * @param float $cellWidth
259
+		 * @param resource|null $formatHandle
260
+		 *
261
+		 * @return Excel
262
+		 */
263
+		public function setColumn(string $range, float $cellWidth, $formatHandle = null): self
264
+		{
265
+			return $this;
266
+		}
267
+
268
+		/**
269
+		 * Set row cells height or format
270
+		 *
271
+		 * @param string $range
272
+		 * @param float $cellHeight
273
+		 * @param resource|null $formatHandle
274
+		 *
275
+		 * @return Excel
276
+		 */
277
+		public function setRow(string $range, float $cellHeight, $formatHandle = null): self
278
+		{
279
+			return $this;
280
+		}
281
+
282
+		/**
283
+		 * Open xlsx file
284
+		 *
285
+		 * @param string $fileName
286
+		 *
287
+		 * @return Excel
288
+		 */
289
+		public function openFile(string $fileName): self
290
+		{
291
+			return $this;
292
+		}
293
+
294
+		/**
295
+		 * Open sheet
296
+		 *
297
+		 * default open first sheet
298
+		 *
299
+		 * @param string|null $sheetName
300
+		 * @param int         $skipFlag
301
+		 *
302
+		 * @return Excel
303
+		 */
304
+		public function openSheet(string $sheetName = null, int $skipFlag = 0x00): self
305
+		{
306
+			return $this;
307
+		}
308
+
309
+		/**
310
+		 * Set row cell data type
311
+		 *
312
+		 * @param array $types
313
+		 *
314
+		 * @return Excel
315
+		 */
316
+		public function setType(array $types): self
317
+		{
318
+			return $this;
319
+		}
320
+
321
+		/**
322
+		 * Read values from the sheet
323
+		 *
324
+		 * @return array
325
+		 */
326
+		public function getSheetData(): array
327
+		{
328
+			return [];
329
+		}
330
+
331
+		/**
332
+		 * Read values from the sheet
333
+		 *
334
+		 * @return array
335
+		 */
336
+		public function nextRow(): array
337
+		{
338
+			return [];
339
+		}
340
+
341
+		/**
342
+		 * Next Cell In Callback
343
+		 *
344
+		 * @param callable $callback function(int $row, int $cell, string $data)
345
+		 * @param string|null $sheetName sheet name
346
+		 */
347
+		public function nextCellCallback(callable $callback, string $sheetName = null): void {}
348
+
349
+		/**
350
+		 * Freeze panes
351
+		 *
352
+		 * freezePanes(1, 0); // Freeze the first row.
353
+		 * freezePanes(0, 1); // Freeze the first column.
354
+		 * freezePanes(1, 1); // Freeze first row/column.
355
+		 *
356
+		 * @param int $row
357
+		 * @param int $column
358
+		 *
359
+		 * @return static
360
+		 */
361
+		public function freezePanes(int $row, int $column): self
362
+		{
363
+			return $this;
364
+		}
365
+
366
+		/**
367
+		 * Gridline
368
+		 *
369
+		 * Display or hide screen and print gridlines using one of the values of
370
+		 *
371
+		 * \Vtiful\Kernel\Excel::GRIDLINES_HIDE_ALL
372
+		 * \Vtiful\Kernel\Excel::GRIDLINES_SHOW_ALL
373
+		 * \Vtiful\Kernel\Excel::GRIDLINES_SHOW_PRINT
374
+		 * \Vtiful\Kernel\Excel::GRIDLINES_SHOW_SCREEN
375
+		 *
376
+		 * Excel default is that the screen gridlines are on and the printed worksheet is off.
377
+		 *
378
+		 * @param int $option
379
+		 *
380
+		 * @return static
381
+		 */
382
+		public function gridline(int $option): self
383
+		{
384
+			return $this;
385
+		}
386
+
387
+		/**
388
+		 * Worksheet zoom
389
+		 *
390
+		 * Set the worksheet zoom factor in the range 10 <= zoom <= 400:
391
+		 *
392
+		 * @param int $scale
393
+		 *
394
+		 * @return static
395
+		 */
396
+		public function zoom(int $scale): self
397
+		{
398
+			return $this;
399
+		}
400
+	}
401
+
402
+	/**
403
+	 * Class Format
404
+	 *
405
+	 * @link https://www.php.net/manual/en/class.vtiful-kernel-format.php
406
+	 * @package Vtiful\Kernel
407
+	 */
408
+	class Format
409
+	{
410
+		public const UNDERLINE_SINGLE = 0x00;
411
+		public const UNDERLINE_DOUBLE = 0x00;
412
+		public const UNDERLINE_SINGLE_ACCOUNTING = 0x00;
413
+		public const UNDERLINE_DOUBLE_ACCOUNTING = 0x00;
414
+
415
+		public const FORMAT_ALIGN_LEFT = 0x00;
416
+		public const FORMAT_ALIGN_CENTER = 0x00;
417
+		public const FORMAT_ALIGN_RIGHT = 0x00;
418
+		public const FORMAT_ALIGN_FILL = 0x00;
419
+		public const FORMAT_ALIGN_JUSTIFY = 0x00;
420
+		public const FORMAT_ALIGN_CENTER_ACROSS = 0x00;
421
+		public const FORMAT_ALIGN_DISTRIBUTED = 0x00;
422
+		public const FORMAT_ALIGN_VERTICAL_TOP = 0x00;
423
+		public const FORMAT_ALIGN_VERTICAL_BOTTOM = 0x00;
424
+		public const FORMAT_ALIGN_VERTICAL_CENTER = 0x00;
425
+		public const FORMAT_ALIGN_VERTICAL_JUSTIFY = 0x00;
426
+		public const FORMAT_ALIGN_VERTICAL_DISTRIBUTED = 0x00;
427
+
428
+		public const COLOR_BLACK = 0x00;
429
+		public const COLOR_BLUE = 0x00;
430
+		public const COLOR_BROWN = 0x00;
431
+		public const COLOR_CYAN = 0x00;
432
+		public const COLOR_GRAY = 0x00;
433
+		public const COLOR_GREEN = 0x00;
434
+		public const COLOR_LIME = 0x00;
435
+		public const COLOR_MAGENTA = 0x00;
436
+		public const COLOR_NAVY = 0x00;
437
+		public const COLOR_ORANGE = 0x00;
438
+		public const COLOR_PINK = 0x00;
439
+		public const COLOR_PURPLE = 0x00;
440
+		public const COLOR_RED = 0x00;
441
+		public const COLOR_SILVER = 0x00;
442
+		public const COLOR_WHITE = 0x00;
443
+		public const COLOR_YELLOW = 0x00;
444
+
445
+		public const PATTERN_NONE = 0x00;
446
+		public const PATTERN_SOLID = 0x00;
447
+		public const PATTERN_MEDIUM_GRAY = 0x00;
448
+		public const PATTERN_DARK_GRAY = 0x00;
449
+		public const PATTERN_LIGHT_GRAY = 0x00;
450
+		public const PATTERN_DARK_HORIZONTAL = 0x00;
451
+		public const PATTERN_DARK_VERTICAL = 0x00;
452
+		public const PATTERN_DARK_DOWN = 0x00;
453
+		public const PATTERN_DARK_UP = 0x00;
454
+		public const PATTERN_DARK_GRID = 0x00;
455
+		public const PATTERN_DARK_TRELLIS = 0x00;
456
+		public const PATTERN_LIGHT_HORIZONTAL = 0x00;
457
+		public const PATTERN_LIGHT_VERTICAL = 0x00;
458
+		public const PATTERN_LIGHT_DOWN = 0x00;
459
+		public const PATTERN_LIGHT_UP = 0x00;
460
+		public const PATTERN_LIGHT_GRID = 0x00;
461
+		public const PATTERN_LIGHT_TRELLIS = 0x00;
462
+		public const PATTERN_GRAY_125 = 0x00;
463
+		public const PATTERN_GRAY_0625 = 0x00;
464
+
465
+		public const BORDER_THIN = 0x00;
466
+		public const BORDER_MEDIUM = 0x00;
467
+		public const BORDER_DASHED = 0x00;
468
+		public const BORDER_DOTTED = 0x00;
469
+		public const BORDER_THICK = 0x00;
470
+		public const BORDER_DOUBLE = 0x00;
471
+		public const BORDER_HAIR = 0x00;
472
+		public const BORDER_MEDIUM_DASHED = 0x00;
473
+		public const BORDER_DASH_DOT = 0x00;
474
+		public const BORDER_MEDIUM_DASH_DOT = 0x00;
475
+		public const BORDER_DASH_DOT_DOT = 0x00;
476
+		public const BORDER_MEDIUM_DASH_DOT_DOT = 0x00;
477
+		public const BORDER_SLANT_DASH_DOT = 0x00;
478
+
479
+		/**
480
+		 * Format constructor.
481
+		 *
482
+		 * @param resource $fileHandle
483
+		 */
484
+		public function __construct($fileHandle) {}
485
+
486
+		/**
487
+		 * Wrap
488
+		 *
489
+		 * @return static
490
+		 */
491
+		public function wrap(): self
492
+		{
493
+			return $this;
494
+		}
495
+
496
+		/**
497
+		 * Bold
498
+		 *
499
+		 * @return static
500
+		 */
501
+		public function bold(): self
502
+		{
503
+			return $this;
504
+		}
505
+
506
+		/**
507
+		 * Italic
508
+		 *
509
+		 * @return static
510
+		 */
511
+		public function italic(): self
512
+		{
513
+			return $this;
514
+		}
515
+
516
+		/**
517
+		 * Cells border
518
+		 *
519
+		 * @param int $style const BORDER_***
520
+		 *
521
+		 * @return static
522
+		 */
523
+		public function border(int $style): self
524
+		{
525
+			return $this;
526
+		}
527
+
528
+		/**
529
+		 * Align
530
+		 *
531
+		 * @param int ...$style const FORMAT_ALIGN_****
532
+		 *
533
+		 * @return static
534
+		 */
535
+		public function align(...$style): self
536
+		{
537
+			return $this;
538
+		}
539
+
540
+		/**
541
+		 * Number format
542
+		 *
543
+		 * @param string $format
544
+		 *
545
+		 * #,##0
546
+		 *
547
+		 * @return static
548
+		 */
549
+		public function number(string $format): self
550
+		{
551
+			return $this;
552
+		}
553
+
554
+		/**
555
+		 * Font color
556
+		 *
557
+		 * @param int $color const COLOR_****
558
+		 *
559
+		 * @return static
560
+		 */
561
+		public function fontColor(int $color): self
562
+		{
563
+			return $this;
564
+		}
565
+
566
+		/**
567
+		 * Font
568
+		 *
569
+		 * @param string $fontName
570
+		 *
571
+		 * @return static
572
+		 */
573
+		public function font(string $fontName): self
574
+		{
575
+			return $this;
576
+		}
577
+
578
+		/**
579
+		 * Font size
580
+		 *
581
+		 * @param float $size
582
+		 *
583
+		 * @return static
584
+		 */
585
+		public function fontSize(float $size): self
586
+		{
587
+			return $this;
588
+		}
589
+
590
+		/**
591
+		 * String strikeout
592
+		 *
593
+		 * @return Format
594
+		 */
595
+		public function strikeout(): self
596
+		{
597
+			return $this;
598
+		}
599
+
600
+		/**
601
+		 * Underline
602
+		 *
603
+		 * @param int $style const UNDERLINE_****
604
+		 *
605
+		 * @return static
606
+		 */
607
+		public function underline(int $style): self
608
+		{
609
+			return $this;
610
+		}
611
+
612
+		/**
613
+		 * Cell background
614
+		 *
615
+		 * @param int $color const COLOR_****
616
+		 * @param int $pattern const PATTERN_****
617
+		 *
618
+		 * @return static
619
+		 */
620
+		public function background(int $color, int $pattern = self::PATTERN_SOLID): self
621
+		{
622
+			return $this;
623
+		}
624
+
625
+		/**
626
+		 * Format to resource
627
+		 *
628
+		 * @return resource
629
+		 */
630
+		public function toResource() {}
631
+	}
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
13 13
      * @link https://www.php.net/manual/en/class.vtiful-kernel-excel.php
14 14
      * @package Vtiful\Kernel
15 15
      */
16
-    class Excel
17
-    {
16
+    class Excel {
18 17
         public const TYPE_STRING = 0x01;
19 18
         public const TYPE_INT = 0x02;
20 19
         public const TYPE_DOUBLE = 0x04;
@@ -405,8 +404,7 @@  discard block
 block discarded – undo
405 404
      * @link https://www.php.net/manual/en/class.vtiful-kernel-format.php
406 405
      * @package Vtiful\Kernel
407 406
      */
408
-    class Format
409
-    {
407
+    class Format {
410 408
         public const UNDERLINE_SINGLE = 0x00;
411 409
         public const UNDERLINE_DOUBLE = 0x00;
412 410
         public const UNDERLINE_SINGLE_ACCOUNTING = 0x00;
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/gmp/gmp.php 3 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -798,21 +798,21 @@
 block discarded – undo
798 798
 
799 799
 class GMP implements Serializable
800 800
 {
801
-    /**
802
-     * String representation of object
803
-     * @link https://php.net/manual/en/serializable.serialize.php
804
-     * @return string the string representation of the object or null
805
-     */
806
-    public function serialize() {}
807
-
808
-    /**
809
-     * Constructs the object
810
-     * @link https://php.net/manual/en/serializable.unserialize.php
811
-     * @param string $serialized <p>
812
-     * The string representation of the object.
813
-     * </p>
814
-     * @return void
815
-     */
816
-    public function unserialize($serialized) {}
801
+	/**
802
+	 * String representation of object
803
+	 * @link https://php.net/manual/en/serializable.serialize.php
804
+	 * @return string the string representation of the object or null
805
+	 */
806
+	public function serialize() {}
807
+
808
+	/**
809
+	 * Constructs the object
810
+	 * @link https://php.net/manual/en/serializable.unserialize.php
811
+	 * @param string $serialized <p>
812
+	 * The string representation of the object.
813
+	 * </p>
814
+	 * @return void
815
+	 */
816
+	public function unserialize($serialized) {}
817 817
 }
818 818
 // End of gmp v.
Please login to merge, or discard this patch.
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
  * @return resource|GMP A GMP number resource.
25 25
  */
26 26
 #[Pure]
27
-function gmp_init(string|int $num, int $base = 0): GMP {}
27
+function gmp_init(string | int $num, int $base = 0): GMP {}
28 28
 
29 29
 /**
30 30
  * Convert GMP number to integer
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
  * @return int An integer value of <i>gmpnumber</i>.
36 36
  */
37 37
 #[Pure]
38
-function gmp_intval(GMP|string|int $num): int {}
38
+function gmp_intval(GMP | string | int $num): int {}
39 39
 
40 40
 /**
41 41
  * Sets the RNG seed
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
  * @return void|null|false Returns NULL on success.
47 47
  * @since 7.0
48 48
  */
49
-function gmp_random_seed(GMP|string|int $seed): void {}
49
+function gmp_random_seed(GMP | string | int $seed): void {}
50 50
 /**
51 51
  * Convert GMP number to string
52 52
  * @link https://php.net/manual/en/function.gmp-strval.php
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
  * @return string The number, as a string.
63 63
  */
64 64
 #[Pure]
65
-function gmp_strval(GMP|string|int $num, int $base = 10): string {}
65
+function gmp_strval(GMP | string | int $num, int $base = 10): string {}
66 66
 
67 67
 /**
68 68
  * Add numbers
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
  * @return resource|GMP A GMP number representing the sum of the arguments.
81 81
  */
82 82
 #[Pure]
83
-function gmp_add(GMP|string|int $num1, GMP|string|int $num2): GMP {}
83
+function gmp_add(GMP | string | int $num1, GMP | string | int $num2): GMP {}
84 84
 
85 85
 /**
86 86
  * Subtract numbers
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
  * @return resource|GMP A GMP number resource.
99 99
  */
100 100
 #[Pure]
101
-function gmp_sub(GMP|string|int $num1, GMP|string|int $num2): GMP {}
101
+function gmp_sub(GMP | string | int $num1, GMP | string | int $num2): GMP {}
102 102
 
103 103
 /**
104 104
  * Multiply numbers
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
  * @return resource|GMP A GMP number resource.
117 117
  */
118 118
 #[Pure]
119
-function gmp_mul(GMP|string|int $num1, GMP|string|int $num2): GMP {}
119
+function gmp_mul(GMP | string | int $num1, GMP | string | int $num2): GMP {}
120 120
 
121 121
 /**
122 122
  * Divide numbers and get quotient and remainder
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
  * (the remainder of the division).
142 142
  */
143 143
 #[Pure]
144
-function gmp_div_qr(GMP|string|int $num1, GMP|string|int $num2, int $rounding_mode = GMP_ROUND_ZERO): array {}
144
+function gmp_div_qr(GMP | string | int $num1, GMP | string | int $num2, int $rounding_mode = GMP_ROUND_ZERO): array {}
145 145
 
146 146
 /**
147 147
  * Divide numbers
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
  * @return resource|GMP A GMP number resource.
166 166
  */
167 167
 #[Pure]
168
-function gmp_div_q(GMP|string|int $num1, GMP|string|int $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
168
+function gmp_div_q(GMP | string | int $num1, GMP | string | int $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
169 169
 
170 170
 /**
171 171
  * Remainder of the division of numbers
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
  * @return resource|GMP The remainder, as a GMP number.
188 188
  */
189 189
 #[Pure]
190
-function gmp_div_r(GMP|string|int $num1, GMP|string|int $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
190
+function gmp_div_r(GMP | string | int $num1, GMP | string | int $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
191 191
 
192 192
 /**
193 193
  * Divide numbers
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
  * @return resource|GMP A GMP number resource.
212 212
  */
213 213
 #[Pure]
214
-function gmp_div(GMP|string|int $num1, GMP|string|int $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
214
+function gmp_div(GMP | string | int $num1, GMP | string | int $num2, int $rounding_mode = GMP_ROUND_ZERO): GMP {}
215 215
 
216 216
 /**
217 217
  * Modulo operation
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
  * @return resource|GMP A GMP number resource.
227 227
  */
228 228
 #[Pure]
229
-function gmp_mod(GMP|string|int $num1, GMP|string|int $num2): GMP {}
229
+function gmp_mod(GMP | string | int $num1, GMP | string | int $num2): GMP {}
230 230
 
231 231
 /**
232 232
  * Exact division of numbers
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
  * @return resource|GMP A GMP number resource.
245 245
  */
246 246
 #[Pure]
247
-function gmp_divexact(GMP|string|int $num1, GMP|string|int $num2): GMP {}
247
+function gmp_divexact(GMP | string | int $num1, GMP | string | int $num2): GMP {}
248 248
 
249 249
 /**
250 250
  * Negate number
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
  * @return resource|GMP -<i>a</i>, as a GMP number.
255 255
  */
256 256
 #[Pure]
257
-function gmp_neg(GMP|string|int $num): GMP {}
257
+function gmp_neg(GMP | string | int $num): GMP {}
258 258
 
259 259
 /**
260 260
  * Absolute value
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
  * @return resource|GMP the absolute value of <i>a</i>, as a GMP number.
265 265
  */
266 266
 #[Pure]
267
-function gmp_abs(GMP|string|int $num): GMP {}
267
+function gmp_abs(GMP | string | int $num): GMP {}
268 268
 
269 269
 /**
270 270
  * Factorial
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
  * @return resource|GMP A GMP number resource.
278 278
  */
279 279
 #[Pure]
280
-function gmp_fact(GMP|string|int $num): GMP {}
280
+function gmp_fact(GMP | string | int $num): GMP {}
281 281
 
282 282
 /**
283 283
  * Calculate square root
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
  * @return resource|GMP The integer portion of the square root, as a GMP number.
288 288
  */
289 289
 #[Pure]
290
-function gmp_sqrt(GMP|string|int $num): GMP {}
290
+function gmp_sqrt(GMP | string | int $num): GMP {}
291 291
 
292 292
 /**
293 293
  * Square root with remainder
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
  * first element squared).
304 304
  */
305 305
 #[Pure]
306
-function gmp_sqrtrem(GMP|string|int $num): array {}
306
+function gmp_sqrtrem(GMP | string | int $num): array {}
307 307
 
308 308
 /**
309 309
  * Raise number into power
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
  * 0^0 yields 1.
321 321
  */
322 322
 #[Pure]
323
-function gmp_pow(GMP|string|int $num, int $exponent): GMP {}
323
+function gmp_pow(GMP | string | int $num, int $exponent): GMP {}
324 324
 
325 325
 /**
326 326
  * Raise number into power with modulo
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
  * @return resource|GMP The new (raised) number, as a GMP number.
344 344
  */
345 345
 #[Pure]
346
-function gmp_powm(GMP|string|int $num, GMP|string|int $exponent, GMP|string|int $modulus): GMP {}
346
+function gmp_powm(GMP | string | int $num, GMP | string | int $exponent, GMP | string | int $modulus): GMP {}
347 347
 
348 348
 /**
349 349
  * Perfect square check
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
  * <b>FALSE</b> otherwise.
358 358
  */
359 359
 #[Pure]
360
-function gmp_perfect_square(GMP|string|int $num): bool {}
360
+function gmp_perfect_square(GMP | string | int $num): bool {}
361 361
 
362 362
 /**
363 363
  * Check if number is "probably prime"
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
  * then <i>a</i> is surely prime.
382 382
  */
383 383
 #[Pure]
384
-function gmp_prob_prime(GMP|string|int $num, int $repetitions = 10): int {}
384
+function gmp_prob_prime(GMP | string | int $num, int $repetitions = 10): int {}
385 385
 
386 386
 /**
387 387
  * Random number
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
  * @param GMP|string|int $max <p>A GMP number representing the upper bound for the random number</p>
401 401
  * @return GMP A random GMP number.
402 402
  */
403
-function gmp_random_range(GMP|string|int $min, GMP|string|int $max): GMP {}
403
+function gmp_random_range(GMP | string | int $min, GMP | string | int $max): GMP {}
404 404
 
405 405
 /**
406 406
  * Calculate GCD
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
  * <i>a</i> and <i>b</i>.
414 414
  */
415 415
 #[Pure]
416
-function gmp_gcd(GMP|string|int $num1, GMP|string|int $num2): GMP {}
416
+function gmp_gcd(GMP | string | int $num1, GMP | string | int $num2): GMP {}
417 417
 
418 418
 /**
419 419
  * Calculate GCD and multipliers
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
  * @return array An array of GMP numbers.
426 426
  */
427 427
 #[Pure]
428
-function gmp_gcdext(GMP|string|int $num1, GMP|string|int $num2): array {}
428
+function gmp_gcdext(GMP | string | int $num1, GMP | string | int $num2): array {}
429 429
 
430 430
 /**
431 431
  * Inverse by modulo
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
  * @return resource|GMP|false A GMP number on success or <b>FALSE</b> if an inverse does not exist.
438 438
  */
439 439
 #[Pure]
440
-function gmp_invert(GMP|string|int $num1, GMP|string|int $num2): GMP|false {}
440
+function gmp_invert(GMP | string | int $num1, GMP | string | int $num2): GMP | false {}
441 441
 
442 442
 /**
443 443
  * Jacobi symbol
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
  * @return int A GMP number resource.
453 453
  */
454 454
 #[Pure]
455
-function gmp_jacobi(GMP|string|int $num1, GMP|string|int $num2): int {}
455
+function gmp_jacobi(GMP | string | int $num1, GMP | string | int $num2): int {}
456 456
 
457 457
 /**
458 458
  * Legendre symbol
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
  * @return int A GMP number resource.
468 468
  */
469 469
 #[Pure]
470
-function gmp_legendre(GMP|string|int $num1, GMP|string|int $num2): int {}
470
+function gmp_legendre(GMP | string | int $num1, GMP | string | int $num2): int {}
471 471
 
472 472
 /**
473 473
  * Compare numbers
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
  * b.
482 482
  */
483 483
 #[Pure]
484
-function gmp_cmp(GMP|string|int $num1, GMP|string|int $num2): int {}
484
+function gmp_cmp(GMP | string | int $num1, GMP | string | int $num2): int {}
485 485
 
486 486
 /**
487 487
  * Sign of number
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
  * and 0 if <i>a</i> is zero.
494 494
  */
495 495
 #[Pure]
496
-function gmp_sign(GMP|string|int $num): int {}
496
+function gmp_sign(GMP | string | int $num): int {}
497 497
 
498 498
 /**
499 499
  * Random number
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
  * @return resource|GMP A GMP number representing the bitwise AND comparison.
522 522
  */
523 523
 #[Pure]
524
-function gmp_and(GMP|string|int $num1, GMP|string|int $num2): GMP {}
524
+function gmp_and(GMP | string | int $num1, GMP | string | int $num2): GMP {}
525 525
 
526 526
 /**
527 527
  * Bitwise OR
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
  * @return resource|GMP A GMP number resource.
534 534
  */
535 535
 #[Pure]
536
-function gmp_or(GMP|string|int $num1, GMP|string|int $num2): GMP {}
536
+function gmp_or(GMP | string | int $num1, GMP | string | int $num2): GMP {}
537 537
 
538 538
 /**
539 539
  * Calculates one's complement
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
  * @return resource|GMP the one's complement of <i>a</i>, as a GMP number.
544 544
  */
545 545
 #[Pure]
546
-function gmp_com(GMP|string|int $num): GMP {}
546
+function gmp_com(GMP | string | int $num): GMP {}
547 547
 
548 548
 /**
549 549
  * Bitwise XOR
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
  * @return resource|GMP A GMP number resource.
556 556
  */
557 557
 #[Pure]
558
-function gmp_xor(GMP|string|int $num1, GMP|string|int $num2): GMP {}
558
+function gmp_xor(GMP | string | int $num1, GMP | string | int $num2): GMP {}
559 559
 
560 560
 /**
561 561
  * Set bit
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
  * index starts from 0.
603 603
  */
604 604
 #[Pure]
605
-function gmp_scan0(GMP|string|int $num1, int $start): int {}
605
+function gmp_scan0(GMP | string | int $num1, int $start): int {}
606 606
 
607 607
 /**
608 608
  * Scan for 1
@@ -619,7 +619,7 @@  discard block
 block discarded – undo
619 619
  * If no set bit is found, -1 is returned.
620 620
  */
621 621
 #[Pure]
622
-function gmp_scan1(GMP|string|int $num1, int $start): int {}
622
+function gmp_scan1(GMP | string | int $num1, int $start): int {}
623 623
 
624 624
 /**
625 625
  * Tests if a bit is set
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
633 633
  */
634 634
 #[Pure]
635
-function gmp_testbit(GMP|string|int $num, int $index): bool {}
635
+function gmp_testbit(GMP | string | int $num, int $index): bool {}
636 636
 
637 637
 /**
638 638
  * Population count
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
  * @return int The population count of <i>a</i>, as an integer.
643 643
  */
644 644
 #[Pure]
645
-function gmp_popcount(GMP|string|int $num): int {}
645
+function gmp_popcount(GMP | string | int $num): int {}
646 646
 
647 647
 /**
648 648
  * Hamming distance
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
  * @return int A GMP number resource.
661 661
  */
662 662
 #[Pure]
663
-function gmp_hamdist(GMP|string|int $num1, GMP|string|int $num2): int {}
663
+function gmp_hamdist(GMP | string | int $num1, GMP | string | int $num2): int {}
664 664
 
665 665
 /**
666 666
  * Import from a binary string
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
  * @since 5.6.1
674 674
  */
675 675
 #[Pure]
676
-function gmp_import(string $data, int $word_size = 1, int $flags = GMP_MSW_FIRST|GMP_NATIVE_ENDIAN): GMP {}
676
+function gmp_import(string $data, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): GMP {}
677 677
 
678 678
 /**
679 679
  * Export to a binary string
@@ -686,7 +686,7 @@  discard block
 block discarded – undo
686 686
  * @since 5.6.1
687 687
  */
688 688
 #[Pure]
689
-function gmp_export(GMP|string|int $num, int $word_size = 1, int $flags = GMP_MSW_FIRST|GMP_NATIVE_ENDIAN): string {}
689
+function gmp_export(GMP | string | int $num, int $word_size = 1, int $flags = GMP_MSW_FIRST | GMP_NATIVE_ENDIAN): string {}
690 690
 
691 691
 /**
692 692
  * Takes the nth root of a and returns the integer component of the result.
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
  * @since 5.6
699 699
  */
700 700
 #[Pure]
701
-function gmp_root(GMP|string|int $num, int $nth): GMP {}
701
+function gmp_root(GMP | string | int $num, int $nth): GMP {}
702 702
 
703 703
 /**
704 704
  * Takes the nth root of a and returns the integer component and remainder of the result.
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
  * @since 5.6
712 712
  */
713 713
 #[Pure]
714
-function gmp_rootrem(GMP|string|int $num, int $nth): array {}
714
+function gmp_rootrem(GMP | string | int $num, int $nth): array {}
715 715
 
716 716
 /**
717 717
  * Find next prime number
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
  * as a GMP number.
723 723
  */
724 724
 #[Pure]
725
-function gmp_nextprime(GMP|string|int $num): GMP {}
725
+function gmp_nextprime(GMP | string | int $num): GMP {}
726 726
 
727 727
 /**
728 728
  * Calculates binomial coefficient
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
  * @since 7.3
737 737
  */
738 738
 #[Pure]
739
-function gmp_binomial(GMP|string|int $n, int $k): GMP {}
739
+function gmp_binomial(GMP | string | int $n, int $k): GMP {}
740 740
 
741 741
 /**
742 742
  * Computes the Kronecker symbol
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
  * @since 7.3
751 751
  */
752 752
 #[Pure]
753
-function gmp_kronecker(GMP|string|int $num1, GMP|string|int $num2): int {}
753
+function gmp_kronecker(GMP | string | int $num1, GMP | string | int $num2): int {}
754 754
 
755 755
 /**
756 756
  * Computes the least common multiple of A and B
@@ -764,7 +764,7 @@  discard block
 block discarded – undo
764 764
  * @since 7.3
765 765
  */
766 766
 #[Pure]
767
-function gmp_lcm(GMP|string|int $num1, GMP|string|int $num2): GMP {}
767
+function gmp_lcm(GMP | string | int $num1, GMP | string | int $num2): GMP {}
768 768
 
769 769
 /**
770 770
  * Perfect power check
@@ -777,7 +777,7 @@  discard block
 block discarded – undo
777 777
  * @since 7.3
778 778
  */
779 779
 #[Pure]
780
-function gmp_perfect_power(GMP|string|int $num): bool {}
780
+function gmp_perfect_power(GMP | string | int $num): bool {}
781 781
 
782 782
 define('GMP_ROUND_ZERO', 0);
783 783
 define('GMP_ROUND_PLUSINF', 1);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -796,8 +796,7 @@
 block discarded – undo
796 796
 
797 797
 define('GMP_MPIR_VERSION', '3.0.0');
798 798
 
799
-class GMP implements Serializable
800
-{
799
+class GMP implements Serializable {
801 800
     /**
802 801
      * String representation of object
803 802
      * @link https://php.net/manual/en/serializable.serialize.php
Please login to merge, or discard this patch.
vendor-bin/php-scoper/vendor/jetbrains/phpstorm-stubs/enchant/enchant.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -192,9 +192,9 @@  discard block
 block discarded – undo
192 192
  * @see enchant_dict_add()
193 193
  */
194 194
 #[Deprecated(
195
-    reason: 'Use enchant_dict_add instead',
196
-    replacement: 'enchant_dict_add(%parameter0%, %parameter1%)',
197
-    since: '8.0'
195
+	reason: 'Use enchant_dict_add instead',
196
+	replacement: 'enchant_dict_add(%parameter0%, %parameter1%)',
197
+	since: '8.0'
198 198
 )]
199 199
 function enchant_dict_add_to_personal($dict, $word) {}
200 200
 
@@ -241,9 +241,9 @@  discard block
 block discarded – undo
241 241
  * @see enchant_dict_is_added
242 242
  */
243 243
 #[Deprecated(
244
-    reason: 'Use enchant_dict_is_added instead',
245
-    replacement: 'enchant_dict_is_added(%parameter0%, %parameter1%)',
246
-    since: '8.0'
244
+	reason: 'Use enchant_dict_is_added instead',
245
+	replacement: 'enchant_dict_is_added(%parameter0%, %parameter1%)',
246
+	since: '8.0'
247 247
 )]
248 248
 function enchant_dict_is_in_session($dict, $word) {}
249 249
 
Please login to merge, or discard this patch.
php-scoper/vendor/jetbrains/phpstorm-stubs/rdkafka/RdKafka/Queue.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@
 block discarded – undo
4 4
 
5 5
 class Queue
6 6
 {
7
-    private function __construct() {}
7
+	private function __construct() {}
8 8
 
9
-    /**
10
-     * @param int $timeout_ms
11
-     *
12
-     * @return Message|null
13
-     */
14
-    public function consume($timeout_ms) {}
9
+	/**
10
+	 * @param int $timeout_ms
11
+	 *
12
+	 * @return Message|null
13
+	 */
14
+	public function consume($timeout_ms) {}
15 15
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace RdKafka;
4 4
 
5
-class Queue
6
-{
5
+class Queue {
7 6
     private function __construct() {}
8 7
 
9 8
     /**
Please login to merge, or discard this patch.