Passed
Push — master ( 8c95d3...5bbd96 )
by
unknown
05:38 queued 02:27
created
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 1 patch
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.
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.
lib/grommunio/grommunio.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1370,8 +1370,7 @@  discard block
 block discarded – undo
1370 1370
 
1371 1371
 		// if the search range is set limit the result to it, otherwise return all found messages
1372 1372
 		$rows = (is_array($searchRange) && isset($searchRange[0], $searchRange[1])) ?
1373
-			mapi_table_queryrows($table, [PR_ENTRYID], $searchRange[0], $searchRange[1] - $searchRange[0] + 1) :
1374
-			mapi_table_queryrows($table, [PR_ENTRYID], 0, SEARCH_MAXRESULTS);
1373
+			mapi_table_queryrows($table, [PR_ENTRYID], $searchRange[0], $searchRange[1] - $searchRange[0] + 1) : mapi_table_queryrows($table, [PR_ENTRYID], 0, SEARCH_MAXRESULTS);
1375 1374
 
1376 1375
 		$cnt = count($rows);
1377 1376
 		$items['searchtotal'] = $cnt;
@@ -1591,15 +1590,15 @@  discard block
 block discarded – undo
1591 1590
 		$store = $this->openMessageStore("SYSTEM");
1592 1591
 		$pubStore = mapi_msgstore_openentry($store, null);
1593 1592
 		$hierarchyTable = mapi_folder_gethierarchytable($pubStore, CONVENIENT_DEPTH);
1594
-		$restriction = [ RES_PROPERTY,
1593
+		$restriction = [RES_PROPERTY,
1595 1594
 			[
1596 1595
 				RELOP => RELOP_EQ,
1597 1596
 				ULPROPTAG => PR_SYNC_TO_MOBILE,
1598
-				VALUE => [ PR_SYNC_TO_MOBILE => True],
1597
+				VALUE => [PR_SYNC_TO_MOBILE => True],
1599 1598
 			]
1600 1599
 		];
1601 1600
 		mapi_table_restrict($hierarchyTable, $restriction, TBL_BATCH);
1602
-		$rows = mapi_table_queryallrows($hierarchyTable, [ PR_DISPLAY_NAME, PR_CONTAINER_CLASS, PR_SOURCE_KEY ]);
1601
+		$rows = mapi_table_queryallrows($hierarchyTable, [PR_DISPLAY_NAME, PR_CONTAINER_CLASS, PR_SOURCE_KEY]);
1603 1602
 		$f = [];
1604 1603
 		foreach ($rows as $row) {
1605 1604
 			$folderid = bin2hex($row[PR_SOURCE_KEY]);
@@ -2059,7 +2058,7 @@  discard block
 block discarded – undo
2059 2058
 	private function adviseStoreToSink($store) {
2060 2059
 		// check if we already advised the store
2061 2060
 		if (!in_array($store, $this->changesSinkStores)) {
2062
-			mapi_msgstore_advise($store, null, fnevNewMail |fnevObjectModified | fnevObjectCreated | fnevObjectMoved | fnevObjectDeleted, $this->changesSink);
2061
+			mapi_msgstore_advise($store, null, fnevNewMail | fnevObjectModified | fnevObjectCreated | fnevObjectMoved | fnevObjectDeleted, $this->changesSink);
2063 2062
 
2064 2063
 			if (mapi_last_hresult()) {
2065 2064
 				SLog::Write(LOGLEVEL_WARN, sprintf("Grommunio->adviseStoreToSink(): failed to advised store '%s' with code 0x%X. Polling will be performed.", $store, mapi_last_hresult()));
Please login to merge, or discard this patch.