Passed
Branch master (b80a21)
by Andreas
11:08
created
server/includes/core/class.language.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
 				if ($data_orig_strs[$i]['length'] > 0) {	// fread does not accept length=0
390 390
 					$length = $data_orig_strs[$i]['length'];
391 391
 					$orig_str = unpack('a' . $length . 'str', fread($fp, $length));
392
-					$translation_data[$i]['msgid'] = $orig_str['str'];	// unpack converts to array :S
392
+					$translation_data[$i]['msgid'] = $orig_str['str']; // unpack converts to array :S
393 393
 
394 394
 					// Find context in the original string
395 395
 					if (strpos($translation_data[$i]['msgid'], "\004") !== false) {
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
 				if ($data_transl_strs[$i]['length'] > 0) {	// fread does not accept length=0
417 417
 					$length = $data_transl_strs[$i]['length'];
418 418
 					$trans_str = unpack('a' . $length . 'str', fread($fp, $length));
419
-					$translation_data[$i]['msgstr'] = $trans_str['str'];	// unpack converts to array :S
419
+					$translation_data[$i]['msgstr'] = $trans_str['str']; // unpack converts to array :S
420 420
 
421 421
 					// If there are plural forms in the source string,
422 422
 					// then the translated string must contain plural
Please login to merge, or discard this patch.
server/includes/core/class.operations.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2192,9 +2192,9 @@  discard block
 block discarded – undo
2192 2192
 			$messageProps = [];
2193 2193
 			// It stores the values that is exception allowed or not false -> not allowed
2194 2194
 			$isExceptionAllowed = true;
2195
-			$delete = $actionType == 'delete';	// Flag for MeetingRequest Class whether to send update or cancel mail.
2196
-			$basedate = false;	// Flag for MeetingRequest Class whether to send an exception or not.
2197
-			$isReminderTimeAllowed = true;	// Flag to check reminder minutes is in range of the occurrences
2195
+			$delete = $actionType == 'delete'; // Flag for MeetingRequest Class whether to send update or cancel mail.
2196
+			$basedate = false; // Flag for MeetingRequest Class whether to send an exception or not.
2197
+			$isReminderTimeAllowed = true; // Flag to check reminder minutes is in range of the occurrences
2198 2198
 			$properties = $GLOBALS['properties']->getAppointmentProperties();
2199 2199
 			$send = false;
2200 2200
 			$oldProps = [];
@@ -3115,7 +3115,7 @@  discard block
 block discarded – undo
3115 3115
 				 * convert flags of PR_MESSAGE_FLAGS property to flags that is
3116 3116
 				 * used in mapi_message_setreadflag.
3117 3117
 				 */
3118
-				$flag = MAPI_DEFERRED_ERRORS;		// set unread flag, read receipt will be sent
3118
+				$flag = MAPI_DEFERRED_ERRORS; // set unread flag, read receipt will be sent
3119 3119
 
3120 3120
 				if (($flags & MSGFLAG_RN_PENDING) && isset($msg_action['send_read_receipt']) && $msg_action['send_read_receipt'] == false) {
3121 3121
 					$flag |= SUPPRESS_RECEIPT;
Please login to merge, or discard this patch.
server/includes/core/class.entryid.php 1 patch
Spacing   +35 added lines, -36 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
 			$entryId = strtoupper($entryid);
56 56
 
57 57
 			$res = [
58
-				'abFlags' => '',		// BYTE[4],   4 bytes,  8 hex characters
59
-				'guid' => '',		// GUID,     16 bytes, 32 hex characters
60
-				'version' => '',		// ULONG,     4 bytes,  8 hex characters
61
-				'type' => '',		// ULONG,     4 bytes,  8 hex characters
62
-				'uniqueId' => '',		// ULONG,    16 bytes,  32 hex characters
63
-				'server' => '',		// CHAR,     variable length
64
-				'padding' => '',		// TCHAR[3],  4 bytes,  8 hex characters (upto 4 bytes)
58
+				'abFlags' => '', // BYTE[4],   4 bytes,  8 hex characters
59
+				'guid' => '', // GUID,     16 bytes, 32 hex characters
60
+				'version' => '', // ULONG,     4 bytes,  8 hex characters
61
+				'type' => '', // ULONG,     4 bytes,  8 hex characters
62
+				'uniqueId' => '', // ULONG,    16 bytes,  32 hex characters
63
+				'server' => '', // CHAR,     variable length
64
+				'padding' => '', // TCHAR[3],  4 bytes,  8 hex characters (upto 4 bytes)
65 65
 			];
66 66
 
67 67
 			$res['length'] = strlen($entryId);
@@ -100,13 +100,13 @@  discard block
 block discarded – undo
100 100
 			$entryId = strtoupper($entryid);
101 101
 
102 102
 			$res = [
103
-				'abFlags' => '',		// BYTE[4],   4 bytes,  8 hex characters
104
-				'guid' => '',		// GUID,     16 bytes, 32 hex characters
105
-				'version' => '',		// ULONG,     4 bytes,  8 hex characters
106
-				'type' => '',		// ULONG,     4 bytes,  8 hex characters
107
-				'id' => '',		// ULONG,     4 bytes,  8 hex characters
108
-				'server' => '',		// CHAR,     variable length
109
-				'padding' => '',		// TCHAR[3],  4 bytes,  8 hex characters (upto 4 bytes)
103
+				'abFlags' => '', // BYTE[4],   4 bytes,  8 hex characters
104
+				'guid' => '', // GUID,     16 bytes, 32 hex characters
105
+				'version' => '', // ULONG,     4 bytes,  8 hex characters
106
+				'type' => '', // ULONG,     4 bytes,  8 hex characters
107
+				'id' => '', // ULONG,     4 bytes,  8 hex characters
108
+				'server' => '', // CHAR,     variable length
109
+				'padding' => '', // TCHAR[3],  4 bytes,  8 hex characters (upto 4 bytes)
110 110
 			];
111 111
 
112 112
 			$res['length'] = strlen($entryId);
@@ -185,13 +185,13 @@  discard block
 block discarded – undo
185 185
 			$entryId = strtoupper($entryId);
186 186
 
187 187
 			$res = [
188
-				'abFlags' => '',		// BYTE[4],   4 bytes,  8 hex characters
189
-				'guid' => '',		// GUID,     16 bytes, 32 hex characters
190
-				'version' => '',		// ULONG,     4 bytes,  8 hex characters
191
-				'type' => '',		// ULONG,     4 bytes,  8 hex characters
192
-				'id' => '',		// ULONG,    16 bytes,  32 hex characters
193
-				'extid' => '',		// CHAR,     variable length
194
-				'padding' => '',		// TCHAR[3],  4 bytes,  8 hex characters (upto 4 bytes)
188
+				'abFlags' => '', // BYTE[4],   4 bytes,  8 hex characters
189
+				'guid' => '', // GUID,     16 bytes, 32 hex characters
190
+				'version' => '', // ULONG,     4 bytes,  8 hex characters
191
+				'type' => '', // ULONG,     4 bytes,  8 hex characters
192
+				'id' => '', // ULONG,    16 bytes,  32 hex characters
193
+				'extid' => '', // CHAR,     variable length
194
+				'padding' => '', // TCHAR[3],  4 bytes,  8 hex characters (upto 4 bytes)
195 195
 			];
196 196
 
197 197
 			$res['length'] = strlen($entryId);
@@ -636,8 +636,7 @@  discard block
 block discarded – undo
636 636
 				}
637 637
 			}
638 638
 			elseif ($checkValue !== null && $val != $checkValue) {
639
-				$user = $GLOBALS["mapisession"] !== null ? $GLOBALS["mapisession"]->getUserName() :
640
-						"<mapisession not yet initialized>";
639
+				$user = $GLOBALS["mapisession"] !== null ? $GLOBALS["mapisession"]->getUserName() : "<mapisession not yet initialized>";
641 640
 				error_log(sprintf(
642 641
 					"Unexpected value in store entryid for user %s. Entryid: %s key: '%s' value: '%s' expected: %s",
643 642
 					$user,
@@ -667,13 +666,13 @@  discard block
 block discarded – undo
667 666
 			$entryId = strtoupper($entryId);
668 667
 
669 668
 			$res = [
670
-				'providerguid' => '',			// GUID,     16 bytes, 32 hex characters
671
-				'messagetype' => '',			// UINT,      2 bytes,  4 hex characters
672
-				'folderdbguid' => '',			// GUID,     16 bytes, 32 hex characters
673
-				'foldercounter' => '',		// ULONG,     6 bytes, 12 hex characters
674
-				'padding' => '',					// TCHAR[3],  2 bytes,  4 hex characters
675
-				'messagedbguid' => '',		// GUID,     16 bytes, 32 hex characters
676
-				'messagecounter' => '',	// ULONG,     6 bytes, 12 hex characters
669
+				'providerguid' => '', // GUID,     16 bytes, 32 hex characters
670
+				'messagetype' => '', // UINT,      2 bytes,  4 hex characters
671
+				'folderdbguid' => '', // GUID,     16 bytes, 32 hex characters
672
+				'foldercounter' => '', // ULONG,     6 bytes, 12 hex characters
673
+				'padding' => '', // TCHAR[3],  2 bytes,  4 hex characters
674
+				'messagedbguid' => '', // GUID,     16 bytes, 32 hex characters
675
+				'messagecounter' => '', // ULONG,     6 bytes, 12 hex characters
677 676
 			];
678 677
 
679 678
 			if (!$entryId) {
@@ -733,12 +732,12 @@  discard block
 block discarded – undo
733 732
 			$entryId = strtoupper($entryId);
734 733
 
735 734
 			$res = [
736
-				'abflags' => '',					// BYTE[4],   4 bytes,  8 hex characters
737
-				'providerguid' => '',			// GUID,     16 bytes, 32 hex characters
738
-				'foldertype' => '',				// UINT,      2 bytes,  4 hex characters
739
-				'folderdbguid' => '',			// GUID,     16 bytes, 32 hex characters
740
-				'foldercounter' => '',		// ULONG,     6 bytes, 12 hex characters
741
-				'padding' => '',					// TCHAR[3],  2 bytes,  4 hex characters
735
+				'abflags' => '', // BYTE[4],   4 bytes,  8 hex characters
736
+				'providerguid' => '', // GUID,     16 bytes, 32 hex characters
737
+				'foldertype' => '', // UINT,      2 bytes,  4 hex characters
738
+				'folderdbguid' => '', // GUID,     16 bytes, 32 hex characters
739
+				'foldercounter' => '', // ULONG,     6 bytes, 12 hex characters
740
+				'padding' => '', // TCHAR[3],  2 bytes,  4 hex characters
742 741
 			];
743 742
 
744 743
 			if (!$entryId) {
Please login to merge, or discard this patch.
server/includes/mapi/class.taskrequest.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -19,12 +19,12 @@  discard block
 block discarded – undo
19 19
 	 * carried in the IPM.TaskRequest item (although this information seems
20 20
 	 * redundant due to that information already being available in PR_MESSAGE_CLASS).
21 21
 	 */
22
-	define('tdmtNothing', 0);			// Value in IPM.Task items
23
-	define('tdmtTaskReq', 1);			// Assigner -> Assignee
24
-	define('tdmtTaskAcc', 2);			// Assignee -> Assigner
25
-	define('tdmtTaskDec', 3);			// Assignee -> Assigner
26
-	define('tdmtTaskUpd', 4);			// Assignee -> Assigner
27
-	define('tdmtTaskSELF', 5);			// Assigner -> Assigner (?)
22
+	define('tdmtNothing', 0); // Value in IPM.Task items
23
+	define('tdmtTaskReq', 1); // Assigner -> Assignee
24
+	define('tdmtTaskAcc', 2); // Assignee -> Assigner
25
+	define('tdmtTaskDec', 3); // Assignee -> Assigner
26
+	define('tdmtTaskUpd', 4); // Assignee -> Assigner
27
+	define('tdmtTaskSELF', 5); // Assigner -> Assigner (?)
28 28
 
29 29
 	/* The TaskHistory is used to show the last action on the task
30 30
 	 * on both the assigner and the assignee's side.
@@ -34,22 +34,22 @@  discard block
 block discarded – undo
34 34
 	 * the format 'Accepted by <user> on 01-01-2010 11:00'.
35 35
 	 */
36 36
 	define('thNone', 0);
37
-	define('thAccepted', 1);			// Set by assignee
38
-	define('thDeclined', 2);			// Set by assignee
39
-	define('thUpdated', 3);				// Set by assignee
37
+	define('thAccepted', 1); // Set by assignee
38
+	define('thDeclined', 2); // Set by assignee
39
+	define('thUpdated', 3); // Set by assignee
40 40
 	define('thDueDateChanged', 4);
41
-	define('thAssigned', 5);			// Set by assigner
41
+	define('thAssigned', 5); // Set by assigner
42 42
 
43 43
 	/* The TaskState value is used to differentiate the version of a task
44 44
 	 * in the assigner's folder and the version in the
45 45
 	 * assignee's folder. The buttons shown depend on this and
46 46
 	 * the 'taskaccepted' boolean (for the assignee)
47 47
 	 */
48
-	define('tdsNOM', 0);		// Got a response to a deleted task, and re-created the task for the assigner
49
-	define('tdsOWNNEW', 1);		// Not assigned
50
-	define('tdsOWN', 2);		// Assignee version
51
-	define('tdsACC', 3);		// Assigner version
52
-	define('tdsDEC', 4);		// Assigner version, but assignee declined
48
+	define('tdsNOM', 0); // Got a response to a deleted task, and re-created the task for the assigner
49
+	define('tdsOWNNEW', 1); // Not assigned
50
+	define('tdsOWN', 2); // Assignee version
51
+	define('tdsACC', 3); // Assigner version
52
+	define('tdsDEC', 4); // Assigner version, but assignee declined
53 53
 
54 54
 	/* The TaskAcceptanceState is used for the assigner to indicate state */
55 55
 	define('olTaskNotDelegated', 0);
@@ -59,13 +59,13 @@  discard block
 block discarded – undo
59 59
 
60 60
 	/* The task ownership indicates the role of the current user relative to the task. */
61 61
 	define('olNewTask', 0);
62
-	define('olDelegatedTask', 1);	// Task has been assigned
63
-	define('olOwnTask', 2);			// Task owned
62
+	define('olDelegatedTask', 1); // Task has been assigned
63
+	define('olOwnTask', 2); // Task owned
64 64
 
65 65
 	/* taskmultrecips indicates whether the task request sent or received has multiple assignees or not. */
66 66
 	define('tmrNone', 0);
67
-	define('tmrSent', 1);		// Task has been sent to multiple assignee
68
-	define('tmrReceived', 2);	// Task Request received has multiple assignee
67
+	define('tmrSent', 1); // Task has been sent to multiple assignee
68
+	define('tmrReceived', 2); // Task Request received has multiple assignee
69 69
 
70 70
 	// Task icon index.
71 71
 	define('ICON_TASK_ASSIGNEE', 0x00000502);
@@ -500,12 +500,12 @@  discard block
 block discarded – undo
500 500
 			// Set properties on Task Request
501 501
 			mapi_setprops($this->message, [
502 502
 				$this->props['task_goid'] => $taskid, /* our new task_goid */
503
-				$this->props['taskstate'] => tdsACC, 		/* state for our outgoing request */
504
-				$this->props['taskmode'] => tdmtNothing, 	/* we're not sending a change */
505
-				$this->props['updatecount'] => 2,			/* version 2 (no idea) */
503
+				$this->props['taskstate'] => tdsACC, /* state for our outgoing request */
504
+				$this->props['taskmode'] => tdmtNothing, /* we're not sending a change */
505
+				$this->props['updatecount'] => 2, /* version 2 (no idea) */
506 506
 				$this->props['task_acceptance_state'] => olTaskDelegationUnknown, /* no reply yet */
507 507
 				$this->props['ownership'] => olDelegatedTask, /* Task has been assigned */
508
-				$this->props['taskhistory'] => thAssigned,	/* Task has been assigned */
508
+				$this->props['taskhistory'] => thAssigned, /* Task has been assigned */
509 509
 				PR_CONVERSATION_TOPIC => $messageprops[PR_SUBJECT],
510 510
 				PR_ICON_INDEX => ICON_TASK_ASSIGNER,
511 511
 			]);
@@ -522,10 +522,10 @@  discard block
 block discarded – undo
522 522
 
523 523
 			// Make it a task request, and put it in sent items after it is sent
524 524
 			mapi_setprops($outgoing, [
525
-				PR_MESSAGE_CLASS => "IPM.TaskRequest", 		/* class is task request */
526
-				$this->props['taskstate'] => tdsOWN, 	    /* for the recipient he is the task owner */
527
-				$this->props['taskmode'] => tdmtTaskReq,	/* for the recipient it's a request */
528
-				$this->props['updatecount'] => 1,			/* version 2 is in the attachment */
525
+				PR_MESSAGE_CLASS => "IPM.TaskRequest", /* class is task request */
526
+				$this->props['taskstate'] => tdsOWN, /* for the recipient he is the task owner */
527
+				$this->props['taskmode'] => tdmtTaskReq, /* for the recipient it's a request */
528
+				$this->props['updatecount'] => 1, /* version 2 is in the attachment */
529 529
 				PR_SUBJECT_PREFIX => $prefix,
530 530
 				PR_SUBJECT => $prefix . $messageprops[PR_SUBJECT],
531 531
 			]);
@@ -1181,7 +1181,7 @@  discard block
 block discarded – undo
1181 1181
 				}
1182 1182
 
1183 1183
 				foreach ($recips as $recip) {
1184
-					$recip[PR_RECIPIENT_TYPE] = MAPI_TO;	// Change recipient type to MAPI_TO
1184
+					$recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO
1185 1185
 					mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]);
1186 1186
 				}
1187 1187
 
Please login to merge, or discard this patch.
server/includes/mapi/class.recurrence.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1126,7 +1126,7 @@  discard block
 block discarded – undo
1126 1126
 					else {
1127 1127
 						$recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable;
1128 1128
 					}
1129
-					$recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone;		// No Response required
1129
+					$recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required
1130 1130
 				}
1131 1131
 				unset($recip);
1132 1132
 				mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']);
@@ -1201,7 +1201,7 @@  discard block
 block discarded – undo
1201 1201
 							else {
1202 1202
 								$recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable;
1203 1203
 							}
1204
-							$recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone;	// No Response required
1204
+							$recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required
1205 1205
 							$deletedRecipients[] = $recipient;
1206 1206
 						}
1207 1207
 					}
Please login to merge, or discard this patch.
server/includes/mapi/mapidefs.php 1 patch
Spacing   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -28,40 +28,40 @@  discard block
 block discarded – undo
28 28
 
29 29
 /* Object type */
30 30
 
31
-define('MAPI_STORE', 0x00000001);    /* Message Store */
32
-define('MAPI_ADDRBOOK', 0x00000002);    /* Address Book */
33
-define('MAPI_FOLDER', 0x00000003);    /* Folder */
34
-define('MAPI_ABCONT', 0x00000004);    /* Address Book Container */
35
-define('MAPI_MESSAGE', 0x00000005);    /* Message */
36
-define('MAPI_MAILUSER', 0x00000006);    /* Individual Recipient */
37
-define('MAPI_ATTACH', 0x00000007);    /* Attachment */
38
-define('MAPI_DISTLIST', 0x00000008);    /* Distribution List Recipient */
39
-define('MAPI_PROFSECT', 0x00000009);    /* Profile Section */
40
-define('MAPI_STATUS', 0x0000000A);    /* Status Object */
41
-define('MAPI_SESSION', 0x0000000B);    /* Session */
42
-define('MAPI_FORMINFO', 0x0000000C);    /* Form Information */
31
+define('MAPI_STORE', 0x00000001); /* Message Store */
32
+define('MAPI_ADDRBOOK', 0x00000002); /* Address Book */
33
+define('MAPI_FOLDER', 0x00000003); /* Folder */
34
+define('MAPI_ABCONT', 0x00000004); /* Address Book Container */
35
+define('MAPI_MESSAGE', 0x00000005); /* Message */
36
+define('MAPI_MAILUSER', 0x00000006); /* Individual Recipient */
37
+define('MAPI_ATTACH', 0x00000007); /* Attachment */
38
+define('MAPI_DISTLIST', 0x00000008); /* Distribution List Recipient */
39
+define('MAPI_PROFSECT', 0x00000009); /* Profile Section */
40
+define('MAPI_STATUS', 0x0000000A); /* Status Object */
41
+define('MAPI_SESSION', 0x0000000B); /* Session */
42
+define('MAPI_FORMINFO', 0x0000000C); /* Form Information */
43 43
 
44 44
 define('MV_FLAG', 0x1000);
45 45
 define('MV_INSTANCE', 0x2000);
46 46
 define('MVI_FLAG', MV_FLAG | MV_INSTANCE);
47 47
 
48
-define('PT_UNSPECIFIED', 0);    /* (Reserved for interface use) type doesn't matter to caller */
49
-define('PT_NULL', 1);    /* NULL property value */
50
-define('PT_I2', 2);    /* Signed 16-bit value */
51
-define('PT_LONG', 3);    /* Signed 32-bit value */
52
-define('PT_R4', 4);    /* 4-byte floating point */
53
-define('PT_DOUBLE', 5);    /* Floating point double */
54
-define('PT_CURRENCY', 6);    /* Signed 64-bit int (decimal w/    4 digits right of decimal pt) */
55
-define('PT_APPTIME', 7);    /* Application time */
56
-define('PT_ERROR', 10);    /* 32-bit error value */
57
-define('PT_BOOLEAN', 11);    /* 16-bit boolean (non-zero true) */
58
-define('PT_OBJECT', 13);    /* Embedded object in a property */
59
-define('PT_I8', 20);    /* 8-byte signed integer */
60
-define('PT_STRING8', 30);    /* Null terminated 8-bit character string */
61
-define('PT_UNICODE', 31);    /* Null terminated Unicode string */
62
-define('PT_SYSTIME', 64);    /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */
63
-define('PT_CLSID', 72);    /* OLE GUID */
64
-define('PT_BINARY', 258);   /* Uninterpreted (counted byte array) */
48
+define('PT_UNSPECIFIED', 0); /* (Reserved for interface use) type doesn't matter to caller */
49
+define('PT_NULL', 1); /* NULL property value */
50
+define('PT_I2', 2); /* Signed 16-bit value */
51
+define('PT_LONG', 3); /* Signed 32-bit value */
52
+define('PT_R4', 4); /* 4-byte floating point */
53
+define('PT_DOUBLE', 5); /* Floating point double */
54
+define('PT_CURRENCY', 6); /* Signed 64-bit int (decimal w/    4 digits right of decimal pt) */
55
+define('PT_APPTIME', 7); /* Application time */
56
+define('PT_ERROR', 10); /* 32-bit error value */
57
+define('PT_BOOLEAN', 11); /* 16-bit boolean (non-zero true) */
58
+define('PT_OBJECT', 13); /* Embedded object in a property */
59
+define('PT_I8', 20); /* 8-byte signed integer */
60
+define('PT_STRING8', 30); /* Null terminated 8-bit character string */
61
+define('PT_UNICODE', 31); /* Null terminated Unicode string */
62
+define('PT_SYSTIME', 64); /* FILETIME 64-bit int w/ number of 100ns periods since Jan 1,1601 */
63
+define('PT_CLSID', 72); /* OLE GUID */
64
+define('PT_BINARY', 258); /* Uninterpreted (counted byte array) */
65 65
 /* Changes are likely to these numbers, and to their structures. */
66 66
 
67 67
 /* Alternate property type names for ease of use */
@@ -202,14 +202,14 @@  discard block
 block discarded – undo
202 202
 
203 203
 /* Values for PR_RESOURCE_TYPE, _METHODS, _FLAGS */
204 204
 
205
-define('MAPI_STORE_PROVIDER', 33);    /* Message Store */
206
-define('MAPI_AB', 34);    /* Address Book */
207
-define('MAPI_AB_PROVIDER', 35);    /* Address Book Provider */
208
-define('MAPI_TRANSPORT_PROVIDER', 36);    /* Transport Provider */
209
-define('MAPI_SPOOLER', 37);    /* Message Spooler */
210
-define('MAPI_PROFILE_PROVIDER', 38);    /* Profile Provider */
211
-define('MAPI_SUBSYSTEM', 39);    /* Overall Subsystem Status */
212
-define('MAPI_HOOK_PROVIDER', 40);    /* Spooler Hook */
205
+define('MAPI_STORE_PROVIDER', 33); /* Message Store */
206
+define('MAPI_AB', 34); /* Address Book */
207
+define('MAPI_AB_PROVIDER', 35); /* Address Book Provider */
208
+define('MAPI_TRANSPORT_PROVIDER', 36); /* Transport Provider */
209
+define('MAPI_SPOOLER', 37); /* Message Spooler */
210
+define('MAPI_PROFILE_PROVIDER', 38); /* Profile Provider */
211
+define('MAPI_SUBSYSTEM', 39); /* Overall Subsystem Status */
212
+define('MAPI_HOOK_PROVIDER', 40); /* Spooler Hook */
213 213
 define('STATUS_VALIDATE_STATE', 0x00000001);
214 214
 define('STATUS_SETTINGS_DIALOG', 0x00000002);
215 215
 define('STATUS_CHANGE_PASSWORD', 0x00000004);
@@ -255,10 +255,10 @@  discard block
 block discarded – undo
255 255
 define('MODRECIP_MODIFY', 0x00000004);
256 256
 define('MODRECIP_REMOVE', 0x00000008);
257 257
 
258
-define('MAPI_ORIG', 0);          /* Recipient is message originator */
259
-define('MAPI_TO', 1);          /* Recipient is a primary recipient */
260
-define('MAPI_CC', 2);          /* Recipient is a copy recipient */
261
-define('MAPI_BCC', 3);          /* Recipient is blind copy recipient */
258
+define('MAPI_ORIG', 0); /* Recipient is message originator */
259
+define('MAPI_TO', 1); /* Recipient is a primary recipient */
260
+define('MAPI_CC', 2); /* Recipient is a copy recipient */
261
+define('MAPI_BCC', 3); /* Recipient is blind copy recipient */
262 262
 
263 263
 /* IAttach Interface ------------------------------------------------------- */
264 264
 
@@ -450,23 +450,23 @@  discard block
 block discarded – undo
450 450
 define('BMR_NEZ', 0x00000001);
451 451
 
452 452
 /* array index values of restrictions -- same values are used in php-ext/main.cpp::PHPArraytoSRestriction() */
453
-define('VALUE', 0);        // propval
454
-define('RELOP', 1);        // compare method
455
-define('FUZZYLEVEL', 2);        // string search flags
456
-define('CB', 3);        // size restriction
457
-define('ULTYPE', 4);        // bit mask restriction type BMR_xxx
458
-define('ULMASK', 5);        // bitmask
459
-define('ULPROPTAG', 6);        // property
460
-define('ULPROPTAG1', 7);        // RES_COMPAREPROPS 1st property
461
-define('ULPROPTAG2', 8);        // RES_COMPAREPROPS 2nd property
462
-define('PROPS', 9);        // RES_COMMENT properties
463
-define('RESTRICTION', 10);        // RES_COMMENT and RES_SUBRESTRICTION restriction
453
+define('VALUE', 0); // propval
454
+define('RELOP', 1); // compare method
455
+define('FUZZYLEVEL', 2); // string search flags
456
+define('CB', 3); // size restriction
457
+define('ULTYPE', 4); // bit mask restriction type BMR_xxx
458
+define('ULMASK', 5); // bitmask
459
+define('ULPROPTAG', 6); // property
460
+define('ULPROPTAG1', 7); // RES_COMPAREPROPS 1st property
461
+define('ULPROPTAG2', 8); // RES_COMPAREPROPS 2nd property
462
+define('PROPS', 9); // RES_COMMENT properties
463
+define('RESTRICTION', 10); // RES_COMMENT and RES_SUBRESTRICTION restriction
464 464
 
465 465
 /* GUID's for PR_MDB_PROVIDER */
466
-define("ZARAFA_SERVICE_GUID", makeGuid("{C0A19454-7F29-1B10-A587-08002B2A2517}"));    // default store
467
-define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}"));    // public store
468
-define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{0077B49E-E474-CE11-8C5E-00AA004254E2}"));    // other store
469
-define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}"));    // archive store
466
+define("ZARAFA_SERVICE_GUID", makeGuid("{C0A19454-7F29-1B10-A587-08002B2A2517}")); // default store
467
+define("ZARAFA_STORE_PUBLIC_GUID", makeGuid("{70FAB278-F7AF-CD11-9BC8-00AA002FC45A}")); // public store
468
+define("ZARAFA_STORE_DELEGATE_GUID", makeGuid("{0077B49E-E474-CE11-8C5E-00AA004254E2}")); // other store
469
+define('ZARAFA_STORE_ARCHIVER_GUID', makeGuid("{BC8953AD-2E3F-4172-9404-896FF459870F}")); // archive store
470 470
 
