Passed
Push — master ( 19ba64...f0b7bd )
by
unknown
19:03 queued 09:39
created
lib/grommunio/mapiprovider.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1540,8 +1540,7 @@
 block discarded – undo
1540 1540
 						if (isset($exception->asbody)) {
1541 1541
 							$this->setASbody($exception->asbody, $exceptionprops, $appointmentprops);
1542 1542
 							$mapiexception["body"] = $exceptionprops[$appointmentprops["body"]] =
1543
-								(isset($exceptionprops[$appointmentprops["body"]])) ? $exceptionprops[$appointmentprops["body"]] :
1544
-								((isset($exceptionprops[$appointmentprops["html"]])) ? $exceptionprops[$appointmentprops["html"]] : "");
1543
+								(isset($exceptionprops[$appointmentprops["body"]])) ? $exceptionprops[$appointmentprops["body"]] : ((isset($exceptionprops[$appointmentprops["html"]])) ? $exceptionprops[$appointmentprops["html"]] : "");
1545 1544
 						}
1546 1545
 
1547 1546
 						array_push($recur["changed_occurrences"], $mapiexception);
Please login to merge, or discard this patch.
mapi/mapidefs.php 1 patch
Spacing   +77 added lines, -77 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 */
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}"));
@@ -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
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 		[
207 207
 			RES_OR,
208 208
 			[
209
-				[RES_AND,	// Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd
209
+				[RES_AND, // Normal items: itemEnd must be after viewStart, itemStart must be before viewEnd
210 210
 					[
211 211
 						[
212 212
 							RES_PROPERTY,
@@ -235,8 +235,8 @@  discard block
 block discarded – undo
235 235
 						VALUE => true,
236 236
 					],
237 237
 				],
238
-			],	// EXISTS OR
239
-		];		// global OR
238
+			], // EXISTS OR
239
+		]; // global OR
240 240
 
241 241
 	// Get requested properties, plus whatever we need
242 242
 	$proplist = [PR_ENTRYID, $properties["recurring"], $properties["recurring_data"], $properties["timezone_data"]];
Please login to merge, or discard this patch.
mapi/class.meetingrequest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -153,15 +153,15 @@  discard block
 block discarded – undo
153 153
 		$properties['reminderminutes'] = 'PT_LONG:PSETID_Common:' . PidLidReminderDelta;
154 154
 		$properties['reminderset'] = 'PT_BOOLEAN:PSETID_Common:' . PidLidReminderSet;
155 155
 		$properties['sendasical'] = 'PT_BOOLEAN:PSETID_Appointment:0x8200';
156
-		$properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:' . PidLidAppointmentSequence;					// AppointmentSequenceNumber
156
+		$properties['updatecounter'] = 'PT_LONG:PSETID_Appointment:' . PidLidAppointmentSequence; // AppointmentSequenceNumber
157 157
 		$properties['unknown7'] = 'PT_LONG:PSETID_Appointment:0x8202';
