Test Failed
Branch master (1ac602)
by Mike
02:45
created
mapi/class.taskrequest.php 1 patch
Spacing   +32 added lines, -32 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);
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 					],
313 313
 				];
314 314
 
315
-				$table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES);
315
+				$table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES);
316 316
 				$softDeletedItems = mapi_table_queryallrows($table, [PR_ENTRYID], $restriction);
317 317
 				if (!empty($softDeletedItems)) {
318 318
 					return true;
@@ -525,12 +525,12 @@  discard block
 block discarded – undo
525 525
 			// Set properties on Task Request
526 526
 			mapi_setprops($this->message, [
527 527
 				$this->props['task_goid'] => $taskid, /* our new task_goid */
528
-				$this->props['taskstate'] => tdsACC, 		/* state for our outgoing request */
529
-				$this->props['taskmode'] => tdmtNothing, 	/* we're not sending a change */
530
-				$this->props['updatecount'] => 2,			/* version 2 (no idea) */
528
+				$this->props['taskstate'] => tdsACC, /* state for our outgoing request */
529
+				$this->props['taskmode'] => tdmtNothing, /* we're not sending a change */
530
+				$this->props['updatecount'] => 2, /* version 2 (no idea) */
531 531
 				$this->props['task_acceptance_state'] => olTaskDelegationUnknown, /* no reply yet */
532 532
 				$this->props['ownership'] => olDelegatedTask, /* Task has been assigned */
533
-				$this->props['taskhistory'] => thAssigned,	/* Task has been assigned */
533
+				$this->props['taskhistory'] => thAssigned, /* Task has been assigned */
534 534
 				PR_CONVERSATION_TOPIC => $messageprops[PR_SUBJECT],
535 535
 				PR_ICON_INDEX => ICON_TASK_ASSIGNER,
536 536
 			]);
@@ -547,10 +547,10 @@  discard block
 block discarded – undo
547 547
 
548 548
 			// Make it a task request, and put it in sent items after it is sent
549 549
 			mapi_setprops($outgoing, [
550
-				PR_MESSAGE_CLASS => "IPM.TaskRequest", 		/* class is task request */
551
-				$this->props['taskstate'] => tdsOWN, 	    /* for the recipient he is the task owner */
552
-				$this->props['taskmode'] => tdmtTaskReq,	/* for the recipient it's a request */
553
-				$this->props['updatecount'] => 1,			/* version 2 is in the attachment */
550
+				PR_MESSAGE_CLASS => "IPM.TaskRequest", /* class is task request */
551
+				$this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */
552
+				$this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */
553
+				$this->props['updatecount'] => 1, /* version 2 is in the attachment */
554 554
 				PR_SUBJECT_PREFIX => $prefix,
555 555
 				PR_SUBJECT => $prefix . $messageprops[PR_SUBJECT],
556 556
 			]);
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
 				PR_ATTACHMENT_HIDDEN => true,
562 562
 				PR_DISPLAY_NAME => $messageprops[PR_SUBJECT], ]);
563 563
 
564
-			$sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_MODIFY | MAPI_CREATE);
564
+			$sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_MODIFY|MAPI_CREATE);
565 565
 
566 566
 			mapi_copyto($this->message, [], [], $sub);
567 567
 			mapi_setprops($sub, [PR_MESSAGE_CLASS => 'IPM.Task']);
@@ -903,7 +903,7 @@  discard block
 block discarded – undo
903 903
 
904 904
 			$attach = mapi_message_createattach($outgoing);
905 905
 			mapi_setprops($attach, [PR_ATTACH_METHOD => ATTACH_EMBEDDED_MSG, PR_DISPLAY_NAME => $messageprops[PR_CONVERSATION_TOPIC], PR_ATTACHMENT_HIDDEN => true]);
906
-			$sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_CREATE | MAPI_MODIFY);
906
+			$sub = mapi_attach_openproperty($attach, PR_ATTACH_DATA_OBJ, IID_IMessage, 0, MAPI_CREATE|MAPI_MODIFY);
907 907
 
908 908
 			$message = !$this->isTaskRequest() ? $this->message : $this->getAssociatedTask(false);
909 909
 
@@ -954,7 +954,7 @@  discard block
 block discarded – undo
954 954
 			// edit response before sending task response.
955 955
 			if ($this->taskCommentsInfo) {
956 956
 				$comments = $this->getTaskCommentsInfo();
957
-				$stream = mapi_openproperty($outgoing, PR_BODY, IID_IStream, STGM_TRANSACTED, MAPI_CREATE | MAPI_MODIFY);
957
+				$stream = mapi_openproperty($outgoing, PR_BODY, IID_IStream, STGM_TRANSACTED, MAPI_CREATE|MAPI_MODIFY);
958 958
 				mapi_stream_setsize($stream, strlen($comments));
959 959
 				mapi_stream_write($stream, $comments);
960 960
 				mapi_stream_commit($stream);
@@ -1232,7 +1232,7 @@  discard block
 block discarded – undo
1232 1232
 				}
