Test Failed
Push — master ( 0b5a40...f1c8a7 )
by
unknown
14:39 queued 14s
created
server/includes/modules/class.itemmodule.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,9 @@  discard block
 block discarded – undo
42 42
 		 */
43 43
 		public function execute() {
44 44
 			foreach ($this->data as $actionType => $action) {
45
-				if (!isset($actionType))
46
-					continue;
45
+				if (!isset($actionType)) {
46
+									continue;
47
+				}
47 48
 				try {
48 49
 					$store = $this->getActionStore($action);
49 50
 					$parententryid = $this->getActionParentEntryID($action);
@@ -644,8 +645,9 @@  discard block
 block discarded – undo
644 645
 		 * @return bool true on success or false on failure
645 646
 		 */
646 647
 		public function delete($store, $parententryid, $entryid, $action) {
647
-			if (!$store || !$parententryid || !$entryid)
648
-				return;
648
+			if (!$store || !$parententryid || !$entryid) {
649
+							return;
650
+			}
649 651
 			$props = [];
650 652
 			$props[PR_PARENT_ENTRYID] = $parententryid;
651 653
 			$props[PR_ENTRYID] = $entryid;
Please login to merge, or discard this patch.
server/includes/core/class.operations.php 1 patch
Braces   +15 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1059,8 +1059,9 @@  discard block
 block discarded – undo
1059 1059
 		 */
1060 1060
 		public function renameFolder($store, $entryid, $name, &$folderProps) {
1061 1061
 			$folder = mapi_msgstore_openentry($store, $entryid);
1062
-			if (!$folder)
1063
-				return false;
1062
+			if (!$folder) {
1063
+							return false;
1064
+			}
1064 1065
 			$result = false;
1065 1066
 			$folderProps = mapi_getprops($folder, [PR_ENTRYID, PR_STORE_ENTRYID, PR_DISPLAY_NAME]);
1066 1067
 			/*
@@ -2088,7 +2089,8 @@  discard block
 block discarded – undo
2088 2089
 			if (!empty($action['props']['timezone_iana'])) {
2089 2090
 				try {
2090 2091
 					$tzdef = mapi_ianatz_to_tzdef($action['props']['timezone_iana']);
2091
-				} catch (Exception $e) {
2092
+				}
2093
+				catch (Exception $e) {
2092 2094
 				}
2093 2095
 				if ($tzdef !== false) {
2094 2096
 					$action['props']['tzdefstart'] = $action['props']['tzdefend'] = bin2hex($tzdef);
@@ -2611,8 +2613,9 @@  discard block
 block discarded – undo
2611 2613
 			$storeprops = mapi_getprops($store, [PR_IPM_OUTBOX_ENTRYID, PR_IPM_SENTMAIL_ENTRYID, PR_ENTRYID]);
2612 2614
 			$origStoreprops = mapi_getprops($origStore, [PR_ENTRYID]);
2613 2615
 
2614
-			if (!isset($storeprops[PR_IPM_OUTBOX_ENTRYID]))
2615
-				return false;
2616
+			if (!isset($storeprops[PR_IPM_OUTBOX_ENTRYID])) {
2617
+							return false;
2618
+			}
2616 2619
 			if (isset($storeprops[PR_IPM_SENTMAIL_ENTRYID])) {
2617 2620
 				$props[PR_SENTMAIL_ENTRYID] = $storeprops[PR_IPM_SENTMAIL_ENTRYID];
2618 2621
 			}
@@ -2779,8 +2782,9 @@  discard block
 block discarded – undo
2779 2782
 				$message = $this->saveMessage($store, $entryid, $storeprops[PR_IPM_OUTBOX_ENTRYID], $props, $messageProps, $recipients, $attachments, [], $copyFromMessage, $copyAttachments, $copyRecipients, $copyInlineAttachmentsOnly, true, true, $isPlainText);
2780 2783
 			}
2781 2784
 
2782
-			if (!$message)
2783
-				return false;
2785
+			if (!$message) {
2786
+							return false;
2787
+			}
2784 2788
 			// Allowing to hook in just before the data sent away to be sent to the client
2785 2789
 			$GLOBALS['PluginManager']->triggerHook('server.core.operations.submitmessage', [
2786 2790
 				'moduleObject' => $this,
@@ -2832,8 +2836,7 @@  discard block
 block discarded – undo
2832 2836
 		 * @return bool true if action succeeded, false if not
2833 2837
 		 */
2834 2838
 		public function deleteMessages($store, $parententryid, $entryids,
2835
-		    $softDelete = false, $unread = false)
2836
-		{
2839
+		    $softDelete = false, $unread = false) {
2837 2840
 			$result = false;
2838 2841
 			if (!is_array($entryids)) {
2839 2842
 				$entryids = [$entryids];
@@ -3059,8 +3062,9 @@  discard block
 block discarded – undo
3059 3062
 
3060 3063
 			if (array_search(strtolower($foldername), $folderNames) !== false) {
3061 3064
 				$i = 2;
3062
-				while (array_search(strtolower($foldername)." ($i)", $folderNames) !== false)
3063
-					++$i;
3065
+				while (array_search(strtolower($foldername)." ($i)", $folderNames) !== false) {
3066
+									++$i;
3067
+				}
3064 3068
 				$foldername .= " ($i)";
3065 3069
 			}
3066 3070
 
Please login to merge, or discard this patch.