Passed
Push — master ( 42b683...7c1a7f )
by
unknown
16:41 queued 02:17
created
server/includes/core/class.mapisession.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1034,7 +1034,7 @@
 block discarded – undo
1034 1034
 					// Postfix display name of every contact folder with respective owner name
1035 1035
 					// it is mandatory to keep display-name different
1036 1036
 					$userStoreProps = mapi_getprops($openedUserStore, [PR_MAILBOX_OWNER_NAME]);
1037
-					for ($i = 0,$len = count($userContactFolders); $i < $len; ++$i) {
1037
+					for ($i = 0, $len = count($userContactFolders); $i < $len; ++$i) {
1038 1038
 						$userContactFolders[$i][PR_DISPLAY_NAME] = $userContactFolders[$i][PR_DISPLAY_NAME] . " - " . $userStoreProps[PR_MAILBOX_OWNER_NAME];
1039 1039
 					}
1040 1040
 
Please login to merge, or discard this patch.
server/includes/core/constants.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,17 +26,17 @@
 block discarded – undo
26 26
 
27 27
 // used by distribution lists
28 28
 define("WAB_GUID", pack("H*", "C091ADD3519DCF11A4A900AA0047FAA4"));
29
-define("DL_USER", 0xC3);		//	195
30
-define("DL_USER2", 0xD3);		//	211
31
-define("DL_USER3", 0xE3);		//	227
29
+define("DL_USER", 0xC3); //	195
30
+define("DL_USER2", 0xD3); //	211
31
+define("DL_USER3", 0xE3); //	227
32 32
 /*
33 33
  * According to Exchange protocol, type property for oneoff contact
34 34
  * will be 0x00.
35 35
  */
36
-define("DL_EXTERNAL_MEMBER", 0x00);		//	0
37
-define("DL_DIST", 0xB4);		//	180
38
-define("DL_USER_AB", 0xB5);		//	181
39
-define("DL_DIST_AB", 0xB6);		//	182
36
+define("DL_EXTERNAL_MEMBER", 0x00); //	0
37
+define("DL_DIST", 0xB4); //	180
38
+define("DL_USER_AB", 0xB5); //	181
39
+define("DL_DIST_AB", 0xB6); //	182
40 40
 
41 41
 // @FIXME these needs to be changed in mapitags.php
42 42
 
Please login to merge, or discard this patch.
server/includes/util.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1003,8 +1003,7 @@
 block discarded – undo
1003 1003
 		// on the day before or after. This should be fine for all the
1004 1004
 		// timezones which do not exceed 12 hour difference to UTC.
1005 1005
 		$ts = $interval > 0 ?
1006
-			$ts - ($interval < 43200 ? $interval : $interval - 86400) :
1007
-			$ts + ($interval > -43200 ? $interval : $interval - 86400);
1006
+			$ts - ($interval < 43200 ? $interval : $interval - 86400) : $ts + ($interval > -43200 ? $interval : $interval - 86400);
1008 1007
 	}
1009 1008
 
1010 1009
 	return $ts;
Please login to merge, or discard this patch.
server/includes/modules/class.maillistmodule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 							$this->handleUnknownActionType($actionType);
88 88
 					}
89 89
 				}
90
-				catch (MAPIException|SearchException $e) {
90
+				catch (MAPIException | SearchException $e) {
91 91
 					$this->processException($e, $actionType);
92 92
 				}
93 93
 			}
Please login to merge, or discard this patch.
server/includes/modules/class.outofofficesettingsmodule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 						default => $this->handleUnknownActionType($actionType),
31 31
 					};
32 32
 				}
33
-				catch (MAPIException|SettingsException $e) {
33
+				catch (MAPIException | SettingsException $e) {
34 34
 					$this->processException($e, $actionType);
35 35
 				}
36 36
 			}
Please login to merge, or discard this patch.
server/includes/modules/class.appointmentlistmodule.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -508,8 +508,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.
server/includes/modules/class.settingsmodule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.
server/includes/modules/class.appointmentitemmodule.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -372,8 +372,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
server/includes/modules/class.addressbooklistmodule.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -344,8 +344,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
749 748
 								],
750 749
 								[
751 750
 									RES_OR,
752
-									$tempRestrictions,     // all group restrictions
751
+									$tempRestrictions, // all group restrictions
753 752
 								],
754 753
 							],
755 754
 						],
Please login to merge, or discard this patch.