1233 1233
 
1234 1234
 				foreach ($recips as $recip) {
1235
-					$recip[PR_RECIPIENT_TYPE] = MAPI_TO;	// Change recipient type to MAPI_TO
1235
+					$recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO
1236 1236
 					mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]);
1237 1237
 				}
1238 1238
 
Please login to merge, or discard this patch.
mapi/class.recurrence.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -735,7 +735,7 @@  discard block
 block discarded – undo
735 735
 			$props[PR_EXCEPTION_ENDTIME] = $this->fromGMT($this->tz, $exception_props[$this->proptags["duedate"]]);
736 736
 			mapi_setprops($attachment, $props);
737 737
 
738
-			$imessage = mapi_attach_openobj($attachment, MAPI_CREATE | MAPI_MODIFY);
738
+			$imessage = mapi_attach_openobj($attachment, MAPI_CREATE|MAPI_MODIFY);
739 739
 
740 740
 			if ($copy_attach_from) {
741 741
 				$attachmentTable = mapi_message_getattachmenttable($copy_attach_from);
@@ -1119,13 +1119,13 @@  discard block
 block discarded – undo
1119 1119
 			// Remove all deleted recipients
1120 1120
 			if (isset($exception_recips['remove'])) {
1121 1121
 				foreach ($exception_recips['remove'] as &$recip) {
1122
-					if (!isset($recip[PR_RECIPIENT_FLAGS]) || $recip[PR_RECIPIENT_FLAGS] != (recipReserved | recipExceptionalDeleted | recipSendable)) {
1123
-						$recip[PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalDeleted;
1122
+					if (!isset($recip[PR_RECIPIENT_FLAGS]) || $recip[PR_RECIPIENT_FLAGS] != (recipReserved|recipExceptionalDeleted|recipSendable)) {
1123
+						$recip[PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalDeleted;
1124 1124
 					}
1125 1125
 					else {
1126
-						$recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable;
1126
+						$recip[PR_RECIPIENT_FLAGS] = recipReserved|recipExceptionalDeleted|recipSendable;
1127 1127
 					}
1128
-					$recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone;		// No Response required
1128
+					$recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required
1129 1129
 				}
1130 1130
 				unset($recip);
1131 1131
 				mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']);
@@ -1194,13 +1194,13 @@  discard block
 block discarded – undo
1194 1194
 
1195 1195
 						// If recipient is not in list of deleted recipient, add him
1196 1196
 						if (!$foundInDeletedRecipients) {
1197
-							if (!isset($recipient[PR_RECIPIENT_FLAGS]) || $recipient[PR_RECIPIENT_FLAGS] != (recipReserved | recipExceptionalDeleted | recipSendable)) {
1198
-								$recipient[PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalDeleted;
1197
+							if (!isset($recipient[PR_RECIPIENT_FLAGS]) || $recipient[PR_RECIPIENT_FLAGS] != (recipReserved|recipExceptionalDeleted|recipSendable)) {
1198
+								$recipient[PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalDeleted;
1199 1199
 							}
1200 1200
 							else {
1201
-								$recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable;
1201
+								$recipient[PR_RECIPIENT_FLAGS] = recipReserved|recipExceptionalDeleted|recipSendable;
1202 1202
 							}
1203
-							$recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone;	// No Response required
1203
+							$recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required
1204 1204
 							$deletedRecipients[] = $recipient;
1205 1205
 						}
1206 1206
 					}
@@ -1260,12 +1260,12 @@  discard block
 block discarded – undo
1260 1260
 			$hasOrganizer = false;
1261 1261
 			// Check if meeting already has an organizer.
1262 1262
 			foreach ($recipients as $key => $recipient) {
1263
-				if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable | recipOrganizer)) {
1263
+				if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable|recipOrganizer)) {
1264 1264
 					$hasOrganizer = true;
1265 1265
 				}
1266 1266
 				elseif ($isException && !isset($recipient[PR_RECIPIENT_FLAGS])) {
1267 1267
 					// Recipients for an occurrence
1268
-					$recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalResponse;
1268
+					$recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalResponse;
1269 1269
 				}
1270 1270
 			}
1271 1271
 
@@ -1279,7 +1279,7 @@  discard block
 block discarded – undo
1279 1279
 				$organizer[PR_RECIPIENT_DISPLAY_NAME] = $messageProps[PR_SENT_REPRESENTING_NAME];
1280 1280
 				$organizer[PR_ADDRTYPE] = empty($messageProps[PR_SENT_REPRESENTING_ADDRTYPE]) ? 'SMTP' : $messageProps[PR_SENT_REPRESENTING_ADDRTYPE];
1281 1281
 				$organizer[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone;
1282
-				$organizer[PR_RECIPIENT_FLAGS] = recipSendable | recipOrganizer;
1282
+				$organizer[PR_RECIPIENT_FLAGS] = recipSendable|recipOrganizer;
1283 1283
 				$organizer[PR_SEARCH_KEY] = $messageProps[PR_SENT_REPRESENTING_SEARCH_KEY];
1284 1284
 
1285 1285
 				// Add organizer to recipients list.
Please login to merge, or discard this patch.
mapi/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
-define('MVI_FLAG', MV_FLAG | MV_INSTANCE);
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) */
34
+define('MVI_FLAG', MV_FLAG|MV_INSTANCE);
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) */
53 53
 /* Changes are likely to these numbers, and to their structures. */
54 54
 
55 55
 /* Alternate property type names for ease of use */
@@ -61,18 +61,18 @@  discard block
 block discarded – undo
61 61
 
62 62
 define('PT_TSTRING', PT_STRING8);
63 63
 
64
-define('PT_MV_I2', (MV_FLAG | PT_I2));
65
-define('PT_MV_LONG', (MV_FLAG | PT_LONG));
66
-define('PT_MV_R4', (MV_FLAG | PT_R4));
67
-define('PT_MV_DOUBLE', (MV_FLAG | PT_DOUBLE));
68
-define('PT_MV_CURRENCY', (MV_FLAG | PT_CURRENCY));
69
-define('PT_MV_APPTIME', (MV_FLAG | PT_APPTIME));
70
-define('PT_MV_SYSTIME', (MV_FLAG | PT_SYSTIME));
71
-define('PT_MV_STRING8', (MV_FLAG | PT_STRING8));
72
-define('PT_MV_BINARY', (MV_FLAG | PT_BINARY));
73
-define('PT_MV_UNICODE', (MV_FLAG | PT_UNICODE));
74
-define('PT_MV_CLSID', (MV_FLAG | PT_CLSID));
75
-define('PT_MV_I8', (MV_FLAG | PT_I8));
64
+define('PT_MV_I2', (MV_FLAG|PT_I2));
65
+define('PT_MV_LONG', (MV_FLAG|PT_LONG));
66
+define('PT_MV_R4', (MV_FLAG|PT_R4));
67
+define('PT_MV_DOUBLE', (MV_FLAG|PT_DOUBLE));
68
+define('PT_MV_CURRENCY', (MV_FLAG|PT_CURRENCY));
69
+define('PT_MV_APPTIME', (MV_FLAG|PT_APPTIME));
70
+define('PT_MV_SYSTIME', (MV_FLAG|PT_SYSTIME));
71
+define('PT_MV_STRING8', (MV_FLAG|PT_STRING8));
72
+define('PT_MV_BINARY', (MV_FLAG|PT_BINARY));
73
+define('PT_MV_UNICODE', (MV_FLAG|PT_UNICODE));
74
+define('PT_MV_CLSID', (MV_FLAG|PT_CLSID));
75
+define('PT_MV_I8', (MV_FLAG|PT_I8));
76 76
 
77 77
 define('PT_MV_TSTRING', PT_MV_STRING8);
78 78
 /* bit 0: set if descending, clear if ascending */
@@ -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 */
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 */
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
+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 */
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
 
@@ -438,23 +438,23 @@  discard block
 block discarded – undo
438 438
 define('BMR_NEZ', 0x00000001);
439 439
 
440 440
 /* array index values of restrictions -- same values are used in php-ext/main.cpp::PHPArraytoSRestriction() */
441
-define('VALUE', 0);        // propval
442
-define('RELOP', 1);        // compare method
443
-define('FUZZYLEVEL', 2);        // string search flags
444
-define('CB', 3);        // size restriction
445
-define('ULTYPE', 4);        // bit mask restriction type BMR_xxx
446
-define('ULMASK', 5);        // bitmask
447
-define('ULPROPTAG', 6);        // property
448
-define('ULPROPTAG1', 7);        // RES_COMPAREPROPS 1st property
449
-define('ULPROPTAG2', 8);        // RES_COMPAREPROPS 2nd property
450
-define('PROPS', 9);        // RES_COMMENT properties
451
-define('RESTRICTION', 10);        // RES_COMMENT and RES_SUBRESTRICTION restriction
441
+define('VALUE', 0); // propval
442
+define('RELOP', 1); // compare method
443
+define('FUZZYLEVEL', 2); // string search flags
444
+define('CB', 3); // size restriction
445
+define('ULTYPE', 4); // bit mask restriction type BMR_xxx
446
+define('ULMASK', 5); // bitmask
447
+define('ULPROPTAG', 6); // property
448
+define('ULPROPTAG1', 7); // RES_COMPAREPROPS 1st property
449
+define('ULPROPTAG2', 8); // RES_COMPAREPROPS 2nd property
450
+define('PROPS', 9); // RES_COMMENT properties
451
+define('RESTRICTION', 10); // RES_COMMENT and RES_SUBRESTRICTION restriction
452 452
 
453 453
 /* GUID's for PR_MDB_PROVIDER */
454
-define("ZARAFA_SERVICE_GUID", makeGuid("{C0A19454-7F29-1B10-A587-08002B2A2517}"));    // default store
455
-define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}"));    // public store
456
-define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{0077B49E-E474-CE11-8C5E-00AA004254E2}"));    // other store
457
-define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}"));    // archive store
454
+define("ZARAFA_SERVICE_GUID", makeGuid("{C0A19454-7F29-1B10-A587-08002B2A2517}")); // default store
455
+define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}")); // public store
456
+define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{0077B49E-E474-CE11-8C5E-00AA004254E2}")); // other store
457
+define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}")); // archive store
458 458
 
