Passed
Push — master ( fe8fd2...ae800f )
by
unknown
07:14 queued 05:00
created
class.taskrequest.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
  * carried in the IPM.TaskRequest item (although this information seems
25 25
  * redundant due to that information already being available in PR_MESSAGE_CLASS).
26 26
  */
27
-define('tdmtNothing', 0);			// Value in IPM.Task items
28
-define('tdmtTaskReq', 1);			// Assigner -> Assignee
29
-define('tdmtTaskAcc', 2);			// Assignee -> Assigner
30
-define('tdmtTaskDec', 3);			// Assignee -> Assigner
31
-define('tdmtTaskUpd', 4);			// Assignee -> Assigner
32
-define('tdmtTaskSELF', 5);			// Assigner -> Assigner (?)
27
+define('tdmtNothing', 0); // Value in IPM.Task items
28
+define('tdmtTaskReq', 1); // Assigner -> Assignee
29
+define('tdmtTaskAcc', 2); // Assignee -> Assigner
30
+define('tdmtTaskDec', 3); // Assignee -> Assigner
31
+define('tdmtTaskUpd', 4); // Assignee -> Assigner
32
+define('tdmtTaskSELF', 5); // Assigner -> Assigner (?)
33 33
 
34 34
 /* The TaskHistory is used to show the last action on the task
35 35
  * on both the assigner and the assignee's side.
@@ -39,22 +39,22 @@  discard block
 block discarded – undo
39 39
  * the format 'Accepted by <user> on 01-01-2010 11:00'.
40 40
  */
41 41
 define('thNone', 0);
42
-define('thAccepted', 1);			// Set by assignee
43
-define('thDeclined', 2);			// Set by assignee
44
-define('thUpdated', 3);				// Set by assignee
42
+define('thAccepted', 1); // Set by assignee
43
+define('thDeclined', 2); // Set by assignee
44
+define('thUpdated', 3); // Set by assignee
45 45
 define('thDueDateChanged', 4);
46
-define('thAssigned', 5);			// Set by assigner
46
+define('thAssigned', 5); // Set by assigner
47 47
 
48 48
 /* The TaskState value is used to differentiate the version of a task
49 49
  * in the assigner's folder and the version in the
50 50
  * assignee's folder. The buttons shown depend on this and
51 51
  * the 'taskaccepted' boolean (for the assignee)
52 52
  */
53
-define('tdsNOM', 0);		// Got a response to a deleted task, and re-created the task for the assigner
54
-define('tdsOWNNEW', 1);		// Not assigned
55
-define('tdsOWN', 2);		// Assignee version
56
-define('tdsACC', 3);		// Assigner version
57
-define('tdsDEC', 4);		// Assigner version, but assignee declined
53
+define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner
54
+define('tdsOWNNEW', 1); // Not assigned
55
+define('tdsOWN', 2); // Assignee version
56
+define('tdsACC', 3); // Assigner version
57
+define('tdsDEC', 4); // Assigner version, but assignee declined
58 58
 
59 59
 /* The TaskAcceptanceState is used for the assigner to indicate state */
60 60
 define('olTaskNotDelegated', 0);
@@ -64,13 +64,13 @@  discard block
 block discarded – undo
64 64
 
65 65
 /* The task ownership indicates the role of the current user relative to the task. */
66 66
 define('olNewTask', 0);
67
-define('olDelegatedTask', 1);	// Task has been assigned
68
-define('olOwnTask', 2);			// Task owned
67
+define('olDelegatedTask', 1); // Task has been assigned
68
+define('olOwnTask', 2); // Task owned
69 69
 
70 70
 /* taskmultrecips indicates whether the task request sent or received has multiple assignees or not. */
71 71
 define('tmrNone', 0);
72
-define('tmrSent', 1);		// Task has been sent to multiple assignee
73
-define('tmrReceived', 2);	// Task Request received has multiple assignee
72
+define('tmrSent', 1); // Task has been sent to multiple assignee
73
+define('tmrReceived', 2); // Task Request received has multiple assignee
74 74
 
75 75
 // Task icon index.
76 76
 define('ICON_TASK_ASSIGNEE', 0x00000502);
@@ -1266,7 +1266,7 @@  discard block
 block discarded – undo
1266 1266
 			}
1267 1267
 
1268 1268
 			foreach ($recips as $recip) {
1269
-				$recip[PR_RECIPIENT_TYPE] = MAPI_TO;	// Change recipient type to MAPI_TO
1269
+				$recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO
1270 1270
 				mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]);
1271 1271
 			}
1272 1272
 
Please login to merge, or discard this patch.
mapidefs.php 1 patch
Spacing   +104 added lines, -104 removed lines patch added patch discarded remove patch
@@ -16,40 +16,40 @@  discard block
 block discarded – undo
16 16
 
17 17
 /* Object type */
18 18
 
19
-define('MAPI_STORE', 0x00000001);     /* Message Store */
20
-define('MAPI_ADDRBOOK', 0x00000002);  /* Address Book */
21
-define('MAPI_FOLDER', 0x00000003);    /* Folder */
22
-define('MAPI_ABCONT', 0x00000004);    /* Address Book Container */
23
-define('MAPI_MESSAGE', 0x00000005);   /* Message */
24
-define('MAPI_MAILUSER', 0x00000006);  /* Individual Recipient */
25
-define('MAPI_ATTACH', 0x00000007);    /* Attachment */
26
-define('MAPI_DISTLIST', 0x00000008);  /* Distribution List Recipient */
27
-define('MAPI_PROFSECT', 0x00000009);  /* Profile Section */
28
-define('MAPI_STATUS', 0x0000000A);    /* Status Object */
29
-define('MAPI_SESSION', 0x0000000B);   /* Session */
30
-define('MAPI_FORMINFO', 0x0000000C);  /* Form Information */
19
+define('MAPI_STORE', 0x00000001); /* Message Store */
20
+define('MAPI_ADDRBOOK', 0x00000002); /* Address Book */
21
+define('MAPI_FOLDER', 0x00000003); /* Folder */
22
+define('MAPI_ABCONT', 0x00000004); /* Address Book Container */
23
+define('MAPI_MESSAGE', 0x00000005); /* Message */
24
+define('MAPI_MAILUSER', 0x00000006); /* Individual Recipient */
25
+define('MAPI_ATTACH', 0x00000007); /* Attachment */
26
+define('MAPI_DISTLIST', 0x00000008); /* Distribution List Recipient */
27
+define('MAPI_PROFSECT', 0x00000009); /* Profile Section */
28
+define('MAPI_STATUS', 0x0000000A); /* Status Object */
29
+define('MAPI_SESSION', 0x0000000B); /* Session */
30
+define('MAPI_FORMINFO', 0x0000000C); /* Form Information */
31 31
 
32 32
 define('MV_FLAG', 0x1000);
33 33
 define('MV_INSTANCE', 0x2000);
34 34
 define('MVI_FLAG', MV_FLAG | MV_INSTANCE);
35 35
 
