@@ -11,23 +11,23 @@ discard block |
||
11 | 11 | return 0; |
12 | 12 | } |
13 | 13 | |
14 | -function mapi_prop_type(int $proptag): false|int { |
|
14 | +function mapi_prop_type(int $proptag): false | int { |
|
15 | 15 | return 0; |
16 | 16 | } |
17 | 17 | |
18 | -function mapi_prop_id(int $proptag): false|int { |
|
18 | +function mapi_prop_id(int $proptag): false | int { |
|
19 | 19 | return 0; |
20 | 20 | } |
21 | 21 | |
22 | -function mapi_is_error(int $errcode): bool|false { |
|
22 | +function mapi_is_error(int $errcode): bool | false { |
|
23 | 23 | return false; |
24 | 24 | } |
25 | 25 | |
26 | -function mapi_make_scode(int $sev, int $code): false|int { |
|
26 | +function mapi_make_scode(int $sev, int $code): false | int { |
|
27 | 27 | return 0; |
28 | 28 | } |
29 | 29 | |
30 | -function mapi_prop_tag(int $proptype, int $propid): false|int { |
|
30 | +function mapi_prop_tag(int $proptype, int $propid): false | int { |
|
31 | 31 | return 0; |
32 | 32 | } |
33 | 33 | |
@@ -35,11 +35,11 @@ discard block |
||
35 | 35 | * @param ?string $displayname |
36 | 36 | * @param ?int $flags |
37 | 37 | */ |
38 | -function mapi_createoneoff(?string $displayname, string $type, string $address, ?int $flags = 0): false|string { |
|
38 | +function mapi_createoneoff(?string $displayname, string $type, string $address, ?int $flags = 0): false | string { |
|
39 | 39 | return ''; |
40 | 40 | } |
41 | 41 | |
42 | -function mapi_parseoneoff(string $entryid): array|false { |
|
42 | +function mapi_parseoneoff(string $entryid): array | false { |
|
43 | 43 | return []; |
44 | 44 | } |
45 | 45 | |
@@ -51,31 +51,31 @@ discard block |
||
51 | 51 | * @param ?string $wa_version |
52 | 52 | * @param ?string $misc_version |
53 | 53 | */ |
54 | -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): false|Resource { |
|
54 | +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): false | Resource { |
|
55 | 55 | return null; |
56 | 56 | } |
57 | 57 | |
58 | -function mapi_logon_ex(string $username, string $password, int $flags): false|Resource { |
|
58 | +function mapi_logon_ex(string $username, string $password, int $flags): false | Resource { |
|
59 | 59 | return null; |
60 | 60 | } |
61 | 61 | |
62 | -function mapi_logon_token(string $token): false|Resource { |
|
62 | +function mapi_logon_token(string $token): false | Resource { |
|
63 | 63 | return null; |
64 | 64 | } |
65 | 65 | |
66 | -function mapi_getmsgstorestable(Resource $session): false|Resource { |
|
66 | +function mapi_getmsgstorestable(Resource $session): false | Resource { |
|
67 | 67 | return null; |
68 | 68 | } |
69 | 69 | |
70 | -function mapi_openmsgstore(Resource $ses, string $entryid): false|Resource { |
|
70 | +function mapi_openmsgstore(Resource $ses, string $entryid): false | Resource { |
|
71 | 71 | return null; |
72 | 72 | } |
73 | 73 | |
74 | -function mapi_openprofilesection(Resource $ses, string $uid): false|Resource { |
|
74 | +function mapi_openprofilesection(Resource $ses, string $uid): false | Resource { |
|
75 | 75 | return null; |
76 | 76 | } |
77 | 77 | |
78 | -function mapi_openaddressbook(Resource $session): false|Resource { |
|
78 | +function mapi_openaddressbook(Resource $session): false | Resource { |
|
79 | 79 | return null; |
80 | 80 | } |
81 | 81 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * @param ?string $entryid |
84 | 84 | * @param ?int $flags |
85 | 85 | */ |
86 | -function mapi_openentry(Resource $ses, ?string $entryid = null, ?int $flags = 0): false|Resource { |
|
86 | +function mapi_openentry(Resource $ses, ?string $entryid = null, ?int $flags = 0): false | Resource { |
|
87 | 87 | return null; |
88 | 88 | } |
89 | 89 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * @param ?string $entryid |
92 | 92 | * @param ?int $flags |
93 | 93 | */ |
94 | -function mapi_ab_openentry(Resource $abk, ?string $entryid = null, ?int $flags = 0): false|Resource { |
|
94 | +function mapi_ab_openentry(Resource $abk, ?string $entryid = null, ?int $flags = 0): false | Resource { |
|
95 | 95 | return null; |
96 | 96 | } |
97 | 97 | |
@@ -102,11 +102,11 @@ discard block |
||
102 | 102 | return null; |
103 | 103 | } |
104 | 104 | |
105 | -function mapi_ab_getdefaultdir(Resource $abk): false|string { |
|
105 | +function mapi_ab_getdefaultdir(Resource $abk): false | string { |
|
106 | 106 | return ''; |
107 | 107 | } |
108 | 108 | |
109 | -function mapi_msgstore_createentryid(Resource $store, string $mailbox_dn): false|string { |
|
109 | +function mapi_msgstore_createentryid(Resource $store, string $mailbox_dn): false | string { |
|
110 | 110 | return ''; |
111 | 111 | } |
112 | 112 | |
@@ -118,22 +118,22 @@ discard block |
||
118 | 118 | * @param ?string $entryid |
119 | 119 | * @param ?int $flags |
120 | 120 | */ |
121 | -function mapi_msgstore_openentry(Resource $store, ?string $entryid = null, ?int $flags = 0): false|Resource { |
|
121 | +function mapi_msgstore_openentry(Resource $store, ?string $entryid = null, ?int $flags = 0): false | Resource { |
|
122 | 122 | return null; |
123 | 123 | } |
124 | 124 | |
125 | -function mapi_msgstore_getreceivefolder(Resource $store): false|Resource { |
|
125 | +function mapi_msgstore_getreceivefolder(Resource $store): false | Resource { |
|
126 | 126 | return null; |
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
130 | 130 | * @param ?string $sk_msg |
131 | 131 | */ |
132 | -function mapi_msgstore_entryidfromsourcekey(Resource $store, string $sk_fld, ?string $sk_msg = null): false|string { |
|
132 | +function mapi_msgstore_entryidfromsourcekey(Resource $store, string $sk_fld, ?string $sk_msg = null): false | string { |
|
133 | 133 | return ''; |
134 | 134 | } |
135 | 135 | |
136 | -function mapi_msgstore_advise(Resource $store, string $entryid, int $event_mask, Resource $sink): false|int { |
|
136 | +function mapi_msgstore_advise(Resource $store, string $entryid, int $event_mask, Resource $sink): false | int { |
|
137 | 137 | return 0; |
138 | 138 | } |
139 | 139 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | return null; |
150 | 150 | } |
151 | 151 | |
152 | -function mapi_sink_create(): false|Resource { |
|
152 | +function mapi_sink_create(): false | Resource { |
|
153 | 153 | return null; |
154 | 154 | } |
155 | 155 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | return null; |
175 | 175 | } |
176 | 176 | |
177 | -function mapi_table_getrowcount(Resource $table): false|int { |
|
177 | +function mapi_table_getrowcount(Resource $table): false | int { |
|
178 | 178 | return 0; |
179 | 179 | } |
180 | 180 | |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | return false; |
186 | 186 | } |
187 | 187 | |
188 | -function mapi_table_seekrow(Resource $table, int $bookmark, int $rowcount): false|int { |
|
188 | +function mapi_table_seekrow(Resource $table, int $bookmark, int $rowcount): false | int { |
|
189 | 189 | return 0; |
190 | 190 | } |
191 | 191 | |
@@ -207,11 +207,11 @@ discard block |
||
207 | 207 | * @param ?int $bookmark |
208 | 208 | * @param ?int $flags |
209 | 209 | */ |
210 | -function mapi_table_findrow(Resource $table, array $restrict, ?int $bookmark = 0, ?int $flags = 0): false|int { |
|
210 | +function mapi_table_findrow(Resource $table, array $restrict, ?int $bookmark = 0, ?int $flags = 0): false | int { |
|
211 | 211 | return 0; |
212 | 212 | } |
213 | 213 | |
214 | -function mapi_table_createbookmark(Resource $table): false|int { |
|
214 | +function mapi_table_createbookmark(Resource $table): false | int { |
|
215 | 215 | return 0; |
216 | 216 | } |
217 | 217 | |
@@ -222,25 +222,25 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * @param ?int $flags |
224 | 224 | */ |
225 | -function mapi_folder_gethierarchytable(Resource $fld, ?int $flags = 0): false|Resource { |
|
225 | +function mapi_folder_gethierarchytable(Resource $fld, ?int $flags = 0): false | Resource { |
|
226 | 226 | return null; |
227 | 227 | } |
228 | 228 | |
229 | 229 | /** |
230 | 230 | * @param ?int $flags |
231 | 231 | */ |
232 | -function mapi_folder_getcontentstable(Resource $fld, ?int $flags = 0): false|Resource { |
|
232 | +function mapi_folder_getcontentstable(Resource $fld, ?int $flags = 0): false | Resource { |
|
233 | 233 | return null; |
234 | 234 | } |
235 | 235 | |
236 | -function mapi_folder_getrulestable(Resource $fld): false|Resource { |
|
236 | +function mapi_folder_getrulestable(Resource $fld): false | Resource { |
|
237 | 237 | return null; |
238 | 238 | } |
239 | 239 | |
240 | 240 | /** |
241 | 241 | * @param ?int $flags |
242 | 242 | */ |
243 | -function mapi_folder_createmessage(Resource $fld, ?int $flags = 0): false|Resource { |
|
243 | +function mapi_folder_createmessage(Resource $fld, ?int $flags = 0): false | Resource { |
|
244 | 244 | return null; |
245 | 245 | } |
246 | 246 | |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | * @param ?int $flags |
250 | 250 | * @param ?int $folder_type |
251 | 251 | */ |
252 | -function mapi_folder_createfolder(Resource $fld, string $fname, ?string $comment = null, ?int $flags = 0, ?int $folder_type = 0): false|Resource { |
|
252 | +function mapi_folder_createfolder(Resource $fld, string $fname, ?string $comment = null, ?int $flags = 0, ?int $folder_type = 0): false | Resource { |
|
253 | 253 | return null; |
254 | 254 | } |
255 | 255 | |
@@ -314,22 +314,22 @@ discard block |
||
314 | 314 | return false; |
315 | 315 | } |
316 | 316 | |
317 | -function mapi_message_getattachmenttable(Resource $msg): false|Resource { |
|
317 | +function mapi_message_getattachmenttable(Resource $msg): false | Resource { |
|
318 | 318 | return null; |
319 | 319 | } |
320 | 320 | |
321 | -function mapi_message_getrecipienttable(Resource $msg): false|Resource { |
|
321 | +function mapi_message_getrecipienttable(Resource $msg): false | Resource { |
|
322 | 322 | return null; |
323 | 323 | } |
324 | 324 | |
325 | -function mapi_message_openattach(Resource $msg, int $id): false|Resource { |
|
325 | +function mapi_message_openattach(Resource $msg, int $id): false | Resource { |
|
326 | 326 | return null; |
327 | 327 | } |
328 | 328 | |
329 | 329 | /** |
330 | 330 | * @param ?int $flags |
331 | 331 | */ |
332 | -function mapi_message_createattach(Resource $msg, ?int $flags = 0): false|Resource { |
|
332 | +function mapi_message_createattach(Resource $msg, ?int $flags = 0): false | Resource { |
|
333 | 333 | return null; |
334 | 334 | } |
335 | 335 | |
@@ -356,19 +356,19 @@ discard block |
||
356 | 356 | * @param ?int $flags |
357 | 357 | * @param ?string $guid |
358 | 358 | */ |
359 | -function mapi_openpropertytostream(Resource $any, int $proptag, ?int $flags = 0, ?string $guid = null): false|Resource { |
|
359 | +function mapi_openpropertytostream(Resource $any, int $proptag, ?int $flags = 0, ?string $guid = null): false | Resource { |
|
360 | 360 | return null; |
361 | 361 | } |
362 | 362 | |
363 | -function mapi_stream_write(Resource $stream, string $data): false|int { |
|
363 | +function mapi_stream_write(Resource $stream, string $data): false | int { |
|
364 | 364 | return 0; |
365 | 365 | } |
366 | 366 | |
367 | -function mapi_stream_read(Resource $stream, int $size): false|string { |
|
367 | +function mapi_stream_read(Resource $stream, int $size): false | string { |
|
368 | 368 | return ''; |
369 | 369 | } |
370 | 370 | |
371 | -function mapi_stream_stat(Resource $stream): array|false { |
|
371 | +function mapi_stream_stat(Resource $stream): array | false { |
|
372 | 372 | return []; |
373 | 373 | } |
374 | 374 | |
@@ -387,14 +387,14 @@ discard block |
||
387 | 387 | return false; |
388 | 388 | } |
389 | 389 | |
390 | -function mapi_stream_create(): false|Resource { |
|
390 | +function mapi_stream_create(): false | Resource { |
|
391 | 391 | return null; |
392 | 392 | } |
393 | 393 | |
394 | 394 | /** |
395 | 395 | * @param ?int $flags |
396 | 396 | */ |
397 | -function mapi_attach_openobj(Resource $attach, ?int $flags = 0): bool|Resource { |
|
397 | +function mapi_attach_openobj(Resource $attach, ?int $flags = 0): bool | Resource { |
|
398 | 398 | return null; |
399 | 399 | } |
400 | 400 | |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | return false; |
424 | 424 | } |
425 | 425 | |
426 | -function mapi_openproperty(Resource $any, int $proptag /* [more] */): false|Resource { |
|
426 | +function mapi_openproperty(Resource $any, int $proptag /* [more] */): false | Resource { |
|
427 | 427 | return null; |
428 | 428 | } |
429 | 429 | |
@@ -434,22 +434,22 @@ discard block |
||
434 | 434 | /** |
435 | 435 | * @param ?array $names |
436 | 436 | */ |
437 | -function mapi_getnamesfromids(Resource $any, ?array $names = null): array|false { |
|
437 | +function mapi_getnamesfromids(Resource $any, ?array $names = null): array | false { |
|
438 | 438 | return []; |
439 | 439 | } |
440 | 440 | |
441 | 441 | /** |
442 | 442 | * @param ?array $guids |
443 | 443 | */ |
444 | -function mapi_getidsfromnames(Resource $store, array $names, ?array $guids = null): array|false { |
|
444 | +function mapi_getidsfromnames(Resource $store, array $names, ?array $guids = null): array | false { |
|
445 | 445 | return []; |
446 | 446 | } |
447 | 447 | |
448 | -function mapi_decompressrtf(string $data): false|string { |
|
448 | +function mapi_decompressrtf(string $data): false | string { |
|
449 | 449 | return ''; |
450 | 450 | } |
451 | 451 | |
452 | -function mapi_zarafa_getpermissionrules(Resource $any, int $type): array|false { |
|
452 | +function mapi_zarafa_getpermissionrules(Resource $any, int $type): array | false { |
|
453 | 453 | return []; |
454 | 454 | } |
455 | 455 | |
@@ -457,11 +457,11 @@ discard block |
||
457 | 457 | return false; |
458 | 458 | } |
459 | 459 | |
460 | -function mapi_getuserfreebusy(Resource $ses, string $entryid, int $start, int $end): array|false { |
|
460 | +function mapi_getuserfreebusy(Resource $ses, string $entryid, int $start, int $end): array | false { |
|
461 | 461 | return []; |
462 | 462 | } |
463 | 463 | |
464 | -function mapi_getuserfreebusyical(Resource $ses, string $entryid, int $start, int $end): false|string { |
|
464 | +function mapi_getuserfreebusyical(Resource $ses, string $entryid, int $start, int $end): false | string { |
|
465 | 465 | return ''; |
466 | 466 | } |
467 | 467 | |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | return false; |
478 | 478 | } |
479 | 479 | |
480 | -function mapi_exportchanges_getchangecount(Resource $r): false|int { |
|
480 | +function mapi_exportchanges_getchangecount(Resource $r): false | int { |
|
481 | 481 | return 0; |
482 | 482 | } |
483 | 483 | |
@@ -527,15 +527,15 @@ discard block |
||
527 | 527 | return false; |
528 | 528 | } |
529 | 529 | |
530 | -function mapi_wrap_importcontentschanges(object &$object): false|Resource { |
|
530 | +function mapi_wrap_importcontentschanges(object &$object): false | Resource { |
|
531 | 531 | return null; |
532 | 532 | } |
533 | 533 | |
534 | -function mapi_wrap_importhierarchychanges(object &$object): false|Resource { |
|
534 | +function mapi_wrap_importhierarchychanges(object &$object): false | Resource { |
|
535 | 535 | return null; |
536 | 536 | } |
537 | 537 | |
538 | -function mapi_inetmapi_imtoinet(Resource $ses, Resource $abk, Resource $msg, array $opts): false|Resource { |
|
538 | +function mapi_inetmapi_imtoinet(Resource $ses, Resource $abk, Resource $msg, array $opts): false | Resource { |
|
539 | 539 | return null; |
540 | 540 | } |
541 | 541 | |
@@ -547,11 +547,11 @@ discard block |
||
547 | 547 | return false; |
548 | 548 | } |
549 | 549 | |
550 | -function mapi_icaltomapi2(Resource $abk, Resource $fld, string $ics): array|false { |
|
550 | +function mapi_icaltomapi2(Resource $abk, Resource $fld, string $ics): array | false { |
|
551 | 551 | return []; |
552 | 552 | } |
553 | 553 | |
554 | -function mapi_mapitoical(Resource $ses, Resource $abk, Resource $msg, array $opts): false|string { |
|
554 | +function mapi_mapitoical(Resource $ses, Resource $abk, Resource $msg, array $opts): false | string { |
|
555 | 555 | return ''; |
556 | 556 | } |
557 | 557 | |
@@ -559,11 +559,11 @@ discard block |
||
559 | 559 | return false; |
560 | 560 | } |
561 | 561 | |
562 | -function mapi_vcftomapi2(Resource $fld, string $vcard): array|false { |
|
562 | +function mapi_vcftomapi2(Resource $fld, string $vcard): array | false { |
|
563 | 563 | return []; |
564 | 564 | } |
565 | 565 | |
566 | -function mapi_mapitovcf(Resource $ses, Resource $abk, Resource $msg, array $opts): false|string { |
|
566 | +function mapi_mapitovcf(Resource $ses, Resource $abk, Resource $msg, array $opts): false | string { |
|
567 | 567 | return ''; |
568 | 568 | } |
569 | 569 | |
@@ -583,7 +583,7 @@ discard block |
||
583 | 583 | return 0; |
584 | 584 | } |
585 | 585 | |
586 | -function nsp_getuserinfo(string $username): array|false { |
|
586 | +function nsp_getuserinfo(string $username): array | false { |
|
587 | 587 | return []; |
588 | 588 | } |
589 | 589 | |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | return false; |
592 | 592 | } |
593 | 593 | |
594 | -function nsp_essdn_to_username(string $essdn): false|string { |
|
594 | +function nsp_essdn_to_username(string $essdn): false | string { |
|
595 | 595 | return ''; |
596 | 596 | } |
597 | 597 | |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | return null; |
604 | 604 | } |
605 | 605 | |
606 | -function mapi_ianatz_to_tzdef(string $tz): false|string { |
|
606 | +function mapi_ianatz_to_tzdef(string $tz): false | string { |
|
607 | 607 | return ''; |
608 | 608 | } |
609 | 609 |
@@ -113,7 +113,7 @@ |
||
113 | 113 | |
114 | 114 | // Filter the relevant constants |
115 | 115 | $relevant_prefixes = ['PR_', 'PidLid', 'MAPI', 'ec', 'RPC_', 'SYNC_']; |
116 | - $relevant_constants = array_filter($constants['Core'], function ($key) use ($relevant_prefixes) { |
|
116 | + $relevant_constants = array_filter($constants['Core'], function($key) use ($relevant_prefixes) { |
|
117 | 117 | foreach ($relevant_prefixes as $prefix) { |
118 | 118 | if (strpos($key, $prefix) === 0) { |
119 | 119 | return true; |