459 459
 /* global profile section guid */
460 460
 define('pbGlobalProfileSectionGuid', makeGuid("{C8B0DB13-05AA-1A10-9BB0-00AA002FC45A}"));
@@ -486,18 +486,18 @@  discard block
 block discarded – undo
486 486
 define('ecRightsContact', 0x00000200);
487 487
 define('ecRightsFolderVisible', 0x00000400);
488 488
 
489
-define('ecRightsAll', ecRightsReadAny | ecRightsCreate | ecRightsEditOwned | ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsCreateSubfolder | ecRightsFolderAccess | ecRightsFolderVisible);
490
-define('ecRightsSecretary', ecRightsReadAny | ecRightsCreate | ecRightsEditOwned | ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsFolderVisible);
491
-define('ecRightsFullControl', ecRightsReadAny | ecRightsCreate | ecRightsEditOwned | ecRightsDeleteOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsCreateSubfolder | ecRightsFolderVisible);
492
-define('ecRightsContributor', ecRightsFolderVisible | ecRightsCreate);
493
-define('ecRightsReviewer', ecRightsReadAny | ecRightsFolderVisible);
494
-define('ecRightsNonEditingAuthor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned);
495
-define('ecRightsAuthor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned | ecRightsEditOwned);
496
-define('ecRightsPublishingAuthor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned | ecRightsEditOwned | ecRightsCreateSubfolder);
497
-define('ecRightsEditor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned | ecRightsEditOwned | ecRightsEditAny | ecRightsDeleteAny);
498
-define('ecRightsPublishingEditor', ecRightsReadAny | ecRightsFolderVisible | ecRightsCreate | ecRightsDeleteOwned | ecRightsEditOwned | ecRightsEditAny | ecRightsDeleteAny | ecRightsCreateSubfolder);
499
-define('ecRightsDefault', ecRightsNone | ecRightsFolderVisible);
500
-define('ecRightsDefaultPublic', ecRightsReadAny | ecRightsFolderVisible);
489
+define('ecRightsAll', ecRightsReadAny|ecRightsCreate|ecRightsEditOwned|ecRightsDeleteOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsCreateSubfolder|ecRightsFolderAccess|ecRightsFolderVisible);
490
+define('ecRightsSecretary', ecRightsReadAny|ecRightsCreate|ecRightsEditOwned|ecRightsDeleteOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsFolderVisible);
491
+define('ecRightsFullControl', ecRightsReadAny|ecRightsCreate|ecRightsEditOwned|ecRightsDeleteOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsCreateSubfolder|ecRightsFolderVisible);
492
+define('ecRightsContributor', ecRightsFolderVisible|ecRightsCreate);
493
+define('ecRightsReviewer', ecRightsReadAny|ecRightsFolderVisible);
494
+define('ecRightsNonEditingAuthor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned);
495
+define('ecRightsAuthor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned|ecRightsEditOwned);
496
+define('ecRightsPublishingAuthor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned|ecRightsEditOwned|ecRightsCreateSubfolder);
497
+define('ecRightsEditor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned|ecRightsEditOwned|ecRightsEditAny|ecRightsDeleteAny);
498
+define('ecRightsPublishingEditor', ecRightsReadAny|ecRightsFolderVisible|ecRightsCreate|ecRightsDeleteOwned|ecRightsEditOwned|ecRightsEditAny|ecRightsDeleteAny|ecRightsCreateSubfolder);
499
+define('ecRightsDefault', ecRightsNone|ecRightsFolderVisible);
500
+define('ecRightsDefaultPublic', ecRightsReadAny|ecRightsFolderVisible);
501 501
 define('ecRightsAdmin', 0x00001000);
502 502
 define('ecRightsAllMask', 0x000015FB);
503 503
 
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
 define('ROW_ADD', 0x0001);
514 514
 define('ROW_MODIFY', 0x0002);
515 515
 define('ROW_REMOVE', 0x0004);
516
-define('ROW_EMPTY', (ROW_ADD | ROW_REMOVE));
516
+define('ROW_EMPTY', (ROW_ADD|ROW_REMOVE));
517 517
 
518 518
 // new property types
519 519
 define('PT_SRESTRICTION', 0x00FD);
@@ -583,38 +583,38 @@  discard block
 block discarded – undo
583 583
 define('SYNC_NO_FOREIGN_KEYS', 0x100);
584 584
 define('SYNC_LIMITED_IMESSAGE', 0x200);
585 585
 define('SYNC_CATCHUP', 0x400);
586
-define('SYNC_NEW_MESSAGE', 0x800);         // only applicable to ImportMessageChange()
587
-define('SYNC_MSG_SELECTIVE', 0x1000);        // Used internally.      Will reject if used by clients.
586
+define('SYNC_NEW_MESSAGE', 0x800); // only applicable to ImportMessageChange()
587
+define('SYNC_MSG_SELECTIVE', 0x1000); // Used internally.      Will reject if used by clients.
588 588
 define('SYNC_BEST_BODY', 0x2000);
589 589
 define('SYNC_IGNORE_SPECIFIED_ON_ASSOCIATED', 0x4000);
590
-define('SYNC_PROGRESS_MODE', 0x8000);        // AirMapi progress mode
590
+define('SYNC_PROGRESS_MODE', 0x8000); // AirMapi progress mode
591 591
 define('SYNC_FXRECOVERMODE', 0x10000);
592 592
 define('SYNC_DEFER_CONFIG', 0x20000);
593
-define('SYNC_FORCE_UNICODE', 0x40000);       // Forces server to return Unicode properties
594
-define('SYNC_STATE_READONLY', 0x80000);       // Server will not update the states in the DB, setting up exporter with this flag states are read only
593
+define('SYNC_FORCE_UNICODE', 0x40000); // Forces server to return Unicode properties
594
+define('SYNC_STATE_READONLY', 0x80000); // Server will not update the states in the DB, setting up exporter with this flag states are read only
595 595
 
596
-define('EMS_AB_ADDRESS_LOOKUP', 0x00000001);    // Flag for resolvename to resolve only exact matches
596
+define('EMS_AB_ADDRESS_LOOKUP', 0x00000001); // Flag for resolvename to resolve only exact matches
597 597
 
598
-define('TBL_BATCH', 0x00000002);    // Batch multiple table commands
598
+define('TBL_BATCH', 0x00000002); // Batch multiple table commands
599 599
 
600 600
 /* Flags for recipients in exceptions */
601
-define('recipSendable', 0x00000001);    // sendable attendee.
602
-define('recipOrganizer', 0x00000002);    // meeting organizer
603
-define('recipExceptionalResponse', 0x00000010);    // attendee gave a response for the exception
604
-define('recipExceptionalDeleted', 0x00000020);    // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting
605
-define('recipOriginal', 0x00000100);    // recipient is an original Attendee
601
+define('recipSendable', 0x00000001); // sendable attendee.
602
+define('recipOrganizer', 0x00000002); // meeting organizer
603
+define('recipExceptionalResponse', 0x00000010); // attendee gave a response for the exception
604
+define('recipExceptionalDeleted', 0x00000020); // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting
605
+define('recipOriginal', 0x00000100); // recipient is an original Attendee
606 606
 define('recipReserved', 0x00000200);
607 607
 
608 608
 /* Flags which indicates type of Meeting Object */
609
-define('mtgEmpty', 0x00000000);    // Unspecified.
610
-define('mtgRequest', 0x00000001);    // Initial meeting request.
611
-define('mtgFull', 0x00010000);    // Full update.
612
-define('mtgInfo', 0x00020000);    // Informational update.
613
-define('mtgOutOfDate', 0x00080000);    // A newer Meeting Request object or Meeting Update object was received after this one.
614
-define('mtgDelegatorCopy', 0x00100000);    // This is set on the delegator's copy when a delegate will handle meeting-related objects.
615
-
616
-define('MAPI_ONE_OFF_UNICODE', 0x8000);        // the flag that defines whether the embedded strings are Unicode in one off entryids.
617
-define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001);        // the flag that specifies whether the recipient gets TNEF or not.
609
+define('mtgEmpty', 0x00000000); // Unspecified.
610
+define('mtgRequest', 0x00000001); // Initial meeting request.
611
+define('mtgFull', 0x00010000); // Full update.
612
+define('mtgInfo', 0x00020000); // Informational update.
613
+define('mtgOutOfDate', 0x00080000); // A newer Meeting Request object or Meeting Update object was received after this one.
614
+define('mtgDelegatorCopy', 0x00100000); // This is set on the delegator's copy when a delegate will handle meeting-related objects.
615
+
616
+define('MAPI_ONE_OFF_UNICODE', 0x8000); // the flag that defines whether the embedded strings are Unicode in one off entryids.
617
+define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001); // the flag that specifies whether the recipient gets TNEF or not.
618 618
 
619 619
 /* Mask flags for mapi_msgstore_advise */
620 620
 define('fnevCriticalError', 0x00000001);
Please login to merge, or discard this patch.
mapi/mapi.util.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 		[
226 226
 			RES_OR,
227 227
 			[
228
-				[RES_AND,	// Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd
228
+				[RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd
229 229
 					[
230 230
 						[
231 231
 							RES_PROPERTY,
@@ -254,8 +254,8 @@  discard block
 block discarded – undo
254 254
 						VALUE => true,
255 255
 					],
256 256
 				],
257
-			],	// EXISTS OR
258
-		];		// global OR
257
+			], // EXISTS OR
258
+		]; // global OR
259 259
 
260 260
 	// Get requested properties, plus whatever we need
261 261
 	$proplist = [PR_ENTRYID, $properties["recurring"], $properties["recurring_data"], $properties["timezone_data"]];
Please login to merge, or discard this patch.
mapi/mapicode.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
  */
7 7
 
8 8
  /**
9
- * Status codes returned by MAPI functions.
10
- */
9
+  * Status codes returned by MAPI functions.
10
+  */
11 11
 
12 12
 /* From winerror.h */
13 13
 //
Please login to merge, or discard this patch.
mapi/class.meetingrequest.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -152,15 +152,15 @@  discard block
 block discarded – undo
152 152
 		$properties['reminderminutes'] = 'PT_LONG:PSETID_Common:0x8501';
153 153
 		$properties['reminderset'] = 'PT_BOOLEAN:PSETID_Common:0x8503';
154 154
 		$properties['sendasical'] = 'PT_BOOLEAN:PSETID_Appointment:0x8200';
155
-		$properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8201';					// AppointmentSequenceNumber
155
+		$properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8201'; // AppointmentSequenceNumber
156 156
 		$properties['unknown7'] = 'PT_LONG:PSETID_Appointment:0x8202';
157
-		$properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203';			// AppointmentLastSequence
157
+		$properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence
158 158
 		$properties['busystatus'] = 'PT_LONG:PSETID_Appointment:0x8205';
159 159
 		$properties['intendedbusystatus'] = 'PT_LONG:PSETID_Appointment:0x8224';
160 160
 		$properties['start'] = 'PT_SYSTIME:PSETID_Appointment:0x820d';
161 161
 		$properties['responselocation'] = 'PT_STRING8:PSETID_Meeting:0x2';
162 162
 		$properties['location'] = 'PT_STRING8:PSETID_Appointment:0x8208';
163
-		$properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229';		// PidLidFInvited, MeetingRequestWasSent
163
+		$properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent
164 164
 		$properties['startdate'] = 'PT_SYSTIME:PSETID_Appointment:0x820d';
165 165
 		$properties['duedate'] = 'PT_SYSTIME:PSETID_Appointment:0x820e';
166 166
 		$properties['flagdueby'] = 'PT_SYSTIME:PSETID_Common:0x8560';
@@ -169,11 +169,11 @@  discard block
 block discarded – undo
169 169
 		$properties['recurring'] = 'PT_BOOLEAN:PSETID_Appointment:0x8223';
170 170
 		$properties['clipstart'] = 'PT_SYSTIME:PSETID_Appointment:0x8235';
171 171
 		$properties['clipend'] = 'PT_SYSTIME:PSETID_Appointment:0x8236';
172
-		$properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD';				// StartRecurTime
173
-		$properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE';				// StartRecurTime
174
-		$properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF';				// EndRecurDate
175
-		$properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10';				// EndRecurTime
176
-		$properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA';				// LID_IS_EXCEPTION
172
+		$properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime
173
+		$properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime
174
+		$properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate
175
+		$properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime
176
+		$properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION
177 177
 		$properties['apptreplyname'] = 'PT_STRING8:PSETID_Appointment:0x8230';
178 178
 		// Propose new time properties
179 179
 		$properties['proposed_start_whole'] = 'PT_SYSTIME:PSETID_Appointment:0x8250';
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
 		$listProperties['rcvd_representing_search_key'] = PR_RCVD_REPRESENTING_SEARCH_KEY;
549 549
 		$messageProps = mapi_getprops($this->message, $listProperties);
550 550
 
551
-		$goid = $messageProps[$this->proptags['goid']];	// GlobalID (0x3)
551
+		$goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3)
552 552
 		if (!isset($goid)) {
553 553
 			return;
554 554
 		}
@@ -1483,7 +1483,7 @@  discard block
 block discarded – undo
1483 1483
 		$props[$this->proptags['goid2']] = $goid;
1484 1484
 
1485 1485
 		if (!isset($props[$this->proptags['updatecounter']])) {
1486
-			$props[$this->proptags['updatecounter']] = 0;			// OL also starts sequence no with zero.
1486
+			$props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero.
1487 1487
 			$props[$this->proptags['last_updatecounter']] = 0;
1488 1488
 		}
1489 1489
 
@@ -2282,12 +2282,12 @@  discard block
 block discarded – undo
2282 2282
 		$hasOrganizer = false;
2283 2283
 		// Check if meeting already has an organizer.
2284 2284
 		foreach ($recipients as $key => $recipient) {
2285
-			if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable | recipOrganizer)) {
2285
+			if (isset($recipient[PR_RECIPIENT_FLAGS]) && $recipient[PR_RECIPIENT_FLAGS] == (recipSendable|recipOrganizer)) {
2286 2286
 				$hasOrganizer = true;
2287 2287
 			}
2288 2288
 			elseif ($isException && !isset($recipient[PR_RECIPIENT_FLAGS])) {
2289 2289
 				// Recipients for an occurrence
2290
-				$recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable | recipExceptionalResponse;
2290
+				$recipients[$key][PR_RECIPIENT_FLAGS] = recipSendable|recipExceptionalResponse;
2291 2291
 			}
2292 2292
 		}
2293 2293
 
@@ -2301,7 +2301,7 @@  discard block
 block discarded – undo
2301 2301
 			$organizer[PR_RECIPIENT_DISPLAY_NAME] = $messageProps[PR_SENT_REPRESENTING_NAME];
2302 2302
 			$organizer[PR_ADDRTYPE] = empty($messageProps[PR_SENT_REPRESENTING_ADDRTYPE]) ? 'SMTP' : $messageProps[PR_SENT_REPRESENTING_ADDRTYPE];
2303 2303
 			$organizer[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone;
2304
-			$organizer[PR_RECIPIENT_FLAGS] = recipSendable | recipOrganizer;
2304
+			$organizer[PR_RECIPIENT_FLAGS] = recipSendable|recipOrganizer;
2305 2305
 			$organizer[PR_SEARCH_KEY] = $messageProps[PR_SENT_REPRESENTING_SEARCH_KEY];
2306 2306
 
2307 2307
 			// Add organizer to recipients list.
@@ -2487,7 +2487,7 @@  discard block
 block discarded – undo
2487 2487
 		$getResourcesRestriction = [
2488 2488
 			RES_PROPERTY,
2489 2489
 			[
2490
-				RELOP => RELOP_EQ,	// Equals recipient type 3: Resource
2490
+				RELOP => RELOP_EQ, // Equals recipient type 3: Resource
2491 2491
 				ULPROPTAG => PR_RECIPIENT_TYPE,
2492 2492
 				VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
2493 2493
 			],
@@ -2763,7 +2763,7 @@  discard block
 block discarded – undo
2763 2763
 		$getResourcesRestriction = [
2764 2764
 			RES_PROPERTY,
2765 2765
 			[
2766
-				RELOP => RELOP_EQ,	// Equals recipient type 3: Resource
2766
+				RELOP => RELOP_EQ, // Equals recipient type 3: Resource
2767 2767
 				ULPROPTAG => PR_RECIPIENT_TYPE,
2768 2768
 				VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
2769 2769
 			],
@@ -2981,7 +2981,7 @@  discard block
 block discarded – undo
2981 2981
 				$restriction[1][] = [
2982 2982
 					RES_PROPERTY,
2983 2983
 					[
2984
-						RELOP => RELOP_NE,	// Does not equal recipient type: MAPI_BCC (Resource)
2984
+						RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource)
2985 2985
 						ULPROPTAG => PR_RECIPIENT_TYPE,
2986 2986
 						VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
2987 2987
 					],
@@ -3084,7 +3084,7 @@  discard block
 block discarded – undo
3084 3084
 			$stripResourcesRestriction[1][] = [
3085 3085
 				RES_PROPERTY,
3086 3086
 				[
3087
-					RELOP => RELOP_NE,	// Does not equal recipient type: MAPI_BCC (Resource)
3087
+					RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource)
3088 3088
 					ULPROPTAG => PR_RECIPIENT_TYPE,
3089 3089
 					VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
3090 3090
 				],
@@ -3190,7 +3190,7 @@  discard block
 block discarded – undo
3190 3190
 			$newmessageprops[PR_MESSAGE_CLASS] = 'IPM.Schedule.Meeting.Canceled';
3191 3191
 			$newmessageprops[$this->proptags['meetingstatus']] = olMeetingCanceled; // It's a cancel request
3192 3192
 			$newmessageprops[$this->proptags['busystatus']] = fbFree; // set the busy status as free
3193
-			$newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH;	// HIGH Importance
3193
+			$newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance
3194 3194
 			if (isset($newmessageprops[PR_SUBJECT])) {
3195 3195
 				$newmessageprops[PR_SUBJECT] = dgettext('zarafa', 'Canceled') . ': ' . $newmessageprops[PR_SUBJECT];
3196 3196
 			}
Please login to merge, or discard this patch.
mapi/class.baserecurrence.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -842,11 +842,11 @@  discard block
 block discarded – undo
842 842
 
843 843
 								$dayofweek = gmdate("w", $monthbegindow);
844 844
 								for ($i = 0; $i < 7; ++$i) {
845
-									if ($nday == 5 && (($dayofweek - $i) % 7 >= 0) && (1 << (($dayofweek - $i) % 7)) & $weekdays) {
845
+									if ($nday == 5 && (($dayofweek - $i) % 7 >= 0) && (1 << (($dayofweek - $i) % 7))&$weekdays) {
846 846
 										$day = gmdate("j", $monthbegindow) - $i;
847 847
 										break;
848 848
 									}
849
-									if ($nday != 5 && (1 << (($dayofweek + $i) % 7)) & $weekdays) {
849
+									if ($nday != 5 && (1 << (($dayofweek + $i) % 7))&$weekdays) {
850 850
 										$day = (($nday - 1) * 7) + ($i + 1);
851 851
 										break;
852 852
 									}
@@ -885,11 +885,11 @@  discard block
 block discarded – undo
885 885
 							// Set start on the right day
886 886
 							$dayofweek = gmdate("w", $monthbegindow);
887 887
 							for ($i = 0; $i < 7; ++$i) {
888
-								if ($nday == 5 && (($dayofweek - $i) % 7) >= 0 && (1 << (($dayofweek - $i) % 7)) & $weekdays) {
888
+								if ($nday == 5 && (($dayofweek - $i) % 7) >= 0 && (1 << (($dayofweek - $i) % 7))&$weekdays) {
889 889
 									$day = $i;
890 890
 									break;
891 891
 								}
892
-								if ($nday != 5 && (1 << (($dayofweek + $i) % 7)) & $weekdays) {
892
+								if ($nday != 5 && (1 << (($dayofweek + $i) % 7))&$weekdays) {
893 893
 									$day = ($nday - 1) * 7 + ($i + 1);
894 894
 									break;
895 895
 								}
@@ -1133,11 +1133,11 @@  discard block
 block discarded – undo
1133 1133
 
1134 1134
 									$dayofweek = gmdate("w", $occenddate);
1135 1135
 									for ($i = 0; $i < 7; ++$i) {
1136
-										if ($nday == 5 && (($dayofweek - $i) % 7) >= 0 && (1 << (($dayofweek - $i) % 7)) & $weekdays) {
1136
+										if ($nday == 5 && (($dayofweek - $i) % 7) >= 0 && (1 << (($dayofweek - $i) % 7))&$weekdays) {
1137 1137
 											$occenddate -= $i * 24 * 60 * 60;
1138 1138
 											break;
1139 1139
 										}
1140
-										if ($nday != 5 && (1 << (($dayofweek + $i) % 7)) & $weekdays) {
1140
+										if ($nday != 5 && (1 << (($dayofweek + $i) % 7))&$weekdays) {
1141 1141
 											$occenddate += ($i + (($nday - 1) * 7)) * 24 * 60 * 60;
1142 1142
 											break;
1143 1143
 										}
@@ -1901,7 +1901,7 @@  discard block
 block discarded – undo
1901 1901
 						}
1902 1902
 						elseif ($this->recur['regen']) {
1903 1903
 							$year_starttime = $this->gmtime($now);
1904
-							$is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1);	// +1 next year
1904
+							$is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year
1905 1905
 							$now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */);
1906 1906
 
1907 1907
 							if ($now <= $dayend) {
Please login to merge, or discard this patch.