36
-define('PT_UNSPECIFIED', 0);  /* (Reserved for interface use) type doesn't matter to caller */
37
-define('PT_NULL', 1);         /* NULL property value */
38
-define('PT_I2', 2);           /* Signed 16-bit value */
39
-define('PT_LONG', 3);         /* Signed 32-bit value */
40
-define('PT_R4', 4);           /* 4-byte floating point */
41
-define('PT_DOUBLE', 5);       /* Floating point double */
42
-define('PT_CURRENCY', 6);     /* Signed 64-bit int (decimal w/4 digits right of decimal pt) */
43
-define('PT_APPTIME', 7);      /* Application time */
44
-define('PT_ERROR', 10);       /* 32-bit error value */
45
-define('PT_BOOLEAN', 11);     /* 16-bit boolean (non-zero true) */
46
-define('PT_OBJECT', 13);      /* Embedded object in a property */
47
-define('PT_I8', 20);          /* 8-byte signed integer */
48
-define('PT_STRING8', 30);     /* Null terminated 8-bit character string */
49
-define('PT_UNICODE', 31);     /* Null terminated Unicode string */
50
-define('PT_SYSTIME', 64);     /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */
51
-define('PT_CLSID', 72);       /* OLE GUID */
52
-define('PT_BINARY', 258);     /* Uninterpreted (counted byte array) */
36
+define('PT_UNSPECIFIED', 0); /* (Reserved for interface use) type doesn't matter to caller */
37
+define('PT_NULL', 1); /* NULL property value */
38
+define('PT_I2', 2); /* Signed 16-bit value */
39
+define('PT_LONG', 3); /* Signed 32-bit value */
40
+define('PT_R4', 4); /* 4-byte floating point */
41
+define('PT_DOUBLE', 5); /* Floating point double */
42
+define('PT_CURRENCY', 6); /* Signed 64-bit int (decimal w/4 digits right of decimal pt) */
43
+define('PT_APPTIME', 7); /* Application time */
44
+define('PT_ERROR', 10); /* 32-bit error value */
45
+define('PT_BOOLEAN', 11); /* 16-bit boolean (non-zero true) */
46
+define('PT_OBJECT', 13); /* Embedded object in a property */
47
+define('PT_I8', 20); /* 8-byte signed integer */
48
+define('PT_STRING8', 30); /* Null terminated 8-bit character string */
49
+define('PT_UNICODE', 31); /* Null terminated Unicode string */
50
+define('PT_SYSTIME', 64); /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */
51
+define('PT_CLSID', 72); /* OLE GUID */
52
+define('PT_BINARY', 258); /* Uninterpreted (counted byte array) */
53 53
 /* Changes are likely to these numbers, and to their structures. */
54 54
 
55 55
 /* Alternate property type names for ease of use */
@@ -190,14 +190,14 @@  discard block
 block discarded – undo
190 190
 
191 191
 /* Values for PR_RESOURCE_TYPE, _METHODS, _FLAGS */
192 192
 
193
-define('MAPI_STORE_PROVIDER', 33);     /* Message Store */
194
-define('MAPI_AB', 34);                 /* Address Book */
195
-define('MAPI_AB_PROVIDER', 35);        /* Address Book Provider */
193
+define('MAPI_STORE_PROVIDER', 33); /* Message Store */
194
+define('MAPI_AB', 34); /* Address Book */
195
+define('MAPI_AB_PROVIDER', 35); /* Address Book Provider */
196 196
 define('MAPI_TRANSPORT_PROVIDER', 36); /* Transport Provider */
197
-define('MAPI_SPOOLER', 37);            /* Message Spooler */
198
-define('MAPI_PROFILE_PROVIDER', 38);   /* Profile Provider */
199
-define('MAPI_SUBSYSTEM', 39);          /* Overall Subsystem Status */
200
-define('MAPI_HOOK_PROVIDER', 40);      /* Spooler Hook */
197
+define('MAPI_SPOOLER', 37); /* Message Spooler */
198
+define('MAPI_PROFILE_PROVIDER', 38); /* Profile Provider */
199
+define('MAPI_SUBSYSTEM', 39); /* Overall Subsystem Status */
200
+define('MAPI_HOOK_PROVIDER', 40); /* Spooler Hook */
201 201
 define('STATUS_VALIDATE_STATE', 0x00000001);
202 202
 define('STATUS_SETTINGS_DIALOG', 0x00000002);
203 203
 define('STATUS_CHANGE_PASSWORD', 0x00000004);
@@ -243,10 +243,10 @@  discard block
 block discarded – undo
243 243
 define('MODRECIP_MODIFY', 0x00000004);
244 244
 define('MODRECIP_REMOVE', 0x00000008);
245 245
 
246
-define('MAPI_ORIG', 0);    /* Recipient is message originator */
247
-define('MAPI_TO', 1);      /* Recipient is a primary recipient */
248
-define('MAPI_CC', 2);      /* Recipient is a copy recipient */
249
-define('MAPI_BCC', 3);     /* Recipient is blind copy recipient */
246
+define('MAPI_ORIG', 0); /* Recipient is message originator */
247
+define('MAPI_TO', 1); /* Recipient is a primary recipient */
248
+define('MAPI_CC', 2); /* Recipient is a copy recipient */
249
+define('MAPI_BCC', 3); /* Recipient is blind copy recipient */
250 250
 
251 251
 /* IAttach Interface ------------------------------------------------------- */
252 252
 
@@ -307,26 +307,26 @@  discard block
 block discarded – undo
307 307
 define('MAPI_SEND_NO_RICH_INFO', 0x00010000);
308 308
 
309 309
 /* flags for PR_STORE_SUPPORT_MASK */
