Passed
Push — master ( 42b683...7c1a7f )
by
unknown
16:41 queued 02:17
created
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.
server/includes/modules/class.listmodule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 							$this->handleUnknownActionType($actionType);
96 96
 					}
97 97
 				}
98
-				catch (MAPIException|SearchException $e) {
98
+				catch (MAPIException | SearchException $e) {
99 99
 					$this->processException($e, $actionType, $store, $parententryid, $entryid, $action);
100 100
 				}
101 101
 			}
@@ -497,12 +497,12 @@  discard block
 block discarded – undo
497 497
 		$data["search_meta"]["searchfolder_entryid"] = $entryid;
498 498
 		$data["search_meta"]["search_store_entryid"] = $action["store_entryid"];
499 499
 		$data["search_meta"]["searchstate"] = $searchState;
500
-		$data["search_meta"]["results"] = $numberOfResults;		// actual number of items that we are sending to client
500
+		$data["search_meta"]["results"] = $numberOfResults; // actual number of items that we are sending to client
501 501
 
502 502
 		$data["page"] = [];
503 503
 		$data["page"]["start"] = 0;
504 504
 		$data["page"]["rowcount"] = $rowCount;
505
-		$data["page"]["totalrowcount"] = $totalRowCount;	// total number of items
505
+		$data["page"]["totalrowcount"] = $totalRowCount; // total number of items
506 506
 
507 507
 		if (!empty($listData)) {
508 508
 			$data["item"] = array_merge([], $listData);
Please login to merge, or discard this patch.
server/includes/templates/login.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 			<?php include '/etc/grommunio-web/disclaimer.html'; ?>
98 98
 		</div>
99 99
 		<?php }
100
-		elseif (file_exists('disclaimer.html')) { ?>
100
+elseif (file_exists('disclaimer.html')) { ?>
101 101
 		<div class="disclaimer">
102 102
 			<?php include 'disclaimer.html'; ?>
103 103
 		</div>
Please login to merge, or discard this patch.
plugins/filesbackendOwncloud/php/lib/ocsapi/class.ocsclient.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -84,14 +84,14 @@
 block discarded – undo
84 84
 	 * @var string Server base URL
85 85
 	 */
86 86
 		private $baseurl, /**
87
-	 * @var string Username
88
-	 */
87
+		 * @var string Username
88
+		 */
89 89
 		private $user, /**
90
-	 * @var string Password
91
-	 */
90
+		 * @var string Password
91
+		 */
92 92
 		private $pass, /**
93
-	 * @var bool Allow self signed certs
94
-	 */
93
+		 * @var bool Allow self signed certs
94
+		 */
95 95
 		private $allowSelfSignedCerts = false
96 96
 	) {
97 97
 		// check if curl is available
Please login to merge, or discard this patch.
plugins/smime/php/class.pluginsmimemodule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 						if ($data === CHANGE_PASSPHRASE_SUCCESS) {
62 62
 							// Reset cached passphrase.
63 63
 							$encryptionStore = EncryptionStore::getInstance();
64
-							withPHPSession(function () use ($encryptionStore) {
64
+							withPHPSession(function() use ($encryptionStore) {
65 65
 								$encryptionStore->add('smime', '');
66 66
 							});
67 67
 						}
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 				$encryptionStore->add('smime', $data['passphrase'], time() + (5 * 60));
174 174
 			}
175 175
 			else {
176
-				withPHPSession(function () use ($encryptionStore, $data) {
176
+				withPHPSession(function() use ($encryptionStore, $data) {
177 177
 					$encryptionStore->add('smime', $data['passphrase']);
178 178
 				});
179 179
 			}
Please login to merge, or discard this patch.
plugins/kendox/php/kendox-client/class.kendox-token-generator.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@
 block discarded – undo
42 42
 	 * Issuer host name.
43 43
 	 */
44 44
 		private $Issuer, /**
45
-	 * Full filename of PFX-File (Certificate).
46
-	 */
45
+		 * Full filename of PFX-File (Certificate).
46
+		 */
47 47
 		private $PfxFile, /**
48
-	 * Password for PFX-File (Certificate).
49
-	 */
48
+		 * Password for PFX-File (Certificate).
49
+		 */
50 50
 		private $PfxPassword
51 51
 	) {
52 52
 		$this->loadCertificateFromPfx();
Please login to merge, or discard this patch.