@@ -51,7 +51,7 @@ |
||
| 51 | 51 | // there are no SyncParameters for the hierarchy, but we use it to save the latest synckeys |
| 52 | 52 | $spa = self::$deviceManager->GetStateManager()->GetSynchedFolderState(false); |
| 53 | 53 | } |
| 54 | - catch (StateInvalidException|StateNotFoundException) { |
|
| 54 | + catch (StateInvalidException | StateNotFoundException) { |
|
| 55 | 55 | $status = SYNC_FSSTATUS_SYNCKEYERROR; |
| 56 | 56 | } |
| 57 | 57 | |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | 11 | class Request { |
| 12 | - public const MAXMEMORYUSAGE = 0.9; // use max. 90% of allowed memory when syncing |
|
| 12 | + public const MAXMEMORYUSAGE = 0.9; // use max. 90% of allowed memory when syncing |
|
| 13 | 13 | public const UNKNOWN = "unknown"; |
| 14 | 14 | public const IMPERSONATE_DELIM = '#'; |
| 15 | 15 | |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | else { |
| 199 | 199 | preg_replace_callback( |
| 200 | 200 | '/(\-?\d+)(.?)/', |
| 201 | - function ($m) { |
|
| 201 | + function($m) { |
|
| 202 | 202 | self::$memoryLimit = $m[1] * 1024 ** strpos('BKMG', $m[2]) * self::MAXMEMORYUSAGE; |
| 203 | 203 | }, |
| 204 | 204 | strtoupper($memoryLimit) |
@@ -1373,8 +1373,7 @@ discard block |
||
| 1373 | 1373 | |
| 1374 | 1374 | // if the search range is set limit the result to it, otherwise return all found messages |
| 1375 | 1375 | $rows = (is_array($searchRange) && isset($searchRange[0], $searchRange[1])) ? |
| 1376 | - mapi_table_queryrows($table, [PR_ENTRYID, PR_SOURCE_KEY], $searchRange[0], $searchRange[1] - $searchRange[0] + 1) : |
|
| 1377 | - mapi_table_queryrows($table, [PR_ENTRYID, PR_SOURCE_KEY], 0, SEARCH_MAXRESULTS); |
|
| 1376 | + mapi_table_queryrows($table, [PR_ENTRYID, PR_SOURCE_KEY], $searchRange[0], $searchRange[1] - $searchRange[0] + 1) : mapi_table_queryrows($table, [PR_ENTRYID, PR_SOURCE_KEY], 0, SEARCH_MAXRESULTS); |
|
| 1378 | 1377 | |
| 1379 | 1378 | $cnt = count($rows); |
| 1380 | 1379 | $items['searchtotal'] = $cnt; |
@@ -2110,7 +2109,7 @@ discard block |
||
| 2110 | 2109 | $error_state = true; |
| 2111 | 2110 | } |
| 2112 | 2111 | } |
| 2113 | - catch (Exception|TypeError) { |
|
| 2112 | + catch (Exception | TypeError) { |
|
| 2114 | 2113 | $error_state = true; |
| 2115 | 2114 | } |
| 2116 | 2115 | if ($error_state || (isset($stateFolderContents) && $stateFolderContents === false) || $stateFolderCount == 0 || mapi_last_hresult()) { |