310
-define('STORE_ANSI_OK', 0x00020000);          // The message store supports properties containing ANSI (8-bit) characters.
311
-define('STORE_ATTACH_OK', 0x00000020);        // The message store supports attachments (OLE or non-OLE) to messages.
312
-define('STORE_CATEGORIZE_OK', 0x00000400);    // The message store supports categorized views of tables.
313
-define('STORE_CREATE_OK', 0x00000010);        // The message store supports creation of new messages.
314
-define('STORE_ENTRYID_UNIQUE', 0x00000001);   // Entry identifiers for the objects in the message store are unique, that is, never reused during the life of the store.
315
-define('STORE_HTML_OK', 0x00010000);          // The message store supports Hypertext Markup Language (HTML) messages, stored in the PR_BODY_HTML property. Note that STORE_HTML_OK is not defined in versions of MAPIDEFS.H included with Microsoft� Exchange 2000 Server and earlier. If your development environment uses a MAPIDEFS.H file that does not include STORE_HTML_OK, use the value 0x00010000 instead.
316
-define('STORE_LOCALSTORE', 0x00080000);       // This flag is reserved and should not be used.
317
-define('STORE_MODIFY_OK', 0x00000008);        // The message store supports modification of its existing messages.
318
-define('STORE_MV_PROPS_OK', 0x00000200);      // The message store supports multivalued properties, guarantees the stability of value order in a multivalued property throughout a save operation, and supports instantiation of multivalued properties in tables.
319
-define('STORE_NOTIFY_OK', 0x00000100);        // The message store supports notifications.
320
-define('STORE_OLE_OK', 0x00000040);           // The message store supports OLE attachments. The OLE data is accessible through an IStorage interface, such as that available through the PR_ATTACH_DATA_OBJ property.
321
-define('STORE_PUBLIC_FOLDERS', 0x00004000);   // The folders in this store are public (multi-user), not private (possibly multi-instance but not multi-user).
322
-define('STORE_READONLY', 0x00000002);         // All interfaces for the message store have a read-only access level.
323
-define('STORE_RESTRICTION_OK', 0x00001000);   // The message store supports restrictions.
324
-define('STORE_RTF_OK', 0x00000800);           // The message store supports Rich Text Format (RTF) messages, usually stored compressed, and the store itself keeps PR_BODY and PR_RTF_COMPRESSED synchronized.
325
-define('STORE_SEARCH_OK', 0x00000004);        // The message store supports search-results folders.
326
-define('STORE_SORT_OK', 0x00002000);          // The message store supports sorting views of tables.
327
-define('STORE_SUBMIT_OK', 0x00000080);        // The message store supports marking a message for submission.
310
+define('STORE_ANSI_OK', 0x00020000); // The message store supports properties containing ANSI (8-bit) characters.
311
+define('STORE_ATTACH_OK', 0x00000020); // The message store supports attachments (OLE or non-OLE) to messages.
312
+define('STORE_CATEGORIZE_OK', 0x00000400); // The message store supports categorized views of tables.
313
+define('STORE_CREATE_OK', 0x00000010); // The message store supports creation of new messages.
314
+define('STORE_ENTRYID_UNIQUE', 0x00000001); // Entry identifiers for the objects in the message store are unique, that is, never reused during the life of the store.
315
+define('STORE_HTML_OK', 0x00010000); // The message store supports Hypertext Markup Language (HTML) messages, stored in the PR_BODY_HTML property. Note that STORE_HTML_OK is not defined in versions of MAPIDEFS.H included with Microsoft� Exchange 2000 Server and earlier. If your development environment uses a MAPIDEFS.H file that does not include STORE_HTML_OK, use the value 0x00010000 instead.
316
+define('STORE_LOCALSTORE', 0x00080000); // This flag is reserved and should not be used.
317
+define('STORE_MODIFY_OK', 0x00000008); // The message store supports modification of its existing messages.
318
+define('STORE_MV_PROPS_OK', 0x00000200); // The message store supports multivalued properties, guarantees the stability of value order in a multivalued property throughout a save operation, and supports instantiation of multivalued properties in tables.
319
+define('STORE_NOTIFY_OK', 0x00000100); // The message store supports notifications.
320
+define('STORE_OLE_OK', 0x00000040); // The message store supports OLE attachments. The OLE data is accessible through an IStorage interface, such as that available through the PR_ATTACH_DATA_OBJ property.
321
+define('STORE_PUBLIC_FOLDERS', 0x00004000); // The folders in this store are public (multi-user), not private (possibly multi-instance but not multi-user).
322
+define('STORE_READONLY', 0x00000002); // All interfaces for the message store have a read-only access level.
323
+define('STORE_RESTRICTION_OK', 0x00001000); // The message store supports restrictions.
324
+define('STORE_RTF_OK', 0x00000800); // The message store supports Rich Text Format (RTF) messages, usually stored compressed, and the store itself keeps PR_BODY and PR_RTF_COMPRESSED synchronized.
325
+define('STORE_SEARCH_OK', 0x00000004); // The message store supports search-results folders.
326
+define('STORE_SORT_OK', 0x00002000); // The message store supports sorting views of tables.
327
+define('STORE_SUBMIT_OK', 0x00000080); // The message store supports marking a message for submission.
328 328
 define('STORE_UNCOMPRESSED_RTF', 0x00008000); // The message store supports storage of Rich Text Format (RTF) messages in uncompressed form. An uncompressed RTF stream is identified by the value dwMagicUncompressedRTF in the stream header. The dwMagicUncompressedRTF value is defined in the RTFLIB.H file.
329
-define('STORE_UNICODE_OK', 0x00040000);       // The message store supports properties containing Unicode characters.
329
+define('STORE_UNICODE_OK', 0x00040000); // The message store supports properties containing Unicode characters.
330 330
 
331 331
 /*  PR_DISPLAY_TYPEs */
332 332
 /*  For address book contents tables */
@@ -439,21 +439,21 @@  discard block
 block discarded – undo
439 439
 define('BMR_NEZ', 0x00000001);
440 440
 
441 441
 /* array index values of restrictions -- same values are used in php-ext/main.cpp::PHPArraytoSRestriction() */
442
-define('VALUE', 0);        // propval
443
-define('RELOP', 1);        // compare method
444
-define('FUZZYLEVEL', 2);   // string search flags
445
-define('CB', 3);           // size restriction
446
-define('ULTYPE', 4);       // bit mask restriction type BMR_xxx
447
-define('ULMASK', 5);       // bitmask
448
-define('ULPROPTAG', 6);    // property
449
-define('ULPROPTAG1', 7);   // RES_COMPAREPROPS 1st property
450
-define('ULPROPTAG2', 8);   // RES_COMPAREPROPS 2nd property
451
-define('PROPS', 9);        // RES_COMMENT properties
442
+define('VALUE', 0); // propval
443
+define('RELOP', 1); // compare method
444
+define('FUZZYLEVEL', 2); // string search flags
445
+define('CB', 3); // size restriction
446
+define('ULTYPE', 4); // bit mask restriction type BMR_xxx
447
+define('ULMASK', 5); // bitmask
448
+define('ULPROPTAG', 6); // property
449
+define('ULPROPTAG1', 7); // RES_COMPAREPROPS 1st property
450
+define('ULPROPTAG2', 8); // RES_COMPAREPROPS 2nd property
451
+define('PROPS', 9); // RES_COMMENT properties
452 452
 define('RESTRICTION', 10); // RES_COMMENT and RES_SUBRESTRICTION restriction
453 453
 
454 454
 /* GUID's for PR_MDB_PROVIDER */
455
-define("ZARAFA_SERVICE_GUID", makeGuid("{C0A19454-7F29-1B10-A587-08002B2A2517}"));        // default store
456
-define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}"));   // public store
455
+define("ZARAFA_SERVICE_GUID", makeGuid("{C0A19454-7F29-1B10-A587-08002B2A2517}")); // default store
456
+define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}")); // public store
457 457
 define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{0077B49E-E474-CE11-8C5E-00AA004254E2}")); // other store
458 458
 define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}")); // archive store
459 459
 
@@ -586,38 +586,38 @@  discard block
 block discarded – undo
586 586
 define('SYNC_NO_FOREIGN_KEYS', 0x100);
587 587
 define('SYNC_LIMITED_IMESSAGE', 0x200);
588 588
 define('SYNC_CATCHUP', 0x400);
589
-define('SYNC_NEW_MESSAGE', 0x800);               // only applicable to ImportMessageChange()
590
-define('SYNC_MSG_SELECTIVE', 0x1000);            // Used internally. Will reject if used by clients.
589
+define('SYNC_NEW_MESSAGE', 0x800); // only applicable to ImportMessageChange()
590
+define('SYNC_MSG_SELECTIVE', 0x1000); // Used internally. Will reject if used by clients.
591 591
 define('SYNC_BEST_BODY', 0x2000);
592 592
 define('SYNC_IGNORE_SPECIFIED_ON_ASSOCIATED', 0x4000);
593
-define('SYNC_PROGRESS_MODE', 0x8000);            // AirMapi progress mode
593
+define('SYNC_PROGRESS_MODE', 0x8000); // AirMapi progress mode
594 594
 define('SYNC_FXRECOVERMODE', 0x10000);
595 595
 define('SYNC_DEFER_CONFIG', 0x20000);
596
-define('SYNC_FORCE_UNICODE', 0x40000);           // Forces server to return Unicode properties
597
-define('SYNC_STATE_READONLY', 0x80000);          // Server will not update the states in the DB, setting up exporter with this flag states are read only
596
+define('SYNC_FORCE_UNICODE', 0x40000); // Forces server to return Unicode properties
597
+define('SYNC_STATE_READONLY', 0x80000); // Server will not update the states in the DB, setting up exporter with this flag states are read only
598 598
 
599
-define('EMS_AB_ADDRESS_LOOKUP', 0x00000001);     // Flag for resolvename to resolve only exact matches
599
+define('EMS_AB_ADDRESS_LOOKUP', 0x00000001); // Flag for resolvename to resolve only exact matches
600 600
 
601
-define('TBL_BATCH', 0x00000002);                 // Batch multiple table commands
601
+define('TBL_BATCH', 0x00000002); // Batch multiple table commands
602 602
 
603 603
 /* Flags for recipients in exceptions */
