@@ -142,7 +142,7 @@ |
||
142 | 142 | ], |
143 | 143 | ], // EXISTS OR |
144 | 144 | ], |
145 | - ]; // global OR |
|
145 | + ]; // global OR |
|
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | 0x3F => "DisallowNewTimeProposal", // Since 14.0 |
214 | 214 | ], |
215 | 215 | // AirNotify |
216 | - 3 => [ // Code page 3 is no longer in use, however, tokens 05 through 17 have been defined. 20100501 |
|
216 | + 3 => [// Code page 3 is no longer in use, however, tokens 05 through 17 have been defined. 20100501 |
|
217 | 217 | 0x05 => "Notify", |
218 | 218 | 0x06 => "Notification", |
219 | 219 | 0x07 => "Version", |
@@ -565,7 +565,7 @@ discard block |
||
565 | 565 | 0x12 => "Data", // Since 14.1 |
566 | 566 | ], |
567 | 567 | // AirSyncBase |
568 | - 0x11 => [ // Since 12.0 |
|
568 | + 0x11 => [// Since 12.0 |
|
569 | 569 | 0x05 => "BodyPreference", |
570 | 570 | 0x06 => "Type", |
571 | 571 | 0x07 => "TruncationSize", |
@@ -608,7 +608,7 @@ discard block |
||
608 | 608 | 0x2D => "InstanceId", // Since 16.0 |
609 | 609 | ], |
610 | 610 | // Settings |
611 | - 0x12 => [ // Since 12.0 |
|
611 | + 0x12 => [// Since 12.0 |
|
612 | 612 | 0x05 => "Settings", |
613 | 613 | 0x06 => "Status", |
614 | 614 | 0x07 => "Get", |
@@ -649,7 +649,7 @@ discard block |
||
649 | 649 | 0x2B => "RightsManagementInformation", // Since 14.1 |
650 | 650 | ], |
651 | 651 | // DocumentLibrary |
652 | - 0x13 => [ // Since 12.0 |
|
652 | + 0x13 => [// Since 12.0 |
|
653 | 653 | 0x05 => "LinkId", |
654 | 654 | 0x06 => "DisplayName", |
655 | 655 | 0x07 => "IsFolder", |
@@ -660,7 +660,7 @@ discard block |
||
660 | 660 | 0x0C => "ContentType", |
661 | 661 | ], |
662 | 662 | // ItemOperations |
663 | - 0x14 => [ // Since 12.0 |
|
663 | + 0x14 => [// Since 12.0 |
|
664 | 664 | 0x05 => "ItemOperations", |
665 | 665 | 0x06 => "Fetch", |
666 | 666 | 0x07 => "Store", |
@@ -684,7 +684,7 @@ discard block |
||
684 | 684 | 0x19 => "MoveAlways", // Since 14.0 |
685 | 685 | ], |
686 | 686 | // ComposeMail |
687 | - 0x15 => [ // Since 14.0 |
|
687 | + 0x15 => [// Since 14.0 |
|
688 | 688 | 0x05 => "SendMail", |
689 | 689 | 0x06 => "SmartForward", |
690 | 690 | 0x07 => "SmartReply", |
@@ -706,7 +706,7 @@ discard block |
||
706 | 706 | 0x18 => "Email", // Since 16.0 |
707 | 707 | ], |
708 | 708 | // POOMMAIL2 |
709 | - 0x16 => [ // Since 14.0 |
|
709 | + 0x16 => [// Since 14.0 |
|
710 | 710 | 0x05 => "UmCallerId", |
711 | 711 | 0x06 => "UmUserNotes", |
712 | 712 | 0x07 => "UmAttDuration", |
@@ -727,7 +727,7 @@ discard block |
||
727 | 727 | 0x17 => "Send", // Since 16.0 |
728 | 728 | ], |
729 | 729 | // Notes |
730 | - 0x17 => [ // Since 14.0 |
|
730 | + 0x17 => [// Since 14.0 |
|
731 | 731 | 0x05 => "Subject", |
732 | 732 | 0x06 => "MessageClass", |
733 | 733 | 0x07 => "LastModifiedDate", |
@@ -735,7 +735,7 @@ discard block |
||
735 | 735 | 0x09 => "Category", |
736 | 736 | ], |
737 | 737 | // RightsManagement |
738 | - 0x18 => [ // Since 14.1 |
|
738 | + 0x18 => [// Since 14.1 |
|
739 | 739 | 0x05 => "RightsManagementSupport", |
740 | 740 | 0x06 => "RightsManagementTemplates", |
741 | 741 | 0x07 => "RightsManagementTemplate", |
@@ -758,7 +758,7 @@ discard block |
||
758 | 758 | 0x18 => "RemoveRightsManagementProtection", |
759 | 759 | ], |
760 | 760 | // FIND |
761 | - 0x19 => [ // Since 16.1 |
|
761 | + 0x19 => [// Since 16.1 |
|
762 | 762 | 0x05 => "Find", // Since 16.1 |
763 | 763 | 0x06 => "SearchId", // Since 16.1 |
764 | 764 | 0x07 => "ExecuteSearch", // Since 16.1 |
@@ -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()) { |