@@ -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); |
@@ -97,7 +97,7 @@ |
||
97 | 97 | <?php include '/etc/grommunio-web/disclaimer.html'; ?> |
98 | 98 | </div> |
99 | 99 | <?php } |
100 | - elseif (file_exists('disclaimer.html')) { ?> |
|
100 | +elseif (file_exists('disclaimer.html')) { ?> |
|
101 | 101 | <div class="disclaimer"> |
102 | 102 | <?php include 'disclaimer.html'; ?> |
103 | 103 | </div> |
@@ -84,14 +84,14 @@ |
||
84 | 84 | * @var string Server base URL |
85 | 85 | */ |
86 | 86 | private $baseurl, /** |
87 | - * @var string Username |
|
88 | - */ |
|
87 | + * @var string Username |
|
88 | + */ |
|
89 | 89 | private $user, /** |
90 | - * @var string Password |
|
91 | - */ |
|
90 | + * @var string Password |
|
91 | + */ |
|
92 | 92 | private $pass, /** |
93 | - * @var bool Allow self signed certs |
|
94 | - */ |
|
93 | + * @var bool Allow self signed certs |
|
94 | + */ |
|
95 | 95 | private $allowSelfSignedCerts = false |
96 | 96 | ) { |
97 | 97 | // check if curl is available |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | if ($data === CHANGE_PASSPHRASE_SUCCESS) { |
62 | 62 | // Reset cached passphrase. |
63 | 63 | $encryptionStore = EncryptionStore::getInstance(); |
64 | - withPHPSession(function () use ($encryptionStore) { |
|
64 | + withPHPSession(function() use ($encryptionStore) { |
|
65 | 65 | $encryptionStore->add('smime', ''); |
66 | 66 | }); |
67 | 67 | } |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | $encryptionStore->add('smime', $data['passphrase'], time() + (5 * 60)); |
174 | 174 | } |
175 | 175 | else { |
176 | - withPHPSession(function () use ($encryptionStore, $data) { |
|
176 | + withPHPSession(function() use ($encryptionStore, $data) { |
|
177 | 177 | $encryptionStore->add('smime', $data['passphrase']); |
178 | 178 | }); |
179 | 179 | } |
@@ -42,11 +42,11 @@ |
||
42 | 42 | * Issuer host name. |
43 | 43 | */ |
44 | 44 | private $Issuer, /** |
45 | - * Full filename of PFX-File (Certificate). |
|
46 | - */ |
|
45 | + * Full filename of PFX-File (Certificate). |
|
46 | + */ |
|
47 | 47 | private $PfxFile, /** |
48 | - * Password for PFX-File (Certificate). |
|
49 | - */ |
|
48 | + * Password for PFX-File (Certificate). |
|
49 | + */ |
|
50 | 50 | private $PfxPassword |
51 | 51 | ) { |
52 | 52 | $this->loadCertificateFromPfx(); |