Test Failed
Branch master (2f190b)
by Mike
11:47
created
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.
server/includes/modules/class.contactitemmodule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 		 * @return bool true on success or false on failure
109 109
 		 */
110 110
 		public function save($store, $parententryid, $entryid, $action) {
111
-			$properiesToDelete = [];		// create an array of properties which should be deleted
111
+			$properiesToDelete = []; // create an array of properties which should be deleted
112 112
 			// this array is passed to $GLOBALS['operations']->saveMessage() function
113 113
 
114 114
 			if (!$store && !$parententryid) {
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
 
450 450
 			// UTC time
451 451
 			$startDateUTC = $actionProps[$type];
452
-			$dueDateUTC = $actionProps[$type] + (24 * 60 * 60);	// ONE DAY is added to set duedate of item.
452
+			$dueDateUTC = $actionProps[$type] + (24 * 60 * 60); // ONE DAY is added to set duedate of item.
453 453
 
454 454
 			// get local time from UTC time
455 455
 			$recur = new Recurrence($store, []);
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
 				'busystatus' => fbFree,
476 476
 				'meeting' => olNonMeeting,
477 477
 				'object_type' => MAPI_MESSAGE,
478
-				'message_flags' => MSGFLAG_READ | MSGFLAG_UNSENT,
478
+				'message_flags' => MSGFLAG_READ|MSGFLAG_UNSENT,
479 479
 				'subject' => $subject,
480 480
 
481 481
 				'startdate' => $startDateUTC,
Please login to merge, or discard this patch.
server/includes/modules/class.hierarchymodule.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 									throw new MAPIException(null, MAPI_E_NO_ACCESS);
317 317
 								}
318 318
 
319
-								$noPermissionFolders = array_filter($data['item'][0]['folders']['item'], function ($item) {
319
+								$noPermissionFolders = array_filter($data['item'][0]['folders']['item'], function($item) {
320 320
 									return $item['props']['access'] === 0;
321 321
 								});
322 322
 								if (count($noPermissionFolders) >= $folders) {
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
 			if (isset($action["permissions"])) {
686 686
 				$this->setFolderPermissions($folder, $action["permissions"]);
687 687
 				if (isset($action['props']['recursive'])) {
688
-					$hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS);
688
+					$hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS);
689 689
 					$subfolders = mapi_table_queryallrows($hierarchyTable, [PR_ENTRYID]);
690 690
 					foreach ($subfolders as $subfolder) {
691 691
 						$folderObject = mapi_msgstore_openentry($store, $subfolder[PR_ENTRYID]);
@@ -757,7 +757,7 @@  discard block
 block discarded – undo
757 757
 					foreach ($curAcls as $aclIndex => &$curAcl) {
758 758
 						if ($curAcl['userid'] === $userid) {
759 759
 							$curAcl['rights'] = ecRightsNone;
760
-							$curAcl['state'] = RIGHT_DELETED | RIGHT_AUTOUPDATE_DENIED;
760
+							$curAcl['state'] = RIGHT_DELETED|RIGHT_AUTOUPDATE_DENIED;
761 761
 						}
762 762
 					}
763 763
 					unset($curAcl);
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
 						foreach ($curAcls as $aclIndex => &$curAcl) {
785 785
 							if ($curAcl['userid'] === $userid) {
786 786
 								$curAcl['rights'] = $modAcl['rights'];
787
-								$curAcl['state'] = RIGHT_MODIFY | RIGHT_AUTOUPDATE_DENIED;
787
+								$curAcl['state'] = RIGHT_MODIFY|RIGHT_AUTOUPDATE_DENIED;
788 788
 							}
789 789
 						}
790 790
 					}
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
 						'type' => ACCESS_TYPE_GRANT,
801 801
 						'userid' => hex2bin($addAcl['entryid']),
802 802
 						'rights' => $addAcl['rights'],
803
-						'state' => RIGHT_NEW | RIGHT_AUTOUPDATE_DENIED,
803
+						'state' => RIGHT_NEW|RIGHT_AUTOUPDATE_DENIED,
804 804
 					];
805 805
 				}
806 806
 				unset($addAcl);
@@ -1032,7 +1032,7 @@  discard block
 block discarded – undo
1032 1032
 			if (!isset($action["message_action"]["keepSearchFolder"])) {
1033 1033
 				$finderFolder = mapi_msgstore_openentry($store, $parententryid);
1034 1034
 
1035
-				return mapi_folder_deletefolder($finderFolder, $entryid, DEL_FOLDERS | DEL_MESSAGES | DELETE_HARD_DELETE);
1035
+				return mapi_folder_deletefolder($finderFolder, $entryid, DEL_FOLDERS|DEL_MESSAGES|DELETE_HARD_DELETE);
1036 1036
 			}
1037 1037
 			// Rename search folder to default search folder name otherwise,
1038 1038
 			// It will not be picked up by our search folder cleanup logic.
@@ -1258,7 +1258,7 @@  discard block
 block discarded – undo
1258 1258
 
1259 1259
 				// Update subfolders of copy/move folder
1260 1260
 				$folder = mapi_msgstore_openentry($deststore, $destfolderentryid);
1261
-				$hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH | MAPI_DEFERRED_ERRORS);
1261
+				$hierarchyTable = mapi_folder_gethierarchytable($folder, CONVENIENT_DEPTH|MAPI_DEFERRED_ERRORS);
1262 1262
 				mapi_table_sort($hierarchyTable, [PR_DISPLAY_NAME => TABLE_SORT_ASCEND], TBL_BATCH);
1263 1263
 
1264 1264
 				/**
Please login to merge, or discard this patch.
server/includes/modules/class.rulesmodule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 		public function getRestriction() {
123 123
 			return [RES_CONTENT,
124 124
 				[
125
-					FUZZYLEVEL => FL_PREFIX | FL_IGNORECASE,
125
+					FUZZYLEVEL => FL_PREFIX|FL_IGNORECASE,
126 126
 					ULPROPTAG => PR_RULE_PROVIDER,
127 127
 					VALUE => [
128 128
 						PR_RULE_PROVIDER => 'RuleOrganizer',
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 				$associatedTable,
279 279
 				[RES_CONTENT,
280 280
 					[
281
-						FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE,
281
+						FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE,
282 282
 						ULPROPTAG => PR_MESSAGE_CLASS,
283 283
 						VALUE => [
284 284
 							PR_MESSAGE_CLASS => "IPM.RuleOrganizer",
Please login to merge, or discard this patch.
server/includes/modules/class.suggestemailaddressmodule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 			// Write new recipient history to property
100 100
 			$l_sNewRecipientHistoryJSON = json_encode($recipient_history);
101 101
 
102
-			$stream = mapi_openproperty($GLOBALS["mapisession"]->getDefaultMessageStore(), PR_EC_RECIPIENT_HISTORY_JSON, IID_IStream, 0, MAPI_CREATE | MAPI_MODIFY);
102
+			$stream = mapi_openproperty($GLOBALS["mapisession"]->getDefaultMessageStore(), PR_EC_RECIPIENT_HISTORY_JSON, IID_IStream, 0, MAPI_CREATE|MAPI_MODIFY);
103 103
 			mapi_stream_setsize($stream, strlen($l_sNewRecipientHistoryJSON));
104 104
 			mapi_stream_write($stream, $l_sNewRecipientHistoryJSON);
105 105
 			mapi_stream_commit($stream);
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
 		if (!empty($action["query"]) && !empty($recipient_history) && !empty($recipient_history['recipients'])) {
123 123
 			// Setup result array with match levels
124 124
 			$l_aResult = [
125
-				0 => [],	// Matches on whole string
126
-				1 => [],	// Matches on part of string
125
+				0 => [], // Matches on whole string
126
+				1 => [], // Matches on part of string
127 127
 			];
128 128
 
129 129
 			// Loop through all the recipients
Please login to merge, or discard this patch.
server/includes/modules/class.listmodule.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -496,12 +496,12 @@  discard block
 block discarded – undo
496 496
 			$data["search_meta"]["searchfolder_entryid"] = $entryid;
497 497
 			$data["search_meta"]["search_store_entryid"] = $action["store_entryid"];
498 498
 			$data["search_meta"]["searchstate"] = $searchState;
499
-			$data["search_meta"]["results"] = $numberOfResults;		// actual number of items that we are sending to client
499
+			$data["search_meta"]["results"] = $numberOfResults; // actual number of items that we are sending to client
500 500
 
501 501
 			$data["page"] = [];
502 502
 			$data["page"]["start"] = 0;
503 503
 			$data["page"]["rowcount"] = $rowCount;
504
-			$data["page"]["totalrowcount"] = $totalRowCount;	// total number of items
504
+			$data["page"]["totalrowcount"] = $totalRowCount; // total number of items
505 505
 
506 506
 			if (!empty($listData)) {
507 507
 				$data["item"] = array_merge([], $listData);
@@ -651,7 +651,7 @@  discard block
 block discarded – undo
651 651
 				$rows = mapi_table_queryrows($table, [PR_DISPLAY_NAME, PR_ENTRYID], 0, 0xFFFF);
652 652
 				foreach ($rows as $row) {
653 653
 					if (strcasecmp($folderName, $row[PR_DISPLAY_NAME]) == 0) {
654
-						mapi_folder_deletefolder($searchFolderRoot, $row[PR_ENTRYID], DEL_FOLDERS | DEL_MESSAGES);
654
+						mapi_folder_deletefolder($searchFolderRoot, $row[PR_ENTRYID], DEL_FOLDERS|DEL_MESSAGES);
655 655
 						break;
656 656
 					}
657 657
 				}
@@ -781,8 +781,8 @@  discard block
 block discarded – undo
781 781
 				// Otherwise the server would generate multiple rows for one item (categories).
782 782
 				foreach ($properties as $id => $property) {
783 783
 					switch (mapi_prop_type($property)) {
784
-						case PT_MV_STRING8 | MVI_FLAG:
785
-						case PT_MV_LONG | MVI_FLAG:
784
+						case PT_MV_STRING8|MVI_FLAG:
785
+						case PT_MV_LONG|MVI_FLAG:
786 786
 							$properties[$id] = $properties[$id] & ~MV_INSTANCE;
787 787
 							break;
788 788
 					}
@@ -806,7 +806,7 @@  discard block
 block discarded – undo
806 806
 									// Set MVI_FLAG.
807 807
 									// The server will generate multiple rows for one item (for example: categories)
808 808
 									if ($allow_multi_instance) {
809
-										$properties[$column["field"]] = $properties[$column["field"]] | MVI_FLAG;
809
+										$properties[$column["field"]] = $properties[$column["field"]]|MVI_FLAG;
810 810
 									}
811 811
 									$property = $properties[$column["field"]];
812 812
 									break;
Please login to merge, or discard this patch.
server/includes/modules/class.advancedsearchlistmodule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 			elseif ($type == RES_BITMASK) {
204 204
 				$subres = $restriction[1];
205 205
 				if ($subres[ULPROPTAG] == PR_MESSAGE_FLAGS && $subres[ULTYPE] == BMR_EQZ) {
206
-					if (MSGFLAG_READ & $subres[ULMASK]) {
206
+					if (MSGFLAG_READ&$subres[ULMASK]) {
207 207
 						$patterns['unread'] = true;
208 208
 					}
209 209
 				}
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 					}
344 344
 				}
345 345
 				// we never start the search folder because we will populate the search folder by ourselves
346
-				mapi_folder_setsearchcriteria($searchFolder, $this->restriction, $entryids, $subfolder_flag | STOP_SEARCH);
346
+				mapi_folder_setsearchcriteria($searchFolder, $this->restriction, $entryids, $subfolder_flag|STOP_SEARCH);
347 347
 				$this->sessionData['searchCriteriaCheck'] = $restrictionCheck;
348 348
 			}
349 349
 
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 				if ($this->sessionData['searchOriginalEntryids'][0] !== $folderEntryid) {
353 353
 					$this->sessionData['searchOriginalEntryids'][0] = $folderEntryid;
354 354
 					// we never start the search folder because we will populate the search folder by ourselves
355
-					mapi_folder_setsearchcriteria($searchFolder, $this->restriction, [$entryid], $subfolder_flag | STOP_SEARCH);
355
+					mapi_folder_setsearchcriteria($searchFolder, $this->restriction, [$entryid], $subfolder_flag|STOP_SEARCH);
356 356
 				}
357 357
 			}
358 358
 
Please login to merge, or discard this patch.
server/includes/modules/class.delegatesmodule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 			// get delegate meeting rule
326 326
 			$restriction = [RES_CONTENT,
327 327
 				[
328
-					FUZZYLEVEL => FL_FULLSTRING | FL_IGNORECASE,
328
+					FUZZYLEVEL => FL_FULLSTRING|FL_IGNORECASE,
329 329
 					ULPROPTAG => PR_RULE_PROVIDER,
330 330
 					VALUE => [
331 331
 						PR_RULE_PROVIDER => 'Schedule+ EMS Interface',
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
 							'type' => ACCESS_TYPE_GRANT,
446 446
 							'userid' => hex2bin($delegate['entryid']),
447 447
 							'rights' => $delegate['props']['rights_' . $folderName],
448
-							'state' => RIGHT_NEW | RIGHT_AUTOUPDATE_DENIED,
448
+							'state' => RIGHT_NEW|RIGHT_AUTOUPDATE_DENIED,
449 449
 						],
450 450
 					];
451 451
 
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
 			];
576 576
 
577 577
 			$rule[PR_RULE_NAME] = '';
578
-			$rule[PR_RULE_PROVIDER_DATA] = '';		// 0 byte binary string
578
+			$rule[PR_RULE_PROVIDER_DATA] = ''; // 0 byte binary string
579 579
 			$rule[PR_RULE_STATE] = ST_ENABLED;
580 580
 			$rule[PR_RULE_LEVEL] = 0;
581 581
 			$rule[PR_RULE_SEQUENCE] = 0;
@@ -700,7 +700,7 @@  discard block
 block discarded – undo
700 700
 						'type' => ACCESS_TYPE_GRANT,
701 701
 						'userid' => hex2bin($delegate['entryid']),
702 702
 						'rights' => ecRightsNone,
703
-						'state' => RIGHT_DELETED | RIGHT_AUTOUPDATE_DENIED,
703
+						'state' => RIGHT_DELETED|RIGHT_AUTOUPDATE_DENIED,
704 704
 					],
705 705
 				];
706 706
 
Please login to merge, or discard this patch.