@@ -26,17 +26,17 @@ |
||
26 | 26 | |
27 | 27 | // used by distribution lists |
28 | 28 | define("WAB_GUID", pack("H*", "C091ADD3519DCF11A4A900AA0047FAA4")); |
29 | -define("DL_USER", 0xC3); // 195 |
|
30 | -define("DL_USER2", 0xD3); // 211 |
|
31 | -define("DL_USER3", 0xE3); // 227 |
|
29 | +define("DL_USER", 0xC3); // 195 |
|
30 | +define("DL_USER2", 0xD3); // 211 |
|
31 | +define("DL_USER3", 0xE3); // 227 |
|
32 | 32 | /* |
33 | 33 | * According to Exchange protocol, type property for oneoff contact |
34 | 34 | * will be 0x00. |
35 | 35 | */ |
36 | -define("DL_EXTERNAL_MEMBER", 0x00); // 0 |
|
37 | -define("DL_DIST", 0xB4); // 180 |
|
38 | -define("DL_USER_AB", 0xB5); // 181 |
|
39 | -define("DL_DIST_AB", 0xB6); // 182 |
|
36 | +define("DL_EXTERNAL_MEMBER", 0x00); // 0 |
|
37 | +define("DL_DIST", 0xB4); // 180 |
|
38 | +define("DL_USER_AB", 0xB5); // 181 |
|
39 | +define("DL_DIST_AB", 0xB6); // 182 |
|
40 | 40 | |
41 | 41 | // @FIXME these needs to be changed in mapitags.php |
42 | 42 |
@@ -1003,8 +1003,7 @@ |
||
1003 | 1003 | // on the day before or after. This should be fine for all the |
1004 | 1004 | // timezones which do not exceed 12 hour difference to UTC. |
1005 | 1005 | $ts = $interval > 0 ? |
1006 | - $ts - ($interval < 43200 ? $interval : $interval - 86400) : |
|
1007 | - $ts + ($interval > -43200 ? $interval : $interval - 86400); |
|
1006 | + $ts - ($interval < 43200 ? $interval : $interval - 86400) : $ts + ($interval > -43200 ? $interval : $interval - 86400); |
|
1008 | 1007 | } |
1009 | 1008 | |
1010 | 1009 | return $ts; |
@@ -87,7 +87,7 @@ |
||
87 | 87 | $this->handleUnknownActionType($actionType); |
88 | 88 | } |
89 | 89 | } |
90 | - catch (MAPIException|SearchException $e) { |
|
90 | + catch (MAPIException | SearchException $e) { |
|
91 | 91 | $this->processException($e, $actionType); |
92 | 92 | } |
93 | 93 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | default => $this->handleUnknownActionType($actionType), |
31 | 31 | }; |
32 | 32 | } |
33 | - catch (MAPIException|SettingsException $e) { |
|
33 | + catch (MAPIException | SettingsException $e) { |
|
34 | 34 | $this->processException($e, $actionType); |
35 | 35 | } |
36 | 36 | } |
@@ -508,8 +508,7 @@ discard block |
||
508 | 508 | // all-day events) or was imported from a system which doesn't set it. |
509 | 509 | $isTzdefstartSet = isset($calendaritem['props']['tzdefstart']); |
510 | 510 | $tzdefstart = $isTzdefstartSet ? |
511 | - hex2bin((string) $calendaritem['props']['tzdefstart']) : |
|
512 | - mapi_ianatz_to_tzdef("Etc/UTC"); |
|
511 | + hex2bin((string) $calendaritem['props']['tzdefstart']) : mapi_ianatz_to_tzdef("Etc/UTC"); |
|
513 | 512 | |
514 | 513 | // queryrows only returns 510 chars max, so if tzdef is longer than that |
515 | 514 | // it was probably silently truncated. In such case we need to open |
@@ -544,8 +543,7 @@ discard block |
||
544 | 543 | // on the day before or after. This should be fine for all the |
545 | 544 | // timezones which do not exceed 12 hour difference to UTC. |
546 | 545 | $localStart = $interval > 0 ? |
547 | - $calendaritem['props']['startdate'] - ($interval < 43200 ? $interval : $interval - 86400) : |
|
548 | - $calendaritem['props']['startdate'] + ($interval > -43200 ? $interval : $interval - 86400); |
|
546 | + $calendaritem['props']['startdate'] - ($interval < 43200 ? $interval : $interval - 86400) : $calendaritem['props']['startdate'] + ($interval > -43200 ? $interval : $interval - 86400); |
|
549 | 547 | $calendaritem['props']['startdate'] = $calendaritem['props']['commonstart'] = $localStart; |
550 | 548 | $calendaritem['props']['duedate'] = $calendaritem['props']['commonend'] = $localStart + $duration; |
551 | 549 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $this->handleUnknownActionType($actionType); |
49 | 49 | } |
50 | 50 | } |
51 | - catch (MAPIException|SettingsException $e) { |
|
51 | + catch (MAPIException | SettingsException $e) { |
|
52 | 52 | $this->processException($e, $actionType); |
53 | 53 | } |
54 | 54 | } |
@@ -372,8 +372,7 @@ |
||
372 | 372 | // all-day events). |
373 | 373 | $isTzdefstartSet = isset($calendaritem['props']['tzdefstart']); |
374 | 374 | $tzdefstart = $isTzdefstartSet ? |
375 | - hex2bin((string) $calendaritem['props']['tzdefstart']) : |
|
376 | - mapi_ianatz_to_tzdef("Etc/UTC"); |
|
375 | + hex2bin((string) $calendaritem['props']['tzdefstart']) : mapi_ianatz_to_tzdef("Etc/UTC"); |
|
377 | 376 | |
378 | 377 | // Compare the timezone definitions of the client and the appointment. |
379 | 378 | // Further processing is only required if they don't match. |
@@ -344,8 +344,7 @@ discard block |
||
344 | 344 | |
345 | 345 | function sorter($direction, $key) { |
346 | 346 | return fn ($a, $b) => $direction == 'ASC' ? |
347 | - strcasecmp($a['props'][$key] ?? '', $b['props'][$key] ?? '') : |
|
348 | - strcasecmp($b['props'][$key] ?? '', $a['props'][$key] ?? ''); |
|
347 | + strcasecmp($a['props'][$key] ?? '', $b['props'][$key] ?? '') : strcasecmp($b['props'][$key] ?? '', $a['props'][$key] ?? ''); |
|
349 | 348 | } |
350 | 349 | usort($items, sorter($sortingDir, $sortingField)); |
351 | 350 | |
@@ -749,7 +748,7 @@ discard block |
||
749 | 748 | ], |
750 | 749 | [ |
751 | 750 | RES_OR, |
752 | - $tempRestrictions, // all group restrictions |
|
751 | + $tempRestrictions, // all group restrictions |
|
753 | 752 | ], |
754 | 753 | ], |
755 | 754 | ], |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $this->handleUnknownActionType($actionType); |
96 | 96 | } |
97 | 97 | } |
98 | - catch (MAPIException|SearchException $e) { |
|
98 | + catch (MAPIException | SearchException $e) { |
|
99 | 99 | $this->processException($e, $actionType, $store, $parententryid, $entryid, $action); |
100 | 100 | } |
101 | 101 | } |
@@ -497,12 +497,12 @@ discard block |
||
497 | 497 | $data["search_meta"]["searchfolder_entryid"] = $entryid; |
498 | 498 | $data["search_meta"]["search_store_entryid"] = $action["store_entryid"]; |
499 | 499 | $data["search_meta"]["searchstate"] = $searchState; |
500 | - $data["search_meta"]["results"] = $numberOfResults; // actual number of items that we are sending to client |
|
500 | + $data["search_meta"]["results"] = $numberOfResults; // actual number of items that we are sending to client |
|
501 | 501 | |
502 | 502 | $data["page"] = []; |
503 | 503 | $data["page"]["start"] = 0; |
504 | 504 | $data["page"]["rowcount"] = $rowCount; |
505 | - $data["page"]["totalrowcount"] = $totalRowCount; // total number of items |
|
505 | + $data["page"]["totalrowcount"] = $totalRowCount; // total number of items |
|
506 | 506 | |
507 | 507 | if (!empty($listData)) { |
508 | 508 | $data["item"] = array_merge([], $listData); |