@@ -32,7 +32,7 @@ |
||
32 | 32 | "035" => ["Eastern Standard Time", "(GMT-05:00) Eastern Time (US and Canada)"], |
33 | 33 | "040" => ["US Eastern Standard Time", "(GMT-05:00) Indiana (East)"], |
34 | 34 | "045" => ["SA Pacific Standard Time", "(GMT-05:00) Bogota, Lima, Quito"], |
35 | - "uk1" => ["Venezuela Standard Time", "(GMT-04:30) Caracas"], // added |
|
35 | + "uk1" => ["Venezuela Standard Time", "(GMT-04:30) Caracas"], // added |
|
36 | 36 | "050" => ["Atlantic Standard Time", "(GMT-04:00) Atlantic Time (Canada)"], |
37 | 37 | "055" => ["SA Western Standard Time", "(GMT-04:00) Caracas, La Paz"], |
38 | 38 | "056" => ["Pacific SA Standard Time", "(GMT-04:00) Santiago"], |
@@ -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()) { |
@@ -4,45 +4,45 @@ |
||
4 | 4 | |
5 | 5 | class ComposerAutoloaderInit153a56a781a72686b71399955d98204f |
6 | 6 | { |
7 | - private static $loader; |
|
8 | - |
|
9 | - public static function loadClassLoader($class) |
|
10 | - { |
|
11 | - if ('Composer\Autoload\ClassLoader' === $class) { |
|
12 | - require __DIR__ . '/ClassLoader.php'; |
|
13 | - } |
|
14 | - } |
|
15 | - |
|
16 | - /** |
|
17 | - * @return \Composer\Autoload\ClassLoader |
|
18 | - */ |
|
19 | - public static function getLoader() |
|
20 | - { |
|
21 | - if (null !== self::$loader) { |
|
22 | - return self::$loader; |
|
23 | - } |
|
24 | - |
|
25 | - spl_autoload_register(array('ComposerAutoloaderInit153a56a781a72686b71399955d98204f', 'loadClassLoader'), true, true); |
|
26 | - self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); |
|
27 | - spl_autoload_unregister(array('ComposerAutoloaderInit153a56a781a72686b71399955d98204f', 'loadClassLoader')); |
|
28 | - |
|
29 | - require __DIR__ . '/autoload_static.php'; |
|
30 | - call_user_func(\Composer\Autoload\ComposerStaticInit153a56a781a72686b71399955d98204f::getInitializer($loader)); |
|
31 | - |
|
32 | - $loader->register(true); |
|
33 | - |
|
34 | - $filesToLoad = \Composer\Autoload\ComposerStaticInit153a56a781a72686b71399955d98204f::$files; |
|
35 | - $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { |
|
36 | - if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { |
|
37 | - $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; |
|
38 | - |
|
39 | - require $file; |
|
40 | - } |
|
41 | - }, null, null); |
|
42 | - foreach ($filesToLoad as $fileIdentifier => $file) { |
|
43 | - $requireFile($fileIdentifier, $file); |
|
44 | - } |
|
45 | - |
|
46 | - return $loader; |
|
47 | - } |
|
7 | + private static $loader; |
|
8 | + |
|
9 | + public static function loadClassLoader($class) |
|
10 | + { |
|
11 | + if ('Composer\Autoload\ClassLoader' === $class) { |
|
12 | + require __DIR__ . '/ClassLoader.php'; |
|
13 | + } |
|
14 | + } |
|
15 | + |
|
16 | + /** |
|
17 | + * @return \Composer\Autoload\ClassLoader |
|
18 | + */ |
|
19 | + public static function getLoader() |
|
20 | + { |
|
21 | + if (null !== self::$loader) { |
|
22 | + return self::$loader; |
|
23 | + } |
|
24 | + |
|
25 | + spl_autoload_register(array('ComposerAutoloaderInit153a56a781a72686b71399955d98204f', 'loadClassLoader'), true, true); |
|
26 | + self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); |
|
27 | + spl_autoload_unregister(array('ComposerAutoloaderInit153a56a781a72686b71399955d98204f', 'loadClassLoader')); |
|
28 | + |
|
29 | + require __DIR__ . '/autoload_static.php'; |
|
30 | + call_user_func(\Composer\Autoload\ComposerStaticInit153a56a781a72686b71399955d98204f::getInitializer($loader)); |
|
31 | + |
|
32 | + $loader->register(true); |
|
33 | + |
|
34 | + $filesToLoad = \Composer\Autoload\ComposerStaticInit153a56a781a72686b71399955d98204f::$files; |
|
35 | + $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { |
|
36 | + if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { |
|
37 | + $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; |
|
38 | + |
|
39 | + require $file; |
|
40 | + } |
|
41 | + }, null, null); |
|
42 | + foreach ($filesToLoad as $fileIdentifier => $file) { |
|
43 | + $requireFile($fileIdentifier, $file); |
|
44 | + } |
|
45 | + |
|
46 | + return $loader; |
|
47 | + } |
|
48 | 48 | } |
@@ -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,8 +6,7 @@ discard block |
||
6 | 6 | { |
7 | 7 | private static $loader; |
8 | 8 | |
9 | - public static function loadClassLoader($class) |
|
10 | - { |
|
9 | + public static function loadClassLoader($class) { |
|
11 | 10 | if ('Composer\Autoload\ClassLoader' === $class) { |
12 | 11 | require __DIR__ . '/ClassLoader.php'; |
13 | 12 | } |
@@ -16,8 +15,7 @@ discard block |
||
16 | 15 | /** |
17 | 16 | * @return \Composer\Autoload\ClassLoader |
18 | 17 | */ |
19 | - public static function getLoader() |
|
20 | - { |
|
18 | + public static function getLoader() { |
|
21 | 19 | if (null !== self::$loader) { |
22 | 20 | return self::$loader; |
23 | 21 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | 'MAPIProvider' => $baseDir . '/lib/grommunio/mapiprovider.php', |
53 | 53 | 'MAPIStreamWrapper' => $baseDir . '/lib/grommunio/mapistreamwrapper.php', |
54 | 54 | 'MAPIUtils' => $baseDir . '/lib/grommunio/mapiutils.php', |
55 | - 'Mail_RFC822' => $baseDir . '/lib/utils/g_RFC822.php', |
|
55 | + 'Mail_RFC822' => $baseDir . '/lib/utils/g_RFC822.php', |
|
56 | 56 | 'MeetingResponse' => $baseDir . '/lib/request/meetingresponse.php', |
57 | 57 | 'Meetingrequest' => '/usr/share/php-mapi/class.meetingrequest.php', |
58 | 58 | 'MoveItems' => $baseDir . '/lib/request/moveitems.php', |
@@ -3,18 +3,18 @@ |
||
3 | 3 | // autoload.php @generated by Composer |
4 | 4 | |
5 | 5 | if (PHP_VERSION_ID < 50600) { |
6 | - if (!headers_sent()) { |
|
7 | - header('HTTP/1.1 500 Internal Server Error'); |
|
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; |
|
10 | - if (!ini_get('display_errors')) { |
|
11 | - if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { |
|
12 | - fwrite(STDERR, $err); |
|
13 | - } elseif (!headers_sent()) { |
|
14 | - echo $err; |
|
15 | - } |
|
16 | - } |
|
17 | - throw new RuntimeException($err); |
|
6 | + if (!headers_sent()) { |
|
7 | + header('HTTP/1.1 500 Internal Server Error'); |
|
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; |
|
10 | + if (!ini_get('display_errors')) { |
|
11 | + if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { |
|
12 | + fwrite(STDERR, $err); |
|
13 | + } elseif (!headers_sent()) { |
|
14 | + echo $err; |
|
15 | + } |
|
16 | + } |
|
17 | + throw new RuntimeException($err); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | require_once __DIR__ . '/composer/autoload_real.php'; |
@@ -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); |
@@ -10,7 +10,8 @@ |
||
10 | 10 | if (!ini_get('display_errors')) { |
11 | 11 | if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { |
12 | 12 | fwrite(STDERR, $err); |
13 | - } elseif (!headers_sent()) { |
|
13 | + } |
|
14 | + elseif (!headers_sent()) { |
|
14 | 15 | echo $err; |
15 | 16 | } |
16 | 17 | } |