604
-define('recipSendable', 0x00000001);             // sendable attendee.
605
-define('recipOrganizer', 0x00000002);            // meeting organizer
606
-define('recipExceptionalResponse', 0x00000010);  // attendee gave a response for the exception
607
-define('recipExceptionalDeleted', 0x00000020);   // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting
608
-define('recipOriginal', 0x00000100);             // recipient is an original Attendee
604
+define('recipSendable', 0x00000001); // sendable attendee.
605
+define('recipOrganizer', 0x00000002); // meeting organizer
606
+define('recipExceptionalResponse', 0x00000010); // attendee gave a response for the exception
607
+define('recipExceptionalDeleted', 0x00000020); // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting
608
+define('recipOriginal', 0x00000100); // recipient is an original Attendee
609 609
 define('recipReserved', 0x00000200);
610 610
 
611 611
 /* Flags which indicates type of Meeting Object */
612
-define('mtgEmpty', 0x00000000);                  // Unspecified.
613
-define('mtgRequest', 0x00000001);                // Initial meeting request.
614
-define('mtgFull', 0x00010000);                   // Full update.
615
-define('mtgInfo', 0x00020000);                   // Informational update.
616
-define('mtgOutOfDate', 0x00080000);              // A newer Meeting Request object or Meeting Update object was received after this one.
617
-define('mtgDelegatorCopy', 0x00100000);          // This is set on the delegator's copy when a delegate will handle meeting-related objects.
612
+define('mtgEmpty', 0x00000000); // Unspecified.
613
+define('mtgRequest', 0x00000001); // Initial meeting request.
614
+define('mtgFull', 0x00010000); // Full update.
615
+define('mtgInfo', 0x00020000); // Informational update.
616
+define('mtgOutOfDate', 0x00080000); // A newer Meeting Request object or Meeting Update object was received after this one.
617
+define('mtgDelegatorCopy', 0x00100000); // This is set on the delegator's copy when a delegate will handle meeting-related objects.
618 618
 
619
-define('MAPI_ONE_OFF_UNICODE', 0x8000);          // the flag that defines whether the embedded strings are Unicode in one off entryids.
620
-define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001);     // the flag that specifies whether the recipient gets TNEF or not.
619
+define('MAPI_ONE_OFF_UNICODE', 0x8000); // the flag that defines whether the embedded strings are Unicode in one off entryids.
620
+define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001); // the flag that specifies whether the recipient gets TNEF or not.
621 621
 
622 622
 /* Mask flags for mapi_msgstore_advise */
623 623
 define('fnevCriticalError', 0x00000001);
@@ -634,21 +634,21 @@  discard block
 block discarded – undo
634 634
 define('fnevExtended', 0x80000000);
635 635
 
636 636
 /* PersistBlockType values PR_ADDITIONAL_REN_ENTRYIDS_EX / PR_ADDITIONAL_REN_ENTRYIDS_EX PersistIDs */
637
-define('PERSIST_SENTINEL', 0x0000);            // Indicates that the PersistData structure is the last one contained in the PidTagAdditionalRenEntryIdsEx property
638
-define('RSF_PID_RSS_SUBSCRIPTION', 0x8001);    // Indicates that the structure contains data for the RSS Feeds folder
639
-define('RSF_PID_SEND_AND_TRACK', 0x8002);      // Indicates that the structure contains data for the Tracked Mail Processing folder
640
-define('RSF_PID_TODO_SEARCH', 0x8004);         // Indicates that the structure contains data for the To-Do folder
641
-define('RSF_PID_CONV_ACTIONS', 0x8006);        // Indicates that the structure contains data for the Conversation Action Settings folder
642
-define('RSF_PID_COMBINED_ACTIONS', 0x8007);    // This value is reserved.
643
-define('RSF_PID_SUGGESTED_CONTACTS', 0x8008);  // Indicates that the structure contains data for the Suggested Contacts folder.
644
-define('RSF_PID_CONTACT_SEARCH', 0x8009);      // Indicates that the structure contains data for the Contacts Search folder.
645
-define('RSF_PID_BUDDYLIST_PDLS', 0x800A);      // Indicates that the structure contains data for the IM Contacts List folder.
646
-define('RSF_PID_BUDDYLIST_CONTACTS', 0x800B);  // Indicates that the structure contains data for the Quick Contacts folder.
637
+define('PERSIST_SENTINEL', 0x0000); // Indicates that the PersistData structure is the last one contained in the PidTagAdditionalRenEntryIdsEx property
638
+define('RSF_PID_RSS_SUBSCRIPTION', 0x8001); // Indicates that the structure contains data for the RSS Feeds folder
639
+define('RSF_PID_SEND_AND_TRACK', 0x8002); // Indicates that the structure contains data for the Tracked Mail Processing folder
640
+define('RSF_PID_TODO_SEARCH', 0x8004); // Indicates that the structure contains data for the To-Do folder
641
+define('RSF_PID_CONV_ACTIONS', 0x8006); // Indicates that the structure contains data for the Conversation Action Settings folder
642
+define('RSF_PID_COMBINED_ACTIONS', 0x8007); // This value is reserved.
643
+define('RSF_PID_SUGGESTED_CONTACTS', 0x8008); // Indicates that the structure contains data for the Suggested Contacts folder.
644
+define('RSF_PID_CONTACT_SEARCH', 0x8009); // Indicates that the structure contains data for the Contacts Search folder.
645
+define('RSF_PID_BUDDYLIST_PDLS', 0x800A); // Indicates that the structure contains data for the IM Contacts List folder.
646
+define('RSF_PID_BUDDYLIST_CONTACTS', 0x800B); // Indicates that the structure contains data for the Quick Contacts folder.
647 647
 
648 648
 /* PersistElementType Values ElementIDs for persist data of PR_ADDITIONAL_REN_ENTRYIDS_EX / PR_ADDITIONAL_REN_ENTRYIDS_EX */
649
-define('ELEMENT_SENTINEL', 0x0000);            // 0 bytes Indicates that the PersistElement structure is the last one contained in the DataElements field of the PersistData structure.
650
-define('RSF_ELID_ENTRYID', 0x0001);            // variable Indicates that the ElementData field contains the entry ID of the special folder that is of the type indicated by the value of the PersistID field of the PersistData structure.
651
-define('RSF_ELID_HEADER', 0x0002);             // 4 bytes Indicates that the ElementData field contains a 4-byte header value equal to 0x00000000.
649
+define('ELEMENT_SENTINEL', 0x0000); // 0 bytes Indicates that the PersistElement structure is the last one contained in the DataElements field of the PersistData structure.
650
+define('RSF_ELID_ENTRYID', 0x0001); // variable Indicates that the ElementData field contains the entry ID of the special folder that is of the type indicated by the value of the PersistID field of the PersistData structure.
651
+define('RSF_ELID_HEADER', 0x0002); // 4 bytes Indicates that the ElementData field contains a 4-byte header value equal to 0x00000000.
652 652
 
653 653
 define('STGM_DIRECT', 0x00000000);
654 654
 define('STGM_TRANSACTED', 0x00010000);
Please login to merge, or discard this patch.
mapi.util.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 		[
213 213
 			RES_OR,
214 214
 			[
215
-				[RES_AND,	// Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd
215
+				[RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd
216 216
 					[
217 217
 						[
218 218
 							RES_PROPERTY,
@@ -241,8 +241,8 @@  discard block
 block discarded – undo
241 241
 						VALUE => true,
242 242
 					],
243 243
 				],
244
-			],	// EXISTS OR
245
-		];		// global OR
244
+			], // EXISTS OR
245
+		]; // global OR
246 246
 
247 247
 	// Get requested properties, plus whatever we need
