Passed
Push — master ( 6522b6...8c95d3 )
by
unknown
04:16 queued 01:06
created
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.