@@ -83,7 +83,7 @@ |
||
83 | 83 | catch (MAPIException $e) { |
84 | 84 | $this->sendFeedback(false, $this->errorDetailsFromException($e)); |
85 | 85 | } |
86 | - catch (AccountException|BackendException $e) { |
|
86 | + catch (AccountException | BackendException $e) { |
|
87 | 87 | $this->sendFeedback(false, [ |
88 | 88 | 'type' => ERROR_GENERAL, |
89 | 89 | 'info' => [ |
@@ -2074,9 +2074,9 @@ discard block |
||
2074 | 2074 | $messageProps = []; |
2075 | 2075 | // It stores the values that is exception allowed or not false -> not allowed |
2076 | 2076 | $isExceptionAllowed = true; |
2077 | - $delete = $actionType == 'delete'; // Flag for MeetingRequest Class whether to send update or cancel mail. |
|
2078 | - $basedate = false; // Flag for MeetingRequest Class whether to send an exception or not. |
|
2079 | - $isReminderTimeAllowed = true; // Flag to check reminder minutes is in range of the occurrences |
|
2077 | + $delete = $actionType == 'delete'; // Flag for MeetingRequest Class whether to send update or cancel mail. |
|
2078 | + $basedate = false; // Flag for MeetingRequest Class whether to send an exception or not. |
|
2079 | + $isReminderTimeAllowed = true; // Flag to check reminder minutes is in range of the occurrences |
|
2080 | 2080 | $properties = $GLOBALS['properties']->getAppointmentProperties(); |
2081 | 2081 | $send = false; |
2082 | 2082 | $oldProps = []; |
@@ -3067,7 +3067,7 @@ discard block |
||
3067 | 3067 | * convert flags of PR_MESSAGE_FLAGS property to flags that is |
3068 | 3068 | * used in mapi_message_setreadflag. |
3069 | 3069 | */ |
3070 | - $flag = MAPI_DEFERRED_ERRORS; // set unread flag, read receipt will be sent |
|
3070 | + $flag = MAPI_DEFERRED_ERRORS; // set unread flag, read receipt will be sent |
|
3071 | 3071 | |
3072 | 3072 | if (($flags & MSGFLAG_RN_PENDING) && isset($msg_action['send_read_receipt']) && $msg_action['send_read_receipt'] == false) { |
3073 | 3073 | $flag |= SUPPRESS_RECEIPT; |
@@ -4000,8 +4000,7 @@ discard block |
||
4000 | 4000 | $eidObj = $GLOBALS['entryid']->createABEntryIdObj($distlistEntryid); |
4001 | 4001 | $isMuidGuid = !$GLOBALS['entryid']->hasNoMuid('', $eidObj); |
4002 | 4002 | $extidObj = $isMuidGuid ? |
4003 | - $GLOBALS['entryid']->createMessageEntryIdObj($eidObj['extid']) : |
|
4004 | - $GLOBALS['entryid']->createMessageEntryIdObj($GLOBALS['entryid']->createMessageEntryId($eidObj)); |
|
4003 | + $GLOBALS['entryid']->createMessageEntryIdObj($eidObj['extid']) : $GLOBALS['entryid']->createMessageEntryIdObj($GLOBALS['entryid']->createMessageEntryId($eidObj)); |
|
4005 | 4004 | |
4006 | 4005 | $store = $GLOBALS["mapisession"]->getDefaultMessageStore(); |
4007 | 4006 | $contactFolderId = $this->getPropertiesFromStoreRoot($store, [PR_IPM_CONTACT_ENTRYID]); |
@@ -111,8 +111,7 @@ |
||
111 | 111 | foreach (self::SCHEMA as $name => $definition) { |
112 | 112 | $result[$name] = |
113 | 113 | array_key_exists($name, $config) ? |
114 | - $config[$name] : |
|
115 | - $this->config[$name] ?? $definition['options']['default'] ?? null; |
|
114 | + $config[$name] : $this->config[$name] ?? $definition['options']['default'] ?? null; |
|
116 | 115 | } |
117 | 116 | $filtered = filter_var_array($result, self::SCHEMA); |
118 | 117 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * |
19 | 19 | * @psalm-param-out SsoBackend $self |
20 | 20 | */ |
21 | - public static function bind(?SsoBackend &$self = null): SsoBackend { |
|
21 | + public static function bind(?SsoBackend & $self = null): SsoBackend { |
|
22 | 22 | if ($self === null) { |
23 | 23 | $self = new self(); |
24 | 24 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | } |
10 | 10 | |
11 | 11 | \spl_autoload_register( |
12 | - static function ($className) { |
|
12 | + static function($className) { |
|
13 | 13 | $namespacePrefix = __NAMESPACE__ . '\\'; |
14 | 14 | $basePath = __DIR__ . '/'; |
15 | 15 | if (!str_starts_with($className, $namespacePrefix)) { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | * |
48 | 48 | * @throws ConnectionException |
49 | 49 | */ |
50 | - public static function throwCurlResult(int $code, bool|string $curlResult): never { |
|
50 | + public static function throwCurlResult(int $code, bool | string $curlResult): never { |
|
51 | 51 | $exception = new self(self::reasonPhrase($code), $code); |
52 | 52 | $exception->responseCode = $code; |
53 | 53 | $exception->responseBodyRaw = is_string($curlResult) ? $curlResult : null; |
@@ -63,17 +63,17 @@ |
||
63 | 63 | * |
64 | 64 | * @see jsonDecode |
65 | 65 | */ |
66 | - private const JSON_DECODE_ACCEPT_MASK = 31; # 1 1111 accept bitmask (five bits with the msb flags) |
|
67 | - private const JSON_DECODE_ACCEPT_JSON = 16; # 1 0000 JSON text |
|
68 | - private const JSON_DECODE_ACCEPT_DEFAULT = 23; # 1 0111 default: string, array or object |
|
69 | - private const JSON_DECODE_ACCEPT_OBJECT = 17; # 1 0001 object |
|
70 | - private const JSON_DECODE_ACCEPT_ARRAY = 18; # 1 0010 array |
|
71 | - private const JSON_DECODE_ACCEPT_STRING = 20; # 1 0100 string |
|
72 | - private const JSON_DECODE_ACCEPT_ARRAY_OF_OBJECTS = 24; # 1 1000 array with only objects (incl. none) |
|
73 | - private const JSON_DECODE_ACCEPT_ARRAY_SINGLE_OBJECT = 25; # 1 1001 array with one single object, return that item |
|
66 | + private const JSON_DECODE_ACCEPT_MASK = 31; # 1 1111 accept bitmask (five bits with the msb flags) |
|
67 | + private const JSON_DECODE_ACCEPT_JSON = 16; # 1 0000 JSON text |
|
68 | + private const JSON_DECODE_ACCEPT_DEFAULT = 23; # 1 0111 default: string, array or object |
|
69 | + private const JSON_DECODE_ACCEPT_OBJECT = 17; # 1 0001 object |
|
70 | + private const JSON_DECODE_ACCEPT_ARRAY = 18; # 1 0010 array |
|
71 | + private const JSON_DECODE_ACCEPT_STRING = 20; # 1 0100 string |
|
72 | + private const JSON_DECODE_ACCEPT_ARRAY_OF_OBJECTS = 24; # 1 1000 array with only objects (incl. none) |
|
73 | + private const JSON_DECODE_ACCEPT_ARRAY_SINGLE_OBJECT = 25; # 1 1001 array with one single object, return that item |
|
74 | 74 | private const JSON_DECODE_ACCEPT_ARRAY_SINGLE_OBJECT_NULLABLE = 26; # 1 1010 array with one single object, return that item, or empty array, return null |
75 | - private const JSON_DECODE_ACCEPT_SUCCESS_STRING = 28; # 1 1100 string "success" |
|
76 | - private const JSON_DECODE_ACCEPT_SUCCESS_OBJECT = 29; # 1 1101 object with single "success" property and value true |
|
75 | + private const JSON_DECODE_ACCEPT_SUCCESS_STRING = 28; # 1 1100 string "success" |
|
76 | + private const JSON_DECODE_ACCEPT_SUCCESS_OBJECT = 29; # 1 1101 object with single "success" property and value true |
|
77 | 77 | |
78 | 78 | /** |
79 | 79 | * @const string ASCII upper-case characters part of a hexit |
@@ -358,7 +358,7 @@ |
||
358 | 358 | if (count($parts) === 1) { |
359 | 359 | return $parts[0]; |
360 | 360 | } |
361 | - $wrapped = array_map(function ($segment) { |
|
361 | + $wrapped = array_map(function($segment) { |
|
362 | 362 | return '(' . $segment . ')'; |
363 | 363 | }, $parts); |
364 | 364 | return implode(' ' . $operator . ' ', $wrapped); |