248 248
 	$proplist = [PR_ENTRYID, $properties["recurring"], $properties["recurring_data"], $properties["timezone_data"]];
Please login to merge, or discard this patch.
class.recurrence.php 1 patch
Spacing   +13 added lines, -25 removed lines patch added patch discarded remove patch
@@ -652,11 +652,8 @@  discard block
 block discarded – undo
652 652
 	public function getOccDate(bool $getStart = true): mixed {
653 653
 		return $getStart ?
654 654
 			(isset($this->recur['startocc']) ?
655
-				$this->recur['start'] + (((int) $this->recur['startocc']) * 60) :
656
-				$this->recur['start']) :
657
-			(isset($this->recur['endocc']) ?
658
-				$this->recur['start'] + (((int) $this->recur['endocc']) * 60) :
659
-				$this->recur['end']);
655
+				$this->recur['start'] + (((int) $this->recur['startocc']) * 60) : $this->recur['start']) : (isset($this->recur['endocc']) ?
656
+				$this->recur['start'] + (((int) $this->recur['endocc']) * 60) : $this->recur['end']);
660 657
 	}
661 658
 
662 659
 	/**
@@ -689,8 +686,7 @@  discard block
 block discarded – undo
689 686
 						$end,
690 687
 						$startocc,
691 688
 						$endocc
692
-					) :
693
-					sprintf(
689
+					) : sprintf(
694 690
 						dgettext('zarafa', 'Occurs every %s %s effective %s until %s from %s to %s.'),
695 691
 						$interval,
696 692
 						$type,
@@ -699,16 +695,14 @@  discard block
 block discarded – undo
699 695
 						$startocc,
700 696
 						$endocc
701 697
 					)
702
-			) :
703
-			(
698
+			) : (
704 699
 				$occSingleDayRank ?
705 700
 					sprintf(
706 701
 						dgettext('zarafa', 'Occurs every %s effective %s until %s.'),
707 702
 						$type,
708 703
 						$start,
709 704
 						$end
710
-					) :
711
-					sprintf(
705
+					) : sprintf(
712 706
 						dgettext('zarafa', 'Occurs every %s %s effective %s until %s.'),
713 707
 						$interval,
714 708
 						$type,
@@ -747,8 +741,7 @@  discard block
 block discarded – undo
747 741
 						$numocc,
748 742
 						$startocc,
749 743
 						$endocc
750
-					) :
751
-					sprintf(
744
+					) : sprintf(
752 745
 						dngettext(
753 746
 							'zarafa',
754 747
 							'Occurs every %s %s effective %s for %s occurrence from %s to %s.',
@@ -762,8 +755,7 @@  discard block
 block discarded – undo
762 755
 						$startocc,
763 756
 						$endocc
764 757
 					)
765
-			) :
766
-			(
758
+			) : (
767 759
 				$occSingleDayRank ?
768 760
 					sprintf(
769 761
 						dngettext(
@@ -775,8 +767,7 @@  discard block
 block discarded – undo
775 767
 						$type,
776 768
 						$start,
777 769
 						$numocc
778
-					) :
779
-					sprintf(
770
+					) : sprintf(
780 771
 						dngettext(
781 772
 							'zarafa',
782 773
 							'Occurs every %s %s effective %s for %s occurrence.',
@@ -812,8 +803,7 @@  discard block
 block discarded – undo
812 803
 						$start,
813 804
 						$startocc,
814 805
 						$endocc
815
-					) :
816
-					sprintf(
806
+					) : sprintf(
817 807
 						dgettext('zarafa', 'Occurs every %s %s effective %s from %s to %s.'),
818 808
 						$interval,
819 809
 						$type,
@@ -821,15 +811,13 @@  discard block
 block discarded – undo
821 811
 						$startocc,
822 812
 						$endocc
823 813
 					)
824
-			) :
825
-			(
814
+			) : (
826 815
 				$occSingleDayRank ?
827 816
 					sprintf(
828 817
 						dgettext('zarafa', 'Occurs every %s effective %s.'),
829 818
 						$type,
830 819
 						$start
831
-					) :
832
-					sprintf(
820
+					) : sprintf(
833 821
 						dgettext('zarafa', 'Occurs every %s %s effective %s.'),
834 822
 						$interval,
835 823
 						$type,
@@ -1309,7 +1297,7 @@  discard block
 block discarded – undo
1309 1297
 				else {
1310 1298
 					$recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable;
1311 1299
 				}
1312
-				$recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone;		// No Response required
1300
+				$recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required
1313 1301
 			}
1314 1302
 			unset($recip);
1315 1303
 			mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']);
@@ -1384,7 +1372,7 @@  discard block
 block discarded – undo
1384 1372
 						else {
1385 1373
 							$recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable;
1386 1374
 						}
1387
-						$recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone;	// No Response required
1375
+						$recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required
1388 1376
 						$deletedRecipients[] = $recipient;
1389 1377
 					}
1390 1378
 				}
Please login to merge, or discard this patch.
class.meetingrequest.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -166,15 +166,15 @@  discard block
 block discarded – undo
166 166
 		$properties['reminderminutes'] = 'PT_LONG:PSETID_Common:' . PidLidReminderDelta;
167 167
 		$properties['reminderset'] = 'PT_BOOLEAN:PSETID_Common:' . PidLidReminderSet;
168 168
 		$properties['sendasical'] = 'PT_BOOLEAN:PSETID_Appointment:0x8200';
169
-		$properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:' . PidLidAppointmentSequence;					// AppointmentSequenceNumber
169
+		$properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:' . PidLidAppointmentSequence; // AppointmentSequenceNumber
170 170
 		$properties['unknown7'] = 'PT_LONG:PSETID_Appointment:0x8202';
171
-		$properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203';			// AppointmentLastSequence
171
+		$properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence
172 172
 		$properties['busystatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidBusyStatus;
173 173
 		$properties['intendedbusystatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidIntendedBusyStatus;
174 174
 		$properties['start'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentStartWhole;
175 175
 		$properties['responselocation'] = 'PT_STRING8:PSETID_Meeting:0x2';
176 176
 		$properties['location'] = 'PT_STRING8:PSETID_Appointment:' . PidLidLocation;
177
-		$properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229';		// PidLidFInvited, MeetingRequestWasSent
177
+		$properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent
178 178
 		$properties['startdate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentStartWhole;
179 179
 		$properties['duedate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentEndWhole;
180 180
 		$properties['flagdueby'] = 'PT_SYSTIME:PSETID_Common:' . PidLidReminderSignalTime;
@@ -183,11 +183,11 @@  discard block
 block discarded – undo
183 183
 		$properties['recurring'] = 'PT_BOOLEAN:PSETID_Appointment:' . PidLidRecurring;
184 184
 		$properties['clipstart'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidClipStart;
185 185
 		$properties['clipend'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidClipEnd;
186
-		$properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD';				// StartRecurTime
187
-		$properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE';				// StartRecurTime
188
-		$properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF';				// EndRecurDate
189
-		$properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10';				// EndRecurTime
190
-		$properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA';				// LID_IS_EXCEPTION
186
+		$properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime
187
+		$properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime
188
+		$properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate
189
+		$properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime
190
+		$properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION
191 191
 		$properties['apptreplyname'] = 'PT_STRING8:PSETID_Appointment:0x8230';
192 192
 		// Propose new time properties
193 193
 		$properties['proposed_start_whole'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentProposedStartWhole;
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
 		$listProperties['rcvd_representing_search_key'] = PR_RCVD_REPRESENTING_SEARCH_KEY;
571 571
 		$messageProps = mapi_getprops($this->message, $listProperties);
572 572
 
573
-		$goid = $messageProps[$this->proptags['goid']];	// GlobalID (0x3)
573
+		$goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3)
574 574
 		if (!isset($goid)) {
575 575
 			return;
576 576
 		}
@@ -1532,7 +1532,7 @@  discard block
 block discarded – undo
1532 1532
 		$props[$this->proptags['goid2']] = $goid;
1533 1533
 
1534 1534
 		if (!isset($props[$this->proptags['updatecounter']])) {
1535
-			$props[$this->proptags['updatecounter']] = 0;			// OL also starts sequence no with zero.
1535
+			$props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero.
1536 1536
 			$props[$this->proptags['last_updatecounter']] = 0;
1537 1537
 		}
1538 1538
 
@@ -2552,7 +2552,7 @@  discard block
 block discarded – undo
2552 2552
 		$getResourcesRestriction = [
2553 2553
 			RES_PROPERTY,
2554 2554
 			[
2555
-				RELOP => RELOP_EQ,	// Equals recipient type 3: Resource
2555
+				RELOP => RELOP_EQ, // Equals recipient type 3: Resource
2556 2556
 				ULPROPTAG => PR_RECIPIENT_TYPE,
2557 2557
 				VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
2558 2558
 			],
@@ -3036,7 +3036,7 @@  discard block
 block discarded – undo
3036 3036
 				$restriction[1][] = [
3037 3037
 					RES_PROPERTY,
3038 3038
 					[
3039
-						RELOP => RELOP_NE,	// Does not equal recipient type: MAPI_BCC (Resource)
3039
+						RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource)
3040 3040
 						ULPROPTAG => PR_RECIPIENT_TYPE,
3041 3041
 						VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
3042 3042
 					],
@@ -3139,7 +3139,7 @@  discard block
 block discarded – undo
3139 3139
 			$stripResourcesRestriction[1][] = [
3140 3140
 				RES_PROPERTY,
3141 3141
 				[
3142
-					RELOP => RELOP_NE,	// Does not equal recipient type: MAPI_BCC (Resource)
3142
+					RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource)
3143 3143
 					ULPROPTAG => PR_RECIPIENT_TYPE,
3144 3144
 					VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
3145 3145
 				],
@@ -3245,7 +3245,7 @@  discard block
 block discarded – undo
3245 3245
 			$newmessageprops[PR_MESSAGE_CLASS] = 'IPM.Schedule.Meeting.Canceled';
3246 3246
 			$newmessageprops[$this->proptags['meetingstatus']] = olMeetingCanceled; // It's a cancel request
3247 3247
 			$newmessageprops[$this->proptags['busystatus']] = fbFree; // set the busy status as free
3248
-			$newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH;	// HIGH Importance
3248
+			$newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance
3249 3249
 			if (isset($newmessageprops[PR_SUBJECT])) {
3250 3250
 				$newmessageprops[PR_SUBJECT] = dgettext('zarafa', 'Canceled') . ': ' . $newmessageprops[PR_SUBJECT];
3251 3251
 			}
Please login to merge, or discard this patch.
dev/generate_php-mapi-stub.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@
 block discarded – undo
119 119
 
120 120
 		// Filter the relevant constants
121 121
 		$relevant_prefixes = ['PR_', 'PidLid', 'MAPI', 'ec', 'RPC_', 'SYNC_'];
122
-		$relevant_constants = array_filter($constants, function ($key) use ($relevant_prefixes) {
122
+		$relevant_constants = array_filter($constants, function($key) use ($relevant_prefixes) {
123 123
 			foreach ($relevant_prefixes as $prefix) {
124 124
 				if (str_starts_with($key, $prefix)) {
125 125
 					return true;
Please login to merge, or discard this patch.
dev/php-mapi-stub.php 1 patch
Spacing   +61 added lines, -61 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
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
  * @param int $flags
113 113
  * @return resource|bool
114 114
  */
