Passed
Push — master ( c836dc...b52c14 )
by
unknown
12:52 queued 46s
created
server/includes/core/class.bus.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 				foreach ($this->registeredStoreNotifiers as $key => &$storeNotifier) {
206 206
 					if ($entryidCmp->compareStoreEntryIds($storeNotifier['entryid'], $storeEntryid)) {
207 207
 						foreach ($storeNotifier as $key => $notifier) {
208
-							if (isset($notifier['events']) && ($notifier['events'] & $event)) {
208
+							if (isset($notifier['events']) && ($notifier['events']&$event)) {
209 209
 								if (!isset($updatedNotifiers[$key])) {
210 210
 									if (isset($this->notifiers[$key]) && is_object($this->notifiers[$key])) {
211 211
 										$this->notifiers[$key]->update($event, $entryID, $data);
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 				if (($entryID === REQUEST_ENTRYID && $folderNotifier['entryid'] === REQUEST_ENTRYID) ||
226 226
 					($entryidCmp->compareEntryIds($folderNotifier['entryid'], $entryID))) {
227 227
 					foreach ($folderNotifier as $key => $notifier) {
228
-						if (isset($notifier['events']) && ($notifier['events'] & $event)) {
228
+						if (isset($notifier['events']) && ($notifier['events']&$event)) {
229 229
 							if (!isset($updatedNotifiers[$key])) {
230 230
 								if (isset($this->notifiers[$key]) && is_object($this->notifiers[$key])) {
231 231
 									$this->notifiers[$key]->update($event, $entryID, $data);
Please login to merge, or discard this patch.
server/includes/core/class.indexsqlite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 		$r3 = ($eid >> 32) & 0xFF;
22 22
 		$r4 = ($eid >> 24) & 0xFF;
23 23
 		$r5 = ($eid >> 16) & 0xFF;
24
-		$value = $r0 | ($r1 << 8) | ($r2 << 16) | ($r3 << 24) | ($r4 << 32) | ($r5 << 40);
24
+		$value = $r0|($r1 << 8)|($r2 << 16)|($r3 << 24)|($r4 << 32)|($r5 << 40);
25 25
 
26 26
 		return $value;
27 27
 	}
Please login to merge, or discard this patch.
server/includes/core/class.settings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
 				}
515 515
 
516 516
 				try {
517
-					$stream = mapi_openproperty($this->store, PR_EC_WEBACCESS_SETTINGS_JSON, IID_IStream, STGM_TRANSACTED, MAPI_CREATE | MAPI_MODIFY);
517
+					$stream = mapi_openproperty($this->store, PR_EC_WEBACCESS_SETTINGS_JSON, IID_IStream, STGM_TRANSACTED, MAPI_CREATE|MAPI_MODIFY);
518 518
 					mapi_stream_setsize($stream, strlen($settings));
519 519
 					mapi_stream_write($stream, $settings);
520 520
 					mapi_stream_commit($stream);
@@ -540,7 +540,7 @@  discard block
 block discarded – undo
540 540
 
541 541
 			// Check if the settings have been changed.
542 542
 			if ($this->persistentSettingsString !== $persistentSettings) {
543
-				$stream = mapi_openproperty($this->store, PR_EC_WEBAPP_PERSISTENT_SETTINGS_JSON, IID_IStream, STGM_TRANSACTED, MAPI_CREATE | MAPI_MODIFY);
543
+				$stream = mapi_openproperty($this->store, PR_EC_WEBAPP_PERSISTENT_SETTINGS_JSON, IID_IStream, STGM_TRANSACTED, MAPI_CREATE|MAPI_MODIFY);
544 544
 				mapi_stream_setsize($stream, strlen($persistentSettings));
545 545
 				mapi_stream_write($stream, $persistentSettings);
546 546
 				mapi_stream_commit($stream);
Please login to merge, or discard this patch.
server/includes/core/class.colors.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@
 block discarded – undo
297 297
 			$r = intval($m[1]);
298 298
 			$g = intval($m[2]);
299 299
 			$b = intval($m[3]);
300
-			if ($r < 0 || $r > 255 || $g < 0 || $g > 255 | $b < 0 || $b > 255) {
300
+			if ($r < 0 || $r > 255 || $g < 0 || $g > 255|$b < 0 || $b > 255) {
301 301
 				// Not a valid color
302 302
 				return null;
303 303
 			}
Please login to merge, or discard this patch.
server/includes/core/class.todolist.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 								[
205 205
 									RES_CONTENT,
206 206
 									[
207
-										FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE,
207
+										FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE,
208 208
 										ULPROPTAG => PR_MESSAGE_CLASS,
209 209
 										VALUE => "IPM.Appointment",
210 210
 									],
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 								[
218 218
 									RES_CONTENT,
219 219
 									[
220
-										FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE,
220
+										FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE,
221 221
 										ULPROPTAG => PR_MESSAGE_CLASS,
222 222
 										VALUE => "IPM.Activity",
223 223
 									],
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 								[
231 231
 									RES_CONTENT,
232 232
 									[
233
-										FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE,
233
+										FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE,
234 234
 										ULPROPTAG => PR_MESSAGE_CLASS,
235 235
 										VALUE => "IPM.StickyNote",
236 236
 									],
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 												[
423 423
 													RES_CONTENT,
424 424
 													[
425
-														FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE,
425
+														FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE,
426 426
 														ULPROPTAG => PR_MESSAGE_CLASS,
427 427
 														VALUE => "IPM.Task.",
428 428
 													],
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
 												[
431 431
 													RES_CONTENT,
432 432
 													[
433
-														FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE,
433
+														FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE,
434 434
 														ULPROPTAG => PR_MESSAGE_CLASS,
435 435
 														VALUE => "IPM.Task",
436 436
 													],
Please login to merge, or discard this patch.
server/includes/download_attachment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -228,21 +228,21 @@
 block discarded – undo
228 228
 			[
229 229
 				[RES_CONTENT,
230 230
 					[
231
-						FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE,
231
+						FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE,
232 232
 						ULPROPTAG => PR_ATTACH_CONTENT_ID,
233 233
 						VALUE => [PR_ATTACH_CONTENT_ID => $this->attachCid],
234 234
 					],
235 235
 				],
236 236
 				[RES_CONTENT,
237 237
 					[
238
-						FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE,
238
+						FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE,
239 239
 						ULPROPTAG => PR_ATTACH_CONTENT_LOCATION,
240 240
 						VALUE => [PR_ATTACH_CONTENT_LOCATION => $this->attachCid],
241 241
 					],
242 242
 				],
243 243
 				[RES_CONTENT,
244 244
 					[
245
-						FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE,
245
+						FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE,
246 246
 						ULPROPTAG => PR_ATTACH_FILENAME,
247 247
 						VALUE => [PR_ATTACH_FILENAME => $this->attachCid],
248 248
 					],
Please login to merge, or discard this patch.
server/includes/util.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
 		// mark the message as read if the main message has read flag
575 575
 		if ($read) {
576 576
 			$mprops = mapi_getprops($message, [PR_MESSAGE_FLAGS]);
577
-			mapi_setprops($message, [PR_MESSAGE_FLAGS => $mprops[PR_MESSAGE_FLAGS] | MSGFLAG_READ]);
577
+			mapi_setprops($message, [PR_MESSAGE_FLAGS => $mprops[PR_MESSAGE_FLAGS]|MSGFLAG_READ]);
578 578
 		}
579 579
 	}
580 580
 
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
 			$rootFolder = getSubTree($store);
717 717
 		}
718 718
 
719
-		$hierarchy = mapi_folder_gethierarchytable($rootFolder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS);
719
+		$hierarchy = mapi_folder_gethierarchytable($rootFolder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS);
720 720
 		$rows = mapi_table_queryallrows($hierarchy, $props);
721 721
 
722 722
 		// Append the Inbox folder itself.
Please login to merge, or discard this patch.
server/includes/modules/class.addressbooklistmodule.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 							// Display name of user from GAB and contacts.
202 202
 							[
203 203
 								RES_CONTENT,
204
-								[FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE,
204
+								[FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE,
205 205
 									ULPROPTAG => PR_DISPLAY_NAME,
206 206
 									VALUE => $searchstring,
207 207
 								],
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 							// fileas value of user from GAB.
210 210
 							[
211 211
 								RES_CONTENT,
212
-								[FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE,
212
+								[FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE,
213 213
 									ULPROPTAG => PR_ACCOUNT,
214 214
 									VALUE => $searchstring,
215 215
 								],
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 							// smtp_address of user from GAB.
218 218
 							[
219 219
 								RES_CONTENT,
220
-								[FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE,
220
+								[FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE,
221 221
 									ULPROPTAG => PR_SMTP_ADDRESS,
222 222
 									VALUE => $searchstring,
223 223
 								],
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 							// email_address of user from GAB and contacts.
226 226
 							[
227 227
 								RES_CONTENT,
228
-								[FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE,
228
+								[FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE,
229 229
 									ULPROPTAG => PR_EMAIL_ADDRESS,
230 230
 									VALUE => $searchstring,
231 231
 								],
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 							// department of user from GAB.
234 234
 							[
235 235
 								RES_CONTENT,
236
-								[FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE,
236
+								[FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE,
237 237
 									ULPROPTAG => PR_DEPARTMENT_NAME,
238 238
 									VALUE => $searchstring,
239 239
 								],
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 							// fileas of user from Contacts.
242 242
 							[
243 243
 								RES_CONTENT,
244
-								[FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE,
244
+								[FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE,
245 245
 									ULPROPTAG => PR_ORIGINAL_DISPLAY_NAME,
246 246
 									VALUE => $searchstring,
247 247
 								],
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
 						[
618 618
 							RES_CONTENT,
619 619
 							[
620
-								FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE,
620
+								FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE,
621 621
 								ULPROPTAG => PR_ACCOUNT,
622 622
 								VALUE => [
623 623
 									PR_ACCOUNT => 'SYSTEM',
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
 								RELOP => RELOP_EQ,
762 762
 								ULPROPTAG => PR_DISPLAY_TYPE_EX,
763 763
 								VALUE => [
764
-									PR_DISPLAY_TYPE_EX => (DT_SEC_DISTLIST | DTE_FLAG_ACL_CAPABLE),
764
+									PR_DISPLAY_TYPE_EX => (DT_SEC_DISTLIST|DTE_FLAG_ACL_CAPABLE),
765 765
 								],
766 766
 							],
767 767
 						]
@@ -806,7 +806,7 @@  discard block
 block discarded – undo
806 806
 						[
807 807
 							RES_CONTENT,
808 808
 							[
809
-								FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE,
809
+								FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE,
810 810
 								ULPROPTAG => PR_ACCOUNT,
811 811
 								VALUE => [
812 812
 									PR_ACCOUNT => 'Everyone',
@@ -850,7 +850,7 @@  discard block
 block discarded – undo
850 850
 									],
851 851
 									[
852 852
 										RES_OR,
853
-										$tempRestrictions,     // all group restrictions
853
+										$tempRestrictions, // all group restrictions
854 854
 									],
855 855
 								],
856 856
 							],
@@ -923,7 +923,7 @@  discard block
 block discarded – undo
923 923
 		public function getAddressbookHierarchy($hideContacts = false) {
924 924
 			$ab = $GLOBALS["mapisession"]->getAddressbook(false, true);
925 925
 			$dir = mapi_ab_openentry($ab);
926
-			$table = mapi_folder_gethierarchytable($dir, MAPI_DEFERRED_ERRORS | CONVENIENT_DEPTH);
926
+			$table = mapi_folder_gethierarchytable($dir, MAPI_DEFERRED_ERRORS|CONVENIENT_DEPTH);
927 927
 
928 928
 			if ($hideContacts) {
929 929
 				// Restrict on the addressbook provider GUID if the contact folders need to be hidden
Please login to merge, or discard this patch.
server/includes/modules/class.restoreitemslistmodule.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
 			// delete all folders.
100 100
 			if (isset($action["itemType"]) && $action["itemType"] == "folder") {
101
-				$table = mapi_folder_gethierarchytable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES);
101
+				$table = mapi_folder_gethierarchytable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES);
102 102
 				$items = mapi_table_queryallrows($table, [PR_ENTRYID]);
103 103
 				$restoreItems = [];
104 104
 				foreach ($items as $item) {
@@ -106,12 +106,12 @@  discard block
 block discarded – undo
106 106
 				}
107 107
 
108 108
 				foreach ($restoreItems as $restoreItem) {
109
-					mapi_folder_deletefolder($folder, $restoreItem, DEL_FOLDERS | DEL_MESSAGES | DELETE_HARD_DELETE);
109
+					mapi_folder_deletefolder($folder, $restoreItem, DEL_FOLDERS|DEL_MESSAGES|DELETE_HARD_DELETE);
110 110
 				}
111 111
 			}
112 112
 			else {
113 113
 				// delete all messages
114
-				$table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES);
114
+				$table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES);
115 115
 				$items = mapi_table_queryallrows($table, [PR_ENTRYID]);
116 116
 
117 117
 				$restoreItems = [];
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 		 * @throws MAPIException
136 136
 		 */
137 137
 		public function restoreAllFolders($store, $folder) {
138
-			$table = mapi_folder_gethierarchytable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES);
138
+			$table = mapi_folder_gethierarchytable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES);
139 139
 			$items = mapi_table_queryallrows($table, [PR_ENTRYID]);
140 140
 			$restoreItems = [];
141 141
 			foreach ($items as $item) {
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 		 * @param {object} $folder the content of this folder is going to restored
176 176
 		 */
177 177
 		public function restoreAllItems($folder) {
178
-			$table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES);
178
+			$table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES);
179 179
 			$items = mapi_table_queryallrows($table, [PR_ENTRYID]);
180 180
 
181 181
 			$restoreItems = [];
@@ -251,10 +251,10 @@  discard block
 block discarded – undo
251 251
 			$folder = mapi_msgstore_openentry($store, $entryid);
252 252
 
253 253
 			if (isset($action["itemType"]) && $action["itemType"] == "folder") {
254
-				$table = mapi_folder_gethierarchytable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES);
254
+				$table = mapi_folder_gethierarchytable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES);
255 255
 			}
256 256
 			else {
257
-				$table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS | SHOW_SOFT_DELETES);
257
+				$table = mapi_folder_getcontentstable($folder, MAPI_DEFERRED_ERRORS|SHOW_SOFT_DELETES);
258 258
 			}
259 259
 
260 260
 			$data = $GLOBALS["operations"]->getTableContent($table, $this->properties, $this->sort, $this->start, $limit, $this->restriction);
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 			$sfolder = mapi_msgstore_openentry($store, $parententryid);
334 334
 
335 335
 			for ($index = 0, $len = count($folders); $index < $len; ++$index) {
336
-				mapi_folder_deletefolder($sfolder, hex2bin($folders[$index]['entryid']), DEL_FOLDERS | DEL_MESSAGES | DELETE_HARD_DELETE);
336
+				mapi_folder_deletefolder($sfolder, hex2bin($folders[$index]['entryid']), DEL_FOLDERS|DEL_MESSAGES|DELETE_HARD_DELETE);
337 337
 			}
338 338
 
339 339
 			$this->sendFeedback(true);
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 			 * folder gets changed and we don't have notification system to get new entryid, so to notify client about changes we need to
389 389
 			 * notify all subfolders of parent folder where we have restored the folder
390 390
 			 */
391
-			$hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS);
391
+			$hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS);
392 392
 			mapi_table_sort($hierarchyTable, [PR_DISPLAY_NAME => TABLE_SORT_ASCEND], TBL_BATCH);
393 393
 
394 394
 			$subfolders = mapi_table_queryallrows($hierarchyTable, [PR_ENTRYID]);
Please login to merge, or discard this patch.