@@ -1058,8 +1058,9 @@ discard block |
||
1058 | 1058 | */ |
1059 | 1059 | public function renameFolder($store, $entryid, $name, &$folderProps) { |
1060 | 1060 | $folder = mapi_msgstore_openentry($store, $entryid); |
1061 | - if (!$folder) |
|
1062 | - return false; |
|
1061 | + if (!$folder) { |
|
1062 | + return false; |
|
1063 | + } |
|
1063 | 1064 | $result = false; |
1064 | 1065 | $folderProps = mapi_getprops($folder, [PR_ENTRYID, PR_STORE_ENTRYID, PR_DISPLAY_NAME]); |
1065 | 1066 | /* |
@@ -2087,7 +2088,8 @@ discard block |
||
2087 | 2088 | if (!empty($action['props']['timezone_iana'])) { |
2088 | 2089 | try { |
2089 | 2090 | $tzdef = mapi_ianatz_to_tzdef($action['props']['timezone_iana']); |
2090 | - } catch (Exception $e) { |
|
2091 | + } |
|
2092 | + catch (Exception $e) { |
|
2091 | 2093 | } |
2092 | 2094 | if ($tzdef !== false) { |
2093 | 2095 | $action['props']['tzdefstart'] = $action['props']['tzdefend'] = bin2hex($tzdef); |
@@ -2610,8 +2612,9 @@ discard block |
||
2610 | 2612 | $storeprops = mapi_getprops($store, [PR_IPM_OUTBOX_ENTRYID, PR_IPM_SENTMAIL_ENTRYID, PR_ENTRYID]); |
2611 | 2613 | $origStoreprops = mapi_getprops($origStore, [PR_ENTRYID]); |
2612 | 2614 | |
2613 | - if (!isset($storeprops[PR_IPM_OUTBOX_ENTRYID])) |
|
2614 | - return false; |
|
2615 | + if (!isset($storeprops[PR_IPM_OUTBOX_ENTRYID])) { |
|
2616 | + return false; |
|
2617 | + } |
|
2615 | 2618 | if (isset($storeprops[PR_IPM_SENTMAIL_ENTRYID])) { |
2616 | 2619 | $props[PR_SENTMAIL_ENTRYID] = $storeprops[PR_IPM_SENTMAIL_ENTRYID]; |
2617 | 2620 | } |
@@ -2778,8 +2781,9 @@ discard block |
||
2778 | 2781 | $message = $this->saveMessage($store, $entryid, $storeprops[PR_IPM_OUTBOX_ENTRYID], $props, $messageProps, $recipients, $attachments, [], $copyFromMessage, $copyAttachments, $copyRecipients, $copyInlineAttachmentsOnly, true, true, $isPlainText); |
2779 | 2782 | } |
2780 | 2783 | |
2781 | - if (!$message) |
|
2782 | - return false; |
|
2784 | + if (!$message) { |
|
2785 | + return false; |
|
2786 | + } |
|
2783 | 2787 | // Allowing to hook in just before the data sent away to be sent to the client |
2784 | 2788 | $GLOBALS['PluginManager']->triggerHook('server.core.operations.submitmessage', [ |
2785 | 2789 | 'moduleObject' => $this, |
@@ -3057,8 +3061,9 @@ discard block |
||
3057 | 3061 | |
3058 | 3062 | if (array_search(strtolower($foldername), $folderNames) !== false) { |
3059 | 3063 | $i = 2; |
3060 | - while (array_search(strtolower($foldername)." ($i)", $folderNames) !== false) |
|
3061 | - ++$i; |
|
3064 | + while (array_search(strtolower($foldername)." ($i)", $folderNames) !== false) { |
|
3065 | + ++$i; |
|
3066 | + } |
|
3062 | 3067 | $foldername .= " ($i)"; |
3063 | 3068 | } |
3064 | 3069 |