115
-function mapi_logon_np(string $username, int $flags): resource|bool {
115
+function mapi_logon_np(string $username, int $flags): resource | bool {
116 116
 	return new resource();
117 117
 }
118 118
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
  * @param string $token
121 121
  * @return resource|bool
122 122
  */
123
-function mapi_logon_token(string $token): resource|bool {
123
+function mapi_logon_token(string $token): resource | bool {
124 124
 	return new resource();
125 125
 }
126 126
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
  * @param resource $session
129 129
  * @return resource|bool
130 130
  */
131
-function mapi_getmsgstorestable(resource $session): resource|bool {
131
+function mapi_getmsgstorestable(resource $session): resource | bool {
132 132
 	return new resource();
133 133
 }
134 134
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
  * @param string $entryid
138 138
  * @return resource|bool
139 139
  */
140
-function mapi_openmsgstore(resource $ses, string $entryid): resource|bool {
140
+function mapi_openmsgstore(resource $ses, string $entryid): resource | bool {
141 141
 	return new resource();
142 142
 }
143 143
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
  * @param string $uid
147 147
  * @return resource|bool
148 148
  */
149
-function mapi_openprofilesection(resource $ses, string $uid): resource|bool {
149
+function mapi_openprofilesection(resource $ses, string $uid): resource | bool {
150 150
 	return new resource();
151 151
 }
152 152
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
  * @param resource $session
155 155
  * @return resource|bool
156 156
  */
157
-function mapi_openaddressbook(resource $session): resource|bool {
157
+function mapi_openaddressbook(resource $session): resource | bool {
158 158
 	return new resource();
159 159
 }
160 160
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
  * @param ?int $flags
165 165
  * @return resource|bool
166 166
  */
167
-function mapi_openentry(resource $ses, ?string $entryid = null, ?int $flags = 0): resource|bool {
167
+function mapi_openentry(resource $ses, ?string $entryid = null, ?int $flags = 0): resource | bool {
168 168
 	return new resource();
169 169
 }
170 170
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
  * @param ?int $flags
175 175
  * @return resource|bool
176 176
  */
177
-function mapi_ab_openentry(resource $abk, ?string $entryid = null, ?int $flags = 0): resource|bool {
177
+function mapi_ab_openentry(resource $abk, ?string $entryid = null, ?int $flags = 0): resource | bool {
178 178
 	return new resource();
179 179
 }
180 180
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
  * @param resource $abk
193 193
  * @return string|bool
194 194
  */
195
-function mapi_ab_getdefaultdir(resource $abk): string|bool {
195
+function mapi_ab_getdefaultdir(resource $abk): string | bool {
196 196
 	return '';
197 197
 }
198 198
 
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
  * @param string $mailbox_dn
202 202
  * @return string|bool
203 203
  */
204
-function mapi_msgstore_createentryid(resource $store, string $mailbox_dn): string|bool {
204
+function mapi_msgstore_createentryid(resource $store, string $mailbox_dn): string | bool {
205 205
 	return '';
206 206
 }
207 207
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
  * @param ?int $flags
222 222
  * @return resource|bool
223 223
  */
224
-function mapi_msgstore_openentry(resource $store, ?string $entryid = null, ?int $flags = 0): resource|bool {
224
+function mapi_msgstore_openentry(resource $store, ?string $entryid = null, ?int $flags = 0): resource | bool {
225 225
 	return new resource();
226 226
 }
227 227
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
  * @param resource $store
230 230
  * @return resource|bool
231 231
  */
232
-function mapi_msgstore_getreceivefolder(resource $store): resource|bool {
232
+function mapi_msgstore_getreceivefolder(resource $store): resource | bool {
233 233
 	return new resource();
234 234
 }
235 235
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
  * @param ?string $sk_msg
240 240
  * @return string|bool
241 241
  */
242
-function mapi_msgstore_entryidfromsourcekey(resource $store, string $sk_fld, ?string $sk_msg = null): string|bool {
242
+function mapi_msgstore_entryidfromsourcekey(resource $store, string $sk_fld, ?string $sk_msg = null): string | bool {
243 243
 	return '';
244 244
 }
245 245
 
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
  * @param resource $sink
251 251
  * @return int|bool
252 252
  */
253
-function mapi_msgstore_advise(resource $store, string $entryid, int $event_mask, resource $sink): int|bool {
253
+function mapi_msgstore_advise(resource $store, string $entryid, int $event_mask, resource $sink): int | bool {
254 254
 	return 0;
255 255
 }
256 256
 
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 /**
276 276
  * @return resource|bool
277 277
  */
278
-function mapi_sink_create(): resource|bool {
278
+function mapi_sink_create(): resource | bool {
279 279
 	return new resource();
280 280
 }
281 281
 
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
  * @param resource $table
314 314
  * @return int|bool
315 315
  */
316
-function mapi_table_getrowcount(resource $table): int|bool {
316
+function mapi_table_getrowcount(resource $table): int | bool {
317 317
 	return 0;
318 318
 }
319 319
 
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
  * @param int $rowcount
334 334
  * @return int|bool
335 335
  */
336
-function mapi_table_seekrow(resource $table, int $bookmark, int $rowcount): int|bool {
336
+function mapi_table_seekrow(resource $table, int $bookmark, int $rowcount): int | bool {
337 337
 	return 0;
338 338
 }
339 339
 
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
  * @param ?int $flags
365 365
  * @return int|bool
366 366
  */
367
-function mapi_table_findrow(resource $table, array $restrict, ?int $bookmark = 0, ?int $flags = 0): int|bool {
367
+function mapi_table_findrow(resource $table, array $restrict, ?int $bookmark = 0, ?int $flags = 0): int | bool {
368 368
 	return 0;
369 369
 }
370 370
 
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
  * @param resource $table
373 373
  * @return int|bool
374 374
  */
375
-function mapi_table_createbookmark(resource $table): int|bool {
375
+function mapi_table_createbookmark(resource $table): int | bool {
376 376
 	return 0;
377 377
 }
378 378
 
@@ -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_gethierarchytable(resource $fld, ?int $flags = 0): resource|bool {
393
+function mapi_folder_gethierarchytable(resource $fld, ?int $flags = 0): resource | bool {
394 394
 	return new resource();
395 395
 }
396 396
 
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
  * @param ?int $flags
400 400
  * @return resource|bool
401 401
  */
402
-function mapi_folder_getcontentstable(resource $fld, ?int $flags = 0): resource|bool {
402
+function mapi_folder_getcontentstable(resource $fld, ?int $flags = 0): resource | bool {
403 403
 	return new resource();
404 404
 }
405 405
 
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
  * @param resource $fld
408 408
  * @return resource|bool
409 409
  */
410
-function mapi_folder_getrulestable(resource $fld): resource|bool {
410
+function mapi_folder_getrulestable(resource $fld): resource | bool {
411 411
 	return new resource();
412 412
 }
413 413
 
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
  * @param ?int $flags
417 417
  * @return resource|bool
418 418
  */
419
-function mapi_folder_createmessage(resource $fld, ?int $flags = 0): resource|bool {
419
+function mapi_folder_createmessage(resource $fld, ?int $flags = 0): resource | bool {
420 420
 	return new resource();
421 421
 }
422 422
 
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
  * @param ?int $folder_type
429 429
  * @return resource|bool
430 430
  */
431
-function mapi_folder_createfolder(resource $fld, string $fname, ?string $comment = null, ?int $flags = 0, ?int $folder_type = 0): resource|bool {
431
+function mapi_folder_createfolder(resource $fld, string $fname, ?string $comment = null, ?int $flags = 0, ?int $folder_type = 0): resource | bool {
432 432
 	return new resource();
433 433
 }
434 434
 
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
  * @param resource $msg
529 529
  * @return resource|bool
530 530
  */
531
-function mapi_message_getattachmenttable(resource $msg): resource|bool {
531
+function mapi_message_getattachmenttable(resource $msg): resource | bool {
532 532
 	return new resource();
533 533
 }
534 534
 
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
  * @param resource $msg
537 537
  * @return resource|bool
538 538
  */
539
-function mapi_message_getrecipienttable(resource $msg): resource|bool {
539
+function mapi_message_getrecipienttable(resource $msg): resource | bool {
540 540
 	return new resource();
541 541
 }
542 542
 
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
  * @param int $id
546 546
  * @return resource|bool
547 547
  */
548
-function mapi_message_openattach(resource $msg, int $id): resource|bool {
548
+function mapi_message_openattach(resource $msg, int $id): resource | bool {
549 549
 	return new resource();
550 550
 }
551 551
 
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
  * @param ?int $flags
555 555
  * @return resource|bool
556 556
  */
557
-function mapi_message_createattach(resource $msg, ?int $flags = 0): resource|bool {
557
+function mapi_message_createattach(resource $msg, ?int $flags = 0): resource | bool {
558 558
 	return new resource();
559 559
 }
560 560
 
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
  * @param ?string $guid
603 603
  * @return resource|bool
604 604
  */
605
-function mapi_openpropertytostream(resource $any, int $proptag, ?int $flags = 0, ?string $guid = null): resource|bool {
605
+function mapi_openpropertytostream(resource $any, int $proptag, ?int $flags = 0, ?string $guid = null): resource | bool {
606 606
 	return new resource();
607 607
 }
608 608
 
@@ -611,7 +611,7 @@  discard block
 block discarded – undo
611 611
  * @param string $data
612 612
  * @return int|bool
613 613
  */
614
-function mapi_stream_write(resource $stream, string $data): int|bool {
614
+function mapi_stream_write(resource $stream, string $data): int | bool {
615 615
 	return 0;
616 616
 }
617 617
 
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
  * @param int $size
621 621
  * @return string|bool
622 622
  */
623
-function mapi_stream_read(resource $stream, int $size): string|bool {
623
+function mapi_stream_read(resource $stream, int $size): string | bool {
624 624
 	return '';
625 625
 }
626 626
 
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
  * @param resource $stream
629 629
  * @return array|bool
630 630
  */
631
-function mapi_stream_stat(resource $stream): array|bool {
631
+function mapi_stream_stat(resource $stream): array | bool {
632 632
 	return [];
633 633
 }
634 634
 
@@ -662,7 +662,7 @@  discard block
 block discarded – undo
662 662
 /**
663 663
  * @return resource|bool
664 664
  */
665
-function mapi_stream_create(): resource|bool {
665
+function mapi_stream_create(): resource | bool {
666 666
 	return new resource();
667 667
 }
668 668
 
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
  * @param ?int $flags
672 672
  * @return resource|bool
673 673
  */
674
-function mapi_attach_openobj(resource $attach, ?int $flags = 0): resource|bool {
674
+function mapi_attach_openobj(resource $attach, ?int $flags = 0): resource | bool {
675 675
 	return new resource();
676 676
 }
677 677
 
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
  * @param ?int $flags
723 723
  * @return resource|bool
724 724
  */
725
-function mapi_openproperty(resource $any, int $proptag, ?string $iid = null, ?int $interfaceflags = 0, ?int $flags = 0): resource|bool {
725
+function mapi_openproperty(resource $any, int $proptag, ?string $iid = null, ?int $interfaceflags = 0, ?int $flags = 0): resource | bool {
726 726
 	return new resource();
727 727
 }
728 728
 
@@ -740,7 +740,7 @@  discard block
 block discarded – undo
740 740
  * @param ?array $names
741 741
  * @return array|bool
742 742
  */
743
-function mapi_getnamesfromids(resource $any, ?array $names = null): array|bool {
743
+function mapi_getnamesfromids(resource $any, ?array $names = null): array | bool {
744 744
 	return [];
745 745
 }
746 746
 
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
  * @param ?array $guids
751 751
  * @return array|bool
752 752
  */
753
-function mapi_getidsfromnames(resource $store, array $names, ?array $guids = null): array|bool {
753
+function mapi_getidsfromnames(resource $store, array $names, ?array $guids = null): array | bool {
754 754
 	return [];
755 755
 }
756 756
 
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
  * @param string $data
759 759
  * @return string|bool
760 760
  */
761
-function mapi_decompressrtf(string $data): string|bool {
761
+function mapi_decompressrtf(string $data): string | bool {
762 762
 	return '';
763 763
 }
764 764
 
@@ -767,7 +767,7 @@  discard block
 block discarded – undo
767 767
  * @param int $type
768 768
  * @return array|bool
769 769
  */
770
-function mapi_zarafa_getpermissionrules(resource $any, int $type): array|bool {
770
+function mapi_zarafa_getpermissionrules(resource $any, int $type): array | bool {
771 771
 	return [];
772 772
 }
773 773
 
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
  * @param int $end
788 788
  * @return array|bool
789 789
  */
790
-function mapi_getuserfreebusy(resource $ses, string $entryid, int $start, int $end): array|bool {
790
+function mapi_getuserfreebusy(resource $ses, string $entryid, int $start, int $end): array | bool {
791 791
 	return [];
792 792
 }
793 793
 
@@ -798,7 +798,7 @@  discard block
 block discarded – undo
798 798
  * @param int $end
799 799
  * @return string|bool
800 800
  */
801
-function mapi_getuserfreebusyical(resource $ses, string $entryid, int $start, int $end): string|bool {
801
+function mapi_getuserfreebusyical(resource $ses, string $entryid, int $start, int $end): string | bool {
802 802
 	return '';
803 803
 }
804 804
 
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
  * @param resource $r
839 839
  * @return int|bool
840 840
  */
841
-function mapi_exportchanges_getchangecount(resource $r): int|bool {
841
+function mapi_exportchanges_getchangecount(resource $r): int | bool {
842 842
 	return 0;
843 843
 }
844 844
 
@@ -946,7 +946,7 @@  discard block
 block discarded – undo
946 946
  * @param object &$object
947 947
  * @return resource|bool
948 948
  */
949
-function mapi_wrap_importcontentschanges(object &$object): resource|bool {
949
+function mapi_wrap_importcontentschanges(object &$object): resource | bool {
950 950
 	return new resource();
951 951
 }
952 952
 
@@ -954,7 +954,7 @@  discard block
 block discarded – undo
954 954
  * @param object &$object
955 955
  * @return resource|bool
956 956
  */
957
-function mapi_wrap_importhierarchychanges(object &$object): resource|bool {
957
+function mapi_wrap_importhierarchychanges(object &$object): resource | bool {
958 958
 	return new resource();
959 959
 }
960 960
 
@@ -965,7 +965,7 @@  discard block
 block discarded – undo
965 965
  * @param array $opts
966 966
  * @return resource|bool
967 967
  */
968
-function mapi_inetmapi_imtoinet(resource $ses, resource $abk, resource $msg, array $opts): resource|bool {
968
+function mapi_inetmapi_imtoinet(resource $ses, resource $abk, resource $msg, array $opts): resource | bool {
969 969
 	return new resource();
970 970
 }
971 971
 
@@ -1001,7 +1001,7 @@  discard block
 block discarded – undo
1001 1001
  * @param string $ics
1002 1002
  * @return array|bool
1003 1003
  */
1004
-function mapi_icaltomapi2(resource $abk, resource $fld, string $ics): array|bool {
1004
+function mapi_icaltomapi2(resource $abk, resource $fld, string $ics): array | bool {
1005 1005
 	return [];
1006 1006
 }
1007 1007
 
@@ -1012,7 +1012,7 @@  discard block
 block discarded – undo
1012 1012
  * @param array $opts
1013 1013
  * @return string|bool
1014 1014
  */
1015
-function mapi_mapitoical(resource $ses, resource $abk, resource $msg, array $opts): string|bool {
1015
+function mapi_mapitoical(resource $ses, resource $abk, resource $msg, array $opts): string | bool {
1016 1016
 	return '';
1017 1017
 }
1018 1018
 
@@ -1032,7 +1032,7 @@  discard block
 block discarded – undo
1032 1032
  * @param string $vcard
1033 1033
  * @return array|bool
1034 1034
  */
1035
-function mapi_vcftomapi2(resource $fld, string $vcard): array|bool {
1035
+function mapi_vcftomapi2(resource $fld, string $vcard): array | bool {
1036 1036
 	return [];
1037 1037
 }
1038 1038
 
@@ -1043,7 +1043,7 @@  discard block
 block discarded – undo
1043 1043
  * @param array $opts
1044 1044
  * @return string|bool
1045 1045
  */
1046
-function mapi_mapitovcf(resource $ses, resource $abk, resource $msg, array $opts): string|bool {
1046
+function mapi_mapitovcf(resource $ses, resource $abk, resource $msg, array $opts): string | bool {
1047 1047
 	return '';
1048 1048
 }
1049 1049
 
@@ -1085,7 +1085,7 @@  discard block
 block discarded – undo
1085 1085
  * @param string $username
1086 1086
  * @return array|bool
1087 1087
  */
1088
-function nsp_getuserinfo(string $username): array|bool {
1088
+function nsp_getuserinfo(string $username): array | bool {
1089 1089
 	return [];
1090 1090
 }
1091 1091
 
@@ -1103,7 +1103,7 @@  discard block
 block discarded – undo
1103 1103
  * @param string $essdn
1104 1104
  * @return string|bool
1105 1105
  */
1106
-function nsp_essdn_to_username(string $essdn): string|bool {
1106
+function nsp_essdn_to_username(string $essdn): string | bool {
1107 1107
 	return '';
1108 1108
 }
1109 1109
 
@@ -1121,7 +1121,7 @@  discard block
 block discarded – undo
1121 1121
  * @param string $tz
1122 1122
  * @return string|bool
1123 1123
  */
1124
-function mapi_ianatz_to_tzdef(string $tz): string|bool {
1124
+function mapi_ianatz_to_tzdef(string $tz): string | bool {
1125 1125
 	return '';
1126 1126
 }
1127 1127
 
Please login to merge, or discard this patch.
class.baserecurrence.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1414,7 +1414,7 @@  discard block
 block discarded – undo
1414 1414
 			if ($this->tz["timezone"] != 0) {
1415 1415
 				// Create user readable timezone information
1416 1416
 				$timezone = sprintf(
1417
-					"(GMT %s%02d:%02d)",-$this->tz["timezone"] > 0 ? "+" : "-",
1417
+					"(GMT %s%02d:%02d)", -$this->tz["timezone"] > 0 ? "+" : "-",
1418 1418
 					abs($this->tz["timezone"] / 60),
1419 1419
 					abs($this->tz["timezone"] % 60)
1420 1420
 				);
@@ -1944,7 +1944,7 @@  discard block
 block discarded – undo
1944 1944
 					}
1945 1945
 					elseif ($this->recur['regen']) {
1946 1946
 						$year_starttime = $this->gmtime($now);
1947
-						$is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1);	// +1 next year
1947
+						$is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year
1948 1948
 						$now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */);
1949 1949
 
1950 1950
 						if ($now <= $dayend) {
Please login to merge, or discard this patch.