471 471
 /* global profile section guid */
472 472
 define('pbGlobalProfileSectionGuid', makeGuid("{C8B0DB13-05AA-1A10-9BB0-00AA002FC45A}"));
@@ -595,38 +595,38 @@  discard block
 block discarded – undo
595 595
 define('SYNC_NO_FOREIGN_KEYS', 0x100);
596 596
 define('SYNC_LIMITED_IMESSAGE', 0x200);
597 597
 define('SYNC_CATCHUP', 0x400);
598
-define('SYNC_NEW_MESSAGE', 0x800);         // only applicable to ImportMessageChange()
599
-define('SYNC_MSG_SELECTIVE', 0x1000);        // Used internally.      Will reject if used by clients.
598
+define('SYNC_NEW_MESSAGE', 0x800); // only applicable to ImportMessageChange()
599
+define('SYNC_MSG_SELECTIVE', 0x1000); // Used internally.      Will reject if used by clients.
600 600
 define('SYNC_BEST_BODY', 0x2000);
601 601
 define('SYNC_IGNORE_SPECIFIED_ON_ASSOCIATED', 0x4000);
602
-define('SYNC_PROGRESS_MODE', 0x8000);        // AirMapi progress mode
602
+define('SYNC_PROGRESS_MODE', 0x8000); // AirMapi progress mode
603 603
 define('SYNC_FXRECOVERMODE', 0x10000);
