@@ -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()) { |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $loader->register(true); |
| 33 | 33 | |
| 34 | 34 | $filesToLoad = \Composer\Autoload\ComposerStaticInit153a56a781a72686b71399955d98204f::$files; |
| 35 | - $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { |
|
| 35 | + $requireFile = \Closure::bind(static function($fileIdentifier, $file) { |
|
| 36 | 36 | if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { |
| 37 | 37 | $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; |
| 38 | 38 | |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | if (!headers_sent()) { |
| 7 | 7 | header('HTTP/1.1 500 Internal Server Error'); |
| 8 | 8 | } |
| 9 | - $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; |
|
| 9 | + $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running ' . PHP_VERSION . ', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.' . PHP_EOL; |
|
| 10 | 10 | if (!ini_get('display_errors')) { |
| 11 | 11 | if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { |
| 12 | 12 | fwrite(STDERR, $err); |