Passed
Push — master ( 2bce33...4446ba )
by
unknown
03:24
created
lib/grommunio/grommunio.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1374,8 +1374,7 @@  discard block
 block discarded – undo
1374 1374
 
1375 1375
 		// if the search range is set limit the result to it, otherwise return all found messages
1376 1376
 		$rows = (is_array($searchRange) && isset($searchRange[0], $searchRange[1])) ?
1377
-			mapi_table_queryrows($table, [PR_ENTRYID], $searchRange[0], $searchRange[1] - $searchRange[0] + 1) :
1378
-			mapi_table_queryrows($table, [PR_ENTRYID], 0, SEARCH_MAXRESULTS);
1377
+			mapi_table_queryrows($table, [PR_ENTRYID], $searchRange[0], $searchRange[1] - $searchRange[0] + 1) : mapi_table_queryrows($table, [PR_ENTRYID], 0, SEARCH_MAXRESULTS);
1379 1378
 
1380 1379
 		$cnt = count($rows);
1381 1380
 		$items['searchtotal'] = $cnt;
@@ -1976,12 +1975,12 @@  discard block
 block discarded – undo
1976 1975
 			mapi_setprops($stateMessage, [PR_DISPLAY_NAME => $messageName, PR_MESSAGE_CLASS => 'IPM.Note.GrommunioState']);
1977 1976
 		}
1978 1977
 		if (isset($stateMessage)) {
1979
-			$jsonEncodedState = is_object($state) || is_array($state) ? json_encode($state, JSON_INVALID_UTF8_IGNORE | JSON_UNESCAPED_UNICODE) : $state;
1978
+			$jsonEncodedState = is_object($state) || is_array($state) ? json_encode($state, JSON_INVALID_UTF8_IGNORE|JSON_UNESCAPED_UNICODE) : $state;
1980 1979
 
1981 1980
 			$encodedState = base64_encode($jsonEncodedState);
1982 1981
 			$encodedStateLength = strlen($encodedState);
1983 1982
 			mapi_setprops($stateMessage, [PR_LAST_VERB_EXECUTED => is_int($counter) ? $counter : 0]);
1984
-			$stream = mapi_openproperty($stateMessage, PR_BODY, IID_IStream, STGM_DIRECT, MAPI_CREATE | MAPI_MODIFY);
1983
+			$stream = mapi_openproperty($stateMessage, PR_BODY, IID_IStream, STGM_DIRECT, MAPI_CREATE|MAPI_MODIFY);
1985 1984
 			mapi_stream_setsize($stream, $encodedStateLength);
1986 1985
 			mapi_stream_write($stream, $encodedState);
1987 1986
 			mapi_stream_commit($stream);
@@ -2076,7 +2075,7 @@  discard block
 block discarded – undo
2076 2075
 	private function adviseStoreToSink($store) {
2077 2076
 		// check if we already advised the store
2078 2077
 		if (!in_array($store, $this->changesSinkStores)) {
2079
-			mapi_msgstore_advise($store, null, fnevNewMail |fnevObjectModified | fnevObjectCreated | fnevObjectMoved | fnevObjectDeleted, $this->changesSink);
2078
+			mapi_msgstore_advise($store, null, fnevNewMail|fnevObjectModified|fnevObjectCreated|fnevObjectMoved|fnevObjectDeleted, $this->changesSink);
2080 2079
 
2081 2080
 			if (mapi_last_hresult()) {
2082 2081
 				SLog::Write(LOGLEVEL_WARN, sprintf("Grommunio->adviseStoreToSink(): failed to advised store '%s' with code 0x%X. Polling will be performed.", $store, mapi_last_hresult()));
@@ -2550,7 +2549,7 @@  discard block
 block discarded – undo
2550 2549
 					$resOr,
2551 2550
 					[RES_CONTENT,
2552 2551
 						[
2553
-							FUZZYLEVEL => FL_SUBSTRING | FL_IGNORECASE,
2552
+							FUZZYLEVEL => FL_SUBSTRING|FL_IGNORECASE,
2554 2553
 							ULPROPTAG => $property,
2555 2554
 							VALUE => u2w($term),
2556 2555
 						],
Please login to merge, or discard this patch.