604 604
 define('SYNC_DEFER_CONFIG', 0x20000);
605
-define('SYNC_FORCE_UNICODE', 0x40000);       // Forces server to return Unicode properties
606
-define('SYNC_STATE_READONLY', 0x80000);       // Server will not update the states in the DB, setting up exporter with this flag states are read only
605
+define('SYNC_FORCE_UNICODE', 0x40000); // Forces server to return Unicode properties
606
+define('SYNC_STATE_READONLY', 0x80000); // Server will not update the states in the DB, setting up exporter with this flag states are read only
607 607
 
608
-define('EMS_AB_ADDRESS_LOOKUP', 0x00000001);    // Flag for resolvename to resolve only exact matches
608
+define('EMS_AB_ADDRESS_LOOKUP', 0x00000001); // Flag for resolvename to resolve only exact matches
609 609
 
610
-define('TBL_BATCH', 0x00000002);    // Batch multiple table commands
610
+define('TBL_BATCH', 0x00000002); // Batch multiple table commands
611 611
 
612 612
 /* Flags for recipients in exceptions */
613
-define('recipSendable', 0x00000001);    // sendable attendee.
614
-define('recipOrganizer', 0x00000002);    // meeting organizer
615
-define('recipExceptionalResponse', 0x00000010);    // attendee gave a response for the exception
616
-define('recipExceptionalDeleted', 0x00000020);    // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting
617
-define('recipOriginal', 0x00000100);    // recipient is an original Attendee
613
+define('recipSendable', 0x00000001); // sendable attendee.
614
+define('recipOrganizer', 0x00000002); // meeting organizer
615
+define('recipExceptionalResponse', 0x00000010); // attendee gave a response for the exception
616
+define('recipExceptionalDeleted', 0x00000020); // recipientRow exists, but it is treated as if the corresponding recipient is deleted from meeting
617
+define('recipOriginal', 0x00000100); // recipient is an original Attendee
618 618
 define('recipReserved', 0x00000200);
