Test Failed
Push — master ( 6ab057...9e2699 )
by
unknown
23:26 queued 12:21
created
plugins/files/php/vendor/composer/autoload_real.php 1 patch
Braces   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@  discard block
 block discarded – undo
6 6
 {
7 7
     private static $loader;
8 8
 
9
-    public static function loadClassLoader($class)
10
-    {
9
+    public static function loadClassLoader($class) {
11 10
         if ('Composer\Autoload\ClassLoader' === $class) {
12 11
             require __DIR__ . '/ClassLoader.php';
13 12
         }
@@ -16,8 +15,7 @@  discard block
 block discarded – undo
16 15
     /**
17 16
      * @return \Composer\Autoload\ClassLoader
18 17
      */
19
-    public static function getLoader()
20
-    {
18
+    public static function getLoader() {
21 19
         if (null !== self::$loader) {
22 20
             return self::$loader;
23 21
         }
@@ -33,7 +31,8 @@  discard block
 block discarded – undo
33 31
             require __DIR__ . '/autoload_static.php';
34 32
 
35 33
             call_user_func(\Composer\Autoload\ComposerStaticInit6c951d886d53bc9c3b700a1be3508206::getInitializer($loader));
36
-        } else {
34
+        }
35
+        else {
37 36
             $map = require __DIR__ . '/autoload_namespaces.php';
38 37
             foreach ($map as $namespace => $path) {
39 38
                 $loader->set($namespace, $path);
Please login to merge, or discard this patch.
plugins/files/php/vendor/composer/platform_check.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,8 @@
 block discarded – undo
15 15
     if (!ini_get('display_errors')) {
16 16
         if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
17 17
             fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
18
-        } elseif (!headers_sent()) {
18
+        }
19
+        elseif (!headers_sent()) {
19 20
             echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
20 21
         }
21 22
     }
Please login to merge, or discard this patch.
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.