Passed
Push — master ( 82a437...93dc0a )
by
unknown
13:29 queued 14s
created
dev/generate_php-mapi-stub.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
 
119 119
 		// Filter the relevant constants
120 120
 		$relevant_prefixes = ['PR_', 'PidLid', 'MAPI', 'ec', 'RPC_', 'SYNC_'];
121
-		$relevant_constants = array_filter($constants, function ($key) use ($relevant_prefixes) {
121
+		$relevant_constants = array_filter($constants, function($key) use ($relevant_prefixes) {
122 122
 			foreach ($relevant_prefixes as $prefix) {
123 123
 				if (strpos($key, $prefix) === 0) {
124 124
 					return true;
Please login to merge, or discard this patch.
dev/php-mapi-stub.php 1 patch
Spacing   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  * @return void
12 12
  */
13 13
 function mapi_load_mapidefs(?int $level): void {
14
-	return ;
14
+	return;
15 15
 }
16 16
 
17 17
 /**
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
  * @param int $proptag
26 26
  * @return int|bool
27 27
  */
28
-function mapi_prop_type(int $proptag): int|bool {
28
+function mapi_prop_type(int $proptag): int | bool {
29 29
 	return 0;
30 30
 }
31 31
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
  * @param int $proptag
34 34
  * @return int|bool
35 35
  */
36
-function mapi_prop_id(int $proptag): int|bool {
36
+function mapi_prop_id(int $proptag): int | bool {
37 37
 	return 0;
38 38
 }
39 39
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
  * @param int $code
51 51
  * @return int|bool
52 52
  */
53
-function mapi_make_scode(int $sev, int $code): int|bool {
53
+function mapi_make_scode(int $sev, int $code): int | bool {
54 54
 	return 0;
55 55
 }
56 56
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
  * @param int $propid
60 60
  * @return int|bool
61 61
  */
62
-function mapi_prop_tag(int $proptype, int $propid): int|bool {
62
+function mapi_prop_tag(int $proptype, int $propid): int | bool {
63 63
 	return 0;
64 64
 }
65 65
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
  * @param ?int $flags
71 71
  * @return string|bool
72 72
  */
73
-function mapi_createoneoff(?string $displayname, string $type, string $address, ?int $flags = 0): string|bool {
73
+function mapi_createoneoff(?string $displayname, string $type, string $address, ?int $flags = 0): string | bool {
74 74
 	return '';
75 75
 }
76 76
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
  * @param string $entryid
79 79
  * @return array|bool
80 80
  */
81
-function mapi_parseoneoff(string $entryid): array|bool {
81
+function mapi_parseoneoff(string $entryid): array | bool {
82 82
 	return [];
83 83
 }
84 84
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
  * @param ?string $misc_version
94 94
  * @return resource|bool
95 95
  */
96
-function mapi_logon_zarafa(string $username, string $password, ?string $server = null, ?string $sslcert = null, ?string $sslpass = null, ?int $flags = 0, ?string $wa_version = null, ?string $misc_version = null): resource|bool {
96
+function mapi_logon_zarafa(string $username, string $password, ?string $server = null, ?string $sslcert = null, ?string $sslpass = null, ?int $flags = 0, ?string $wa_version = null, ?string $misc_version = null): resource | bool {
97 97
 	return new resource();
98 98
 }
99 99
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
  * @param int $flags
104 104
  * @return resource|bool
105 105
  */
106
-function mapi_logon_ex(string $username, string $password, int $flags): resource|bool {
106
+function mapi_logon_ex(string $username, string $password, int $flags): resource | bool {
107 107
 	return new resource();
108 108
 }
109 109
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
  * @param string $token
112 112
  * @return resource|bool
113 113
  */
114
-function mapi_logon_token(string $token): resource|bool {
114
+function mapi_logon_token(string $token): resource | bool {
115 115
 	return new resource();
116 116
 }
117 117
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
  * @param resource $session
120 120
  * @return resource|bool
121 121
  */
122
-function mapi_getmsgstorestable(resource $session): resource|bool {
122
+function mapi_getmsgstorestable(resource $session): resource | bool {
123 123
 	return new resource();
124 124
 }
125 125
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
  * @param string $entryid
129 129
  * @return resource|bool
130 130
  */
131
-function mapi_openmsgstore(resource $ses, string $entryid): resource|bool {
131
+function mapi_openmsgstore(resource $ses, string $entryid): resource | bool {
132 132
 	return new resource();
133 133
 }
134 134
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
  * @param string $uid
138 138
  * @return resource|bool
139 139
  */
140
-function mapi_openprofilesection(resource $ses, string $uid): resource|bool {
140
+function mapi_openprofilesection(resource $ses, string $uid): resource | bool {
141 141
 	return new resource();
142 142
 }
143 143
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
  * @param resource $session
146 146
  * @return resource|bool
147 147
  */
148
-function mapi_openaddressbook(resource $session): resource|bool {
148
+function mapi_openaddressbook(resource $session): resource | bool {
149 149
 	return new resource();
150 150
 }
151 151
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
  * @param ?int $flags
156 156
  * @return resource|bool
157 157
  */
158
-function mapi_openentry(resource $ses, ?string $entryid = null, ?int $flags = 0): resource|bool {
158
+function mapi_openentry(resource $ses, ?string $entryid = null, ?int $flags = 0): resource | bool {
159 159
 	return new resource();
160 160
 }
161 161
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
  * @param ?int $flags
166 166
  * @return resource|bool
167 167
  */
168
-function mapi_ab_openentry(resource $abk, ?string $entryid = null, ?int $flags = 0): resource|bool {
168
+function mapi_ab_openentry(resource $abk, ?string $entryid = null, ?int $flags = 0): resource | bool {
169 169
 	return new resource();
170 170
 }
171 171
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
  * @param resource $abk
184 184
  * @return string|bool
185 185
  */
186
-function mapi_ab_getdefaultdir(resource $abk): string|bool {
186
+function mapi_ab_getdefaultdir(resource $abk): string | bool {
187 187
 	return '';
188 188
 }
189 189
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
  * @param string $mailbox_dn
193 193
  * @return string|bool
194 194
  */
195
-function mapi_msgstore_createentryid(resource $store, string $mailbox_dn): string|bool {
195
+function mapi_msgstore_createentryid(resource $store, string $mailbox_dn): string | bool {
196 196
 	return '';
197 197
 }
198 198
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
  * @param ?int $flags
213 213
  * @return resource|bool
214 214
  */
215
-function mapi_msgstore_openentry(resource $store, ?string $entryid = null, ?int $flags = 0): resource|bool {
215
+function mapi_msgstore_openentry(resource $store, ?string $entryid = null, ?int $flags = 0): resource | bool {
216 216
 	return new resource();
217 217
 }
218 218
 
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
  * @param resource $store
221 221
  * @return resource|bool
222 222
  */
223
-function mapi_msgstore_getreceivefolder(resource $store): resource|bool {
223
+function mapi_msgstore_getreceivefolder(resource $store): resource | bool {
224 224
 	return new resource();
225 225
 }
226 226
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
  * @param ?string $sk_msg
231 231
  * @return string|bool
232 232
  */
233
-function mapi_msgstore_entryidfromsourcekey(resource $store, string $sk_fld, ?string $sk_msg = null): string|bool {
233
+function mapi_msgstore_entryidfromsourcekey(resource $store, string $sk_fld, ?string $sk_msg = null): string | bool {
234 234
 	return '';
235 235
 }
236 236
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
  * @param resource $sink
242 242
  * @return int|bool
243 243
  */
244
-function mapi_msgstore_advise(resource $store, string $entryid, int $event_mask, resource $sink): int|bool {
244
+function mapi_msgstore_advise(resource $store, string $entryid, int $event_mask, resource $sink): int | bool {
245 245
 	return 0;
246 246
 }
247 247
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 /**
267 267
  * @return resource|bool
268 268
  */
269
-function mapi_sink_create(): resource|bool {
269
+function mapi_sink_create(): resource | bool {
270 270
 	return new resource();
271 271
 }
272 272
 
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
  * @param resource $table
305 305
  * @return int|bool
306 306
  */
307
-function mapi_table_getrowcount(resource $table): int|bool {
307
+function mapi_table_getrowcount(resource $table): int | bool {
308 308
 	return 0;
309 309
 }
310 310
 
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
  * @param int $rowcount
325 325
  * @return int|bool
326 326
  */
327
-function mapi_table_seekrow(resource $table, int $bookmark, int $rowcount): int|bool {
327
+function mapi_table_seekrow(resource $table, int $bookmark, int $rowcount): int | bool {
328 328
 	return 0;
329 329
 }
330 330
 
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
  * @param ?int $flags
356 356
  * @return int|bool
357 357
  */
358
-function mapi_table_findrow(resource $table, array $restrict, ?int $bookmark = 0, ?int $flags = 0): int|bool {
358
+function mapi_table_findrow(resource $table, array $restrict, ?int $bookmark = 0, ?int $flags = 0): int | bool {
359 359
 	return 0;
360 360
 }
361 361
 
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
  * @param resource $table
364 364
  * @return int|bool
365 365
  */
366
-function mapi_table_createbookmark(resource $table): int|bool {
366
+function mapi_table_createbookmark(resource $table): int | bool {
367 367
 	return 0;
368 368
 }
369 369
 
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
  * @param ?int $flags
382 382
  * @return resource|bool
383 383
  */
384
-function mapi_folder_gethierarchytable(resource $fld, ?int $flags = 0): resource|bool {
384
+function mapi_folder_gethierarchytable(resource $fld, ?int $flags = 0): resource | bool {
385 385
 	return new resource();
386 386
 }
387 387
 
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
  * @param ?int $flags
391 391
  * @return resource|bool
392 392
  */
393
-function mapi_folder_getcontentstable(resource $fld, ?int $flags = 0): resource|bool {
393
+function mapi_folder_getcontentstable(resource $fld, ?int $flags = 0): resource | bool {
394 394
 	return new resource();
395 395
 }
396 396
 
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
  * @param resource $fld
399 399
  * @return resource|bool
400 400
  */
401
-function mapi_folder_getrulestable(resource $fld): resource|bool {
401
+function mapi_folder_getrulestable(resource $fld): resource | bool {
402 402
 	return new resource();
403 403
 }
404 404
 
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
  * @param ?int $flags
408 408
  * @return resource|bool
409 409
  */
410
-function mapi_folder_createmessage(resource $fld, ?int $flags = 0): resource|bool {
410
+function mapi_folder_createmessage(resource $fld, ?int $flags = 0): resource | bool {
411 411
 	return new resource();
412 412
 }
413 413
 
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
  * @param ?int $folder_type
420 420
  * @return resource|bool
421 421
  */
422
-function mapi_folder_createfolder(resource $fld, string $fname, ?string $comment = null, ?int $flags = 0, ?int $folder_type = 0): resource|bool {
422
+function mapi_folder_createfolder(resource $fld, string $fname, ?string $comment = null, ?int $flags = 0, ?int $folder_type = 0): resource | bool {
423 423
 	return new resource();
424 424
 }
425 425
 
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
  * @param resource $msg
520 520
  * @return resource|bool
521 521
  */
522
-function mapi_message_getattachmenttable(resource $msg): resource|bool {
522
+function mapi_message_getattachmenttable(resource $msg): resource | bool {
523 523
 	return new resource();
524 524
 }
525 525
 
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
  * @param resource $msg
528 528
  * @return resource|bool
529 529
  */
530
-function mapi_message_getrecipienttable(resource $msg): resource|bool {
530
+function mapi_message_getrecipienttable(resource $msg): resource | bool {
531 531
 	return new resource();
532 532
 }
533 533
 
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
  * @param int $id
537 537
  * @return resource|bool
538 538
  */
539
-function mapi_message_openattach(resource $msg, int $id): resource|bool {
539
+function mapi_message_openattach(resource $msg, int $id): resource | bool {
540 540
 	return new resource();
541 541
 }
542 542
 
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
  * @param ?int $flags
546 546
  * @return resource|bool
547 547
  */
548
-function mapi_message_createattach(resource $msg, ?int $flags = 0): resource|bool {
548
+function mapi_message_createattach(resource $msg, ?int $flags = 0): resource | bool {
549 549
 	return new resource();
550 550
 }
551 551
 
@@ -593,7 +593,7 @@  discard block
 block discarded – undo
593 593
  * @param ?string $guid
594 594
  * @return resource|bool
595 595
  */
596
-function mapi_openpropertytostream(resource $any, int $proptag, ?int $flags = 0, ?string $guid = null): resource|bool {
596
+function mapi_openpropertytostream(resource $any, int $proptag, ?int $flags = 0, ?string $guid = null): resource | bool {
597 597
 	return new resource();
598 598
 }
599 599
 
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
  * @param string $data
603 603
  * @return int|bool
604 604
  */
605
-function mapi_stream_write(resource $stream, string $data): int|bool {
605
+function mapi_stream_write(resource $stream, string $data): int | bool {
606 606
 	return 0;
607 607
 }
608 608
 
@@ -611,7 +611,7 @@  discard block
 block discarded – undo
611 611
  * @param int $size
612 612
  * @return string|bool
613 613
  */
614
-function mapi_stream_read(resource $stream, int $size): string|bool {
614
+function mapi_stream_read(resource $stream, int $size): string | bool {
615 615
 	return '';
616 616
 }
617 617
 
@@ -619,7 +619,7 @@  discard block
 block discarded – undo
619 619
  * @param resource $stream
620 620
  * @return array|bool
621 621
  */
622
-function mapi_stream_stat(resource $stream): array|bool {
622
+function mapi_stream_stat(resource $stream): array | bool {
623 623
 	return [];
624 624
 }
625 625
 
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
 /**
654 654
  * @return resource|bool
655 655
  */
656
-function mapi_stream_create(): resource|bool {
656
+function mapi_stream_create(): resource | bool {
657 657
 	return new resource();
658 658
 }
659 659
 
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
  * @param ?int $flags
663 663
  * @return resource|bool
664 664
  */
665
-function mapi_attach_openobj(resource $attach, ?int $flags = 0): resource|bool {
665
+function mapi_attach_openobj(resource $attach, ?int $flags = 0): resource | bool {
666 666
 	return new resource();
667 667
 }
668 668
 
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
  * @param int $proptag
711 711
  * @return resource|bool
712 712
  */
713
-function mapi_openproperty(resource $any, int $proptag /* [more] */): resource|bool {
713
+function mapi_openproperty(resource $any, int $proptag /* [more] */): resource | bool {
714 714
 	return new resource();
715 715
 }
716 716
 
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
  * @param ?array $names
729 729
  * @return array|bool
730 730
  */
731
-function mapi_getnamesfromids(resource $any, ?array $names = null): array|bool {
731
+function mapi_getnamesfromids(resource $any, ?array $names = null): array | bool {
732 732
 	return [];
733 733
 }
734 734
 
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
  * @param ?array $guids
739 739
  * @return array|bool
740 740
  */
741
-function mapi_getidsfromnames(resource $store, array $names, ?array $guids = null): array|bool {
741
+function mapi_getidsfromnames(resource $store, array $names, ?array $guids = null): array | bool {
742 742
 	return [];
743 743
 }
744 744
 
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
  * @param string $data
747 747
  * @return string|bool
748 748
  */
749
-function mapi_decompressrtf(string $data): string|bool {
749
+function mapi_decompressrtf(string $data): string | bool {
750 750
 	return '';
751 751
 }
752 752
 
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
  * @param int $type
756 756
  * @return array|bool
757 757
  */
758
-function mapi_zarafa_getpermissionrules(resource $any, int $type): array|bool {
758
+function mapi_zarafa_getpermissionrules(resource $any, int $type): array | bool {
759 759
 	return [];
760 760
 }
761 761
 
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
  * @param int $end
776 776
  * @return array|bool
777 777
  */
778
-function mapi_getuserfreebusy(resource $ses, string $entryid, int $start, int $end): array|bool {
778
+function mapi_getuserfreebusy(resource $ses, string $entryid, int $start, int $end): array | bool {
779 779
 	return [];
780 780
 }
781 781
 
@@ -786,7 +786,7 @@  discard block
 block discarded – undo
786 786
  * @param int $end
787 787
  * @return string|bool
788 788
  */
789
-function mapi_getuserfreebusyical(resource $ses, string $entryid, int $start, int $end): string|bool {
789
+function mapi_getuserfreebusyical(resource $ses, string $entryid, int $start, int $end): string | bool {
790 790
 	return '';
791 791
 }
792 792
 
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
  * @param resource $r
827 827
  * @return int|bool
828 828
  */
829
-function mapi_exportchanges_getchangecount(resource $r): int|bool {
829
+function mapi_exportchanges_getchangecount(resource $r): int | bool {
830 830
 	return 0;
831 831
 }
832 832
 
@@ -934,7 +934,7 @@  discard block
 block discarded – undo
934 934
  * @param object &$object
935 935
  * @return resource|bool
936 936
  */
937
-function mapi_wrap_importcontentschanges(object &$object): resource|bool {
937
+function mapi_wrap_importcontentschanges(object &$object): resource | bool {
938 938
 	return new resource();
939 939
 }
940 940
 
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
  * @param object &$object
943 943
  * @return resource|bool
944 944
  */
945
-function mapi_wrap_importhierarchychanges(object &$object): resource|bool {
945
+function mapi_wrap_importhierarchychanges(object &$object): resource | bool {
946 946
 	return new resource();
947 947
 }
948 948
 
@@ -953,7 +953,7 @@  discard block
 block discarded – undo
953 953
  * @param array $opts
954 954
  * @return resource|bool
955 955
  */
956
-function mapi_inetmapi_imtoinet(resource $ses, resource $abk, resource $msg, array $opts): resource|bool {
956
+function mapi_inetmapi_imtoinet(resource $ses, resource $abk, resource $msg, array $opts): resource | bool {
957 957
 	return new resource();
958 958
 }
959 959
 
@@ -989,7 +989,7 @@  discard block
 block discarded – undo
989 989
  * @param string $ics
990 990
  * @return array|bool
991 991
  */
992
-function mapi_icaltomapi2(resource $abk, resource $fld, string $ics): array|bool {
992
+function mapi_icaltomapi2(resource $abk, resource $fld, string $ics): array | bool {
993 993
 	return [];
994 994
 }
995 995
 
@@ -1000,7 +1000,7 @@  discard block
 block discarded – undo
1000 1000
  * @param array $opts
1001 1001
  * @return string|bool
1002 1002
  */
1003
-function mapi_mapitoical(resource $ses, resource $abk, resource $msg, array $opts): string|bool {
1003
+function mapi_mapitoical(resource $ses, resource $abk, resource $msg, array $opts): string | bool {
1004 1004
 	return '';
1005 1005
 }
1006 1006
 
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
  * @param string $vcard
1021 1021
  * @return array|bool
1022 1022
  */
1023
-function mapi_vcftomapi2(resource $fld, string $vcard): array|bool {
1023
+function mapi_vcftomapi2(resource $fld, string $vcard): array | bool {
1024 1024
 	return [];
1025 1025
 }
1026 1026
 
@@ -1031,7 +1031,7 @@  discard block
 block discarded – undo
1031 1031
  * @param array $opts
1032 1032
  * @return string|bool
1033 1033
  */
1034
-function mapi_mapitovcf(resource $ses, resource $abk, resource $msg, array $opts): string|bool {
1034
+function mapi_mapitovcf(resource $ses, resource $abk, resource $msg, array $opts): string | bool {
1035 1035
 	return '';
1036 1036
 }
1037 1037
 
@@ -1073,7 +1073,7 @@  discard block
 block discarded – undo
1073 1073
  * @param string $username
1074 1074
  * @return array|bool
1075 1075
  */
1076
-function nsp_getuserinfo(string $username): array|bool {
1076
+function nsp_getuserinfo(string $username): array | bool {
1077 1077
 	return [];
1078 1078
 }
1079 1079
 
@@ -1091,7 +1091,7 @@  discard block
 block discarded – undo
1091 1091
  * @param string $essdn
1092 1092
  * @return string|bool
1093 1093
  */
1094
-function nsp_essdn_to_username(string $essdn): string|bool {
1094
+function nsp_essdn_to_username(string $essdn): string | bool {
1095 1095
 	return '';
1096 1096
 }
1097 1097
 
@@ -1109,7 +1109,7 @@  discard block
 block discarded – undo
1109 1109
  * @param string $tz
1110 1110
  * @return string|bool
1111 1111
  */
1112
-function mapi_ianatz_to_tzdef(string $tz): string|bool {
1112
+function mapi_ianatz_to_tzdef(string $tz): string | bool {
1113 1113
 	return '';
1114 1114
 }
1115 1115
 
Please login to merge, or discard this patch.