619 619
 
620 620
 /* Flags which indicates type of Meeting Object */
621
-define('mtgEmpty', 0x00000000);    // Unspecified.
622
-define('mtgRequest', 0x00000001);    // Initial meeting request.
623
-define('mtgFull', 0x00010000);    // Full update.
624
-define('mtgInfo', 0x00020000);    // Informational update.
625
-define('mtgOutOfDate', 0x00080000);    // A newer Meeting Request object or Meeting Update object was received after this one.
626
-define('mtgDelegatorCopy', 0x00100000);    // This is set on the delegator's copy when a delegate will handle meeting-related objects.
627
-
628
-define('MAPI_ONE_OFF_UNICODE', 0x8000);        // the flag that defines whether the embedded strings are Unicode in one off entryids.
629
-define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001);        // the flag that specifies whether the recipient gets TNEF or not.
621
+define('mtgEmpty', 0x00000000); // Unspecified.
622
+define('mtgRequest', 0x00000001); // Initial meeting request.
623
+define('mtgFull', 0x00010000); // Full update.
624
+define('mtgInfo', 0x00020000); // Informational update.
625
+define('mtgOutOfDate', 0x00080000); // A newer Meeting Request object or Meeting Update object was received after this one.
626
+define('mtgDelegatorCopy', 0x00100000); // This is set on the delegator's copy when a delegate will handle meeting-related objects.
627
+
628
+define('MAPI_ONE_OFF_UNICODE', 0x8000); // the flag that defines whether the embedded strings are Unicode in one off entryids.
629
+define('MAPI_ONE_OFF_NO_RICH_INFO', 0x0001); // the flag that specifies whether the recipient gets TNEF or not.
630 630
 
631 631
 /* Mask flags for mapi_msgstore_advise */
632 632
 define('fnevCriticalError', 0x00000001);
Please login to merge, or discard this patch.
server/includes/mapi/class.baserecurrence.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1896,7 +1896,7 @@
 block discarded – undo
1896 1896
 						}
1897 1897
 						elseif ($this->recur['regen']) {
1898 1898
 							$year_starttime = $this->gmtime($now);
1899
-							$is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1);	// +1 next year
1899
+							$is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year
1900 1900
 							$now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */);
1901 1901
 
1902 1902
 							if ($now <= $dayend) {
Please login to merge, or discard this patch.
server/includes/loader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -360,7 +360,7 @@
 block discarded – undo
360 360
 			];
361 361
 			$fileDependencies[$filename] = [
362 362
 				'depends' => [],
363
-				'core' => $core,		// Based on tag or on class or on file path?
363
+				'core' => $core, // Based on tag or on class or on file path?
364 364
 			];
365 365
 
366 366
 			for ($j = 0, $lenJ = count($class[1]); $j < $lenJ; ++$j) {
Please login to merge, or discard this patch.
server/includes/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.