158
-		$properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203';			// AppointmentLastSequence
158
+		$properties['last_updatecounter'] = 'PT_LONG:PSETID_Appointment:0x8203'; // AppointmentLastSequence
159 159
 		$properties['busystatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidBusyStatus;
160 160
 		$properties['intendedbusystatus'] = 'PT_LONG:PSETID_Appointment:' . PidLidIntendedBusyStatus;
161 161
 		$properties['start'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentStartWhole;
162 162
 		$properties['responselocation'] = 'PT_STRING8:PSETID_Meeting:0x2';
163 163
 		$properties['location'] = 'PT_STRING8:PSETID_Appointment:' . PidLidLocation;
164
-		$properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229';		// PidLidFInvited, MeetingRequestWasSent
164
+		$properties['requestsent'] = 'PT_BOOLEAN:PSETID_Appointment:0x8229'; // PidLidFInvited, MeetingRequestWasSent
165 165
 		$properties['startdate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentStartWhole;
166 166
 		$properties['duedate'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentEndWhole;
167 167
 		$properties['flagdueby'] = 'PT_SYSTIME:PSETID_Common:' . PidLidReminderSignalTime;
@@ -170,11 +170,11 @@  discard block
 block discarded – undo
170 170
 		$properties['recurring'] = 'PT_BOOLEAN:PSETID_Appointment:' . PidLidRecurring;
171 171
 		$properties['clipstart'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidClipStart;
172 172
 		$properties['clipend'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidClipEnd;
173
-		$properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD';				// StartRecurTime
174
-		$properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE';				// StartRecurTime
175
-		$properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF';				// EndRecurDate
176
-		$properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10';				// EndRecurTime
177
-		$properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA';				// LID_IS_EXCEPTION
173
+		$properties['start_recur_date'] = 'PT_LONG:PSETID_Meeting:0xD'; // StartRecurTime
174
+		$properties['start_recur_time'] = 'PT_LONG:PSETID_Meeting:0xE'; // StartRecurTime
175
+		$properties['end_recur_date'] = 'PT_LONG:PSETID_Meeting:0xF'; // EndRecurDate
176
+		$properties['end_recur_time'] = 'PT_LONG:PSETID_Meeting:0x10'; // EndRecurTime
177
+		$properties['is_exception'] = 'PT_BOOLEAN:PSETID_Meeting:0xA'; // LID_IS_EXCEPTION
178 178
 		$properties['apptreplyname'] = 'PT_STRING8:PSETID_Appointment:0x8230';
179 179
 		// Propose new time properties
180 180
 		$properties['proposed_start_whole'] = 'PT_SYSTIME:PSETID_Appointment:' . PidLidAppointmentProposedStartWhole;
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 		$listProperties['rcvd_representing_search_key'] = PR_RCVD_REPRESENTING_SEARCH_KEY;
550 550
 		$messageProps = mapi_getprops($this->message, $listProperties);
551 551
 
552
-		$goid = $messageProps[$this->proptags['goid']];	// GlobalID (0x3)
552
+		$goid = $messageProps[$this->proptags['goid']]; // GlobalID (0x3)
553 553
 		if (!isset($goid)) {
554 554
 			return;
555 555
 		}
@@ -1481,7 +1481,7 @@  discard block
 block discarded – undo
1481 1481
 		$props[$this->proptags['goid2']] = $goid;
1482 1482
 
1483 1483
 		if (!isset($props[$this->proptags['updatecounter']])) {
1484
-			$props[$this->proptags['updatecounter']] = 0;			// OL also starts sequence no with zero.
1484
+			$props[$this->proptags['updatecounter']] = 0; // OL also starts sequence no with zero.
1485 1485
 			$props[$this->proptags['last_updatecounter']] = 0;
1486 1486
 		}
1487 1487
 
@@ -2486,7 +2486,7 @@  discard block
 block discarded – undo
2486 2486
 		$getResourcesRestriction = [
2487 2487
 			RES_PROPERTY,
2488 2488
 			[
2489
-				RELOP => RELOP_EQ,	// Equals recipient type 3: Resource
2489
+				RELOP => RELOP_EQ, // Equals recipient type 3: Resource
2490 2490
 				ULPROPTAG => PR_RECIPIENT_TYPE,
2491 2491
 				VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
2492 2492
 			],
@@ -2762,7 +2762,7 @@  discard block
 block discarded – undo
2762 2762
 		$getResourcesRestriction = [
2763 2763
 			RES_PROPERTY,
2764 2764
 			[
2765
-				RELOP => RELOP_EQ,	// Equals recipient type 3: Resource
2765
+				RELOP => RELOP_EQ, // Equals recipient type 3: Resource
2766 2766
 				ULPROPTAG => PR_RECIPIENT_TYPE,
2767 2767
 				VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
2768 2768
 			],
@@ -2980,7 +2980,7 @@  discard block
 block discarded – undo
2980 2980
 				$restriction[1][] = [
2981 2981
 					RES_PROPERTY,
2982 2982
 					[
2983
-						RELOP => RELOP_NE,	// Does not equal recipient type: MAPI_BCC (Resource)
2983
+						RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource)
2984 2984
 						ULPROPTAG => PR_RECIPIENT_TYPE,
2985 2985
 						VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
2986 2986
 					],
@@ -3083,7 +3083,7 @@  discard block
 block discarded – undo
3083 3083
 			$stripResourcesRestriction[1][] = [
3084 3084
 				RES_PROPERTY,
3085 3085
 				[
3086
-					RELOP => RELOP_NE,	// Does not equal recipient type: MAPI_BCC (Resource)
3086
+					RELOP => RELOP_NE, // Does not equal recipient type: MAPI_BCC (Resource)
3087 3087
 					ULPROPTAG => PR_RECIPIENT_TYPE,
3088 3088
 					VALUE => [PR_RECIPIENT_TYPE => MAPI_BCC],
3089 3089
 				],
@@ -3189,7 +3189,7 @@  discard block
 block discarded – undo
3189 3189
 			$newmessageprops[PR_MESSAGE_CLASS] = 'IPM.Schedule.Meeting.Canceled';
3190 3190
 			$newmessageprops[$this->proptags['meetingstatus']] = olMeetingCanceled; // It's a cancel request
3191 3191
 			$newmessageprops[$this->proptags['busystatus']] = fbFree; // set the busy status as free
3192
-			$newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH;	// HIGH Importance
3192
+			$newmessageprops[PR_IMPORTANCE] = IMPORTANCE_HIGH; // HIGH Importance
3193 3193
 			if (isset($newmessageprops[PR_SUBJECT])) {
3194 3194
 				$newmessageprops[PR_SUBJECT] = dgettext('zarafa', 'Canceled') . ': ' . $newmessageprops[PR_SUBJECT];
3195 3195
 			}
Please login to merge, or discard this patch.
mapi/class.baserecurrence.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1898,7 +1898,7 @@
 block discarded – undo
1898 1898
 						}
1899 1899
 						elseif ($this->recur['regen']) {
1900 1900
 							$year_starttime = $this->gmtime($now);
1901
-							$is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1);	// +1 next year
1901
+							$is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year
1902 1902
 							$now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */);
1903 1903
 
1904 1904
 							if ($now <= $dayend) {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -764,7 +764,7 @@
 block discarded – undo
764 764
 
765 765
 							// If the previous calculation gave us a start date different than the original start date, then we need to skip to the first occurrence
766 766
 							if (($rtype == IDC_RCEV_PAT_ORB_MONTHLY && ((int) $this->recur["monthday"]) < $curmonthday) ||
767
-							    ($rtype == IDC_RCEV_PAT_ORB_YEARLY && ($selmonth != $curmonth || ($selmonth == $curmonth && ((int) $this->recur["monthday"]) < $curmonthday)))) {
767
+								($rtype == IDC_RCEV_PAT_ORB_YEARLY && ($selmonth != $curmonth || ($selmonth == $curmonth && ((int) $this->recur["monthday"]) < $curmonthday)))) {
768 768
 								if ($rtype == IDC_RCEV_PAT_ORB_YEARLY) {
769 769
 									if ($curmonth > $selmonth) {// go to next occurrence in 'everyn' months minus difference in first occurrence and original date
770 770
 										$count = $everyn - ($curmonth - $selmonth);
Please login to merge, or discard this patch.
mapi/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);
@@ -1243,7 +1243,7 @@  discard block
 block discarded – undo
1243 1243
 			}
1244 1244
 
1245 1245
 			foreach ($recips as $recip) {
1246
-				$recip[PR_RECIPIENT_TYPE] = MAPI_TO;	// Change recipient type to MAPI_TO
1246
+				$recip[PR_RECIPIENT_TYPE] = MAPI_TO; // Change recipient type to MAPI_TO
1247 1247
 				mapi_message_modifyrecipients($outgoing, MODRECIP_ADD, [$recip]);
1248 1248
 			}
1249 1249
 
Please login to merge, or discard this patch.
mapi/class.recurrence.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1071,7 +1071,7 @@  discard block
 block discarded – undo
1071 1071
 				else {
1072 1072
 					$recip[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable;
1073 1073
 				}
1074
-				$recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone;		// No Response required
1074
+				$recip[PR_RECIPIENT_TRACKSTATUS] = olResponseNone; // No Response required
1075 1075
 			}
1076 1076
 			unset($recip);
1077 1077
 			mapi_message_modifyrecipients($exception, MODRECIP_MODIFY, $exception_recips['remove']);
@@ -1146,7 +1146,7 @@  discard block
 block discarded – undo
1146 1146
 						else {
1147 1147
 							$recipient[PR_RECIPIENT_FLAGS] = recipReserved | recipExceptionalDeleted | recipSendable;
1148 1148
 						}
1149
-						$recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone;	// No Response required
1149
+						$recipient[PR_RECIPIENT_TRACKSTATUS] = olRecipientTrackStatusNone; // No Response required
1150 1150
 						$deletedRecipients[] = $recipient;
1151 1151
 					}
1152 1152
 				}
Please login to merge, or discard this patch.