Passed
Push — master ( d52ee8...0e6e80 )
by Joas
52:59 queued 30:23
created
lib/private/App/AppStore/Bundles/HubBundle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 		$architecture = php_uname('m');
44 44
 		if (PHP_OS_FAMILY === 'Linux' && in_array($architecture, ['x86_64', 'aarch64'])) {
45 45
 			$hubApps[] = 'richdocuments';
46
-			$hubApps[] = 'richdocumentscode' . ($architecture === 'aarch64' ? '_arm64' : '');
46
+			$hubApps[] = 'richdocumentscode'.($architecture === 'aarch64' ? '_arm64' : '');
47 47
 		}
48 48
 
49 49
 		return $hubApps;
Please login to merge, or discard this patch.
apps/dav/lib/Upload/AssemblyStream.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,11 +74,11 @@  discard block
 block discarded – undo
74 74
 
75 75
 		$nodes = $this->nodes;
76 76
 		// https://stackoverflow.com/a/10985500
77
-		@usort($nodes, function (IFile $a, IFile $b) {
77
+		@usort($nodes, function(IFile $a, IFile $b) {
78 78
 			return strnatcmp($a->getName(), $b->getName());
79 79
 		});
80 80
 		$this->nodes = array_values($nodes);
81
-		$this->size = array_reduce($this->nodes, function ($size, IFile $file) {
81
+		$this->size = array_reduce($this->nodes, function($size, IFile $file) {
82 82
 			return $size + $file->getSize();
83 83
 		}, 0);
84 84
 		return true;
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 				fclose($this->currentStream);
157 157
 				$currentNodeSize = $this->nodes[$this->currentNode]->getSize();
158 158
 				if ($this->currentNodeRead < $currentNodeSize) {
159
-					throw new \Exception('Stream from assembly node shorter than expected, got ' . $this->currentNodeRead . ' bytes, expected ' . $currentNodeSize);
159
+					throw new \Exception('Stream from assembly node shorter than expected, got '.$this->currentNodeRead.' bytes, expected '.$currentNodeSize);
160 160
 				}
161 161
 				$this->currentNode++;
162 162
 				$this->currentNodeRead = 0;
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 		if (isset($context[$name])) {
254 254
 			$context = $context[$name];
255 255
 		} else {
256
-			throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set');
256
+			throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set');
257 257
 		}
258 258
 		if (isset($context['nodes']) and is_array($context['nodes'])) {
259 259
 			$this->nodes = $context['nodes'];
Please login to merge, or discard this patch.
lib/versioncheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 if (PHP_VERSION_ID < 70300) {
27 27
 	http_response_code(500);
28 28
 	echo 'This version of Nextcloud requires at least PHP 7.3<br/>';
29
-	echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
29
+	echo 'You are currently running '.PHP_VERSION.'. Please update your PHP version.';
30 30
 	exit(-1);
31 31
 }
32 32
 
@@ -34,6 +34,6 @@  discard block
 block discarded – undo
34 34
 if (PHP_VERSION_ID >= 80100) {
35 35
 	http_response_code(500);
36 36
 	echo 'This version of Nextcloud is not compatible with > PHP 8.0.<br/>';
37
-	echo 'You are currently running ' . PHP_VERSION . '.';
37
+	echo 'You are currently running '.PHP_VERSION.'.';
38 38
 	exit(-1);
39 39
 }
Please login to merge, or discard this patch.
lib/private/Settings/Manager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 			$sectionID = $section->getID();
124 124
 
125 125
 			if ($sectionID !== 'connected-accounts' && isset($this->sections[$type][$sectionID])) {
126
-				$this->log->logException(new \InvalidArgumentException('Section with the same ID already registered: ' . $sectionID . ', class: ' . $class), ['level' => ILogger::INFO]);
126
+				$this->log->logException(new \InvalidArgumentException('Section with the same ID already registered: '.$sectionID.', class: '.$class), ['level' => ILogger::INFO]);
127 127
 				continue;
128 128
 			}
129 129
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 			}
181 181
 
182 182
 			if (!$setting instanceof ISettings) {
183
-				$this->log->logException(new \InvalidArgumentException('Invalid settings setting registered (' . $class . ')'), ['level' => ILogger::INFO]);
183
+				$this->log->logException(new \InvalidArgumentException('Invalid settings setting registered ('.$class.')'), ['level' => ILogger::INFO]);
184 184
 				continue;
185 185
 			}
186 186
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 	 */
231 231
 	public function getAdminSettings($section, bool $subAdminOnly = false): array {
232 232
 		if ($subAdminOnly) {
233
-			$subAdminSettingsFilter = function (ISettings $settings) {
233
+			$subAdminSettingsFilter = function(ISettings $settings) {
234 234
 				return $settings instanceof ISubAdminSettings;
235 235
 			};
236 236
 			$appSettings = $this->getSettings('admin', $section, $subAdminSettingsFilter);
Please login to merge, or discard this patch.
apps/settings/templates/settings/personal/development.notice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <div class="section development-notice">
2 2
 	<p>
3
-		<a href="<?php p($_['reasons-use-nextcloud-pdf-link']); ?>" id="open-reasons-use-nextcloud-pdf" class="link-button icon-file" target="_blank"><?php p($l->t('Reasons to use Nextcloud in your organization'));?></a>
3
+		<a href="<?php p($_['reasons-use-nextcloud-pdf-link']); ?>" id="open-reasons-use-nextcloud-pdf" class="link-button icon-file" target="_blank"><?php p($l->t('Reasons to use Nextcloud in your organization')); ?></a>
4 4
 	</p>
5 5
 	<p>
6 6
 		<?php print_unescaped(str_replace(
Please login to merge, or discard this patch.
lib/private/Dashboard/Manager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 				 * we can not inject it. Thus the static call.
74 74
 				 */
75 75
 				\OC::$server->getLogger()->logException($e, [
76
-					'message' => 'Could not load lazy dashbaord widget: ' . $e->getMessage(),
76
+					'message' => 'Could not load lazy dashbaord widget: '.$e->getMessage(),
77 77
 					'level' => ILogger::FATAL,
78 78
 				]);
79 79
 			}
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 				 * we can not inject it. Thus the static call.
90 90
 				 */
91 91
 				\OC::$server->getLogger()->logException($e, [
92
-					'message' => 'Could not register lazy dashboard widget: ' . $e->getMessage(),
92
+					'message' => 'Could not register lazy dashboard widget: '.$e->getMessage(),
93 93
 					'level' => ILogger::FATAL,
94 94
 				]);
95 95
 			}
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 				}
108 108
 			} catch (Throwable $e) {
109 109
 				\OC::$server->getLogger()->logException($e, [
110
-					'message' => 'Error during dashboard widget loading: ' . $e->getMessage(),
110
+					'message' => 'Error during dashboard widget loading: '.$e->getMessage(),
111 111
 					'level' => ILogger::FATAL,
112 112
 				]);
113 113
 			}
Please login to merge, or discard this patch.
apps/user_status/lib/Controller/UserStatusController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 			$status = $this->service->setStatus($this->userId, $statusType, null, true);
99 99
 			return new DataResponse($this->formatStatus($status));
100 100
 		} catch (InvalidStatusTypeException $ex) {
101
-			$this->logger->debug('New user-status for "' . $this->userId . '" was rejected due to an invalid status type "' . $statusType . '"');
101
+			$this->logger->debug('New user-status for "'.$this->userId.'" was rejected due to an invalid status type "'.$statusType.'"');
102 102
 			throw new OCSBadRequestException($ex->getMessage(), $ex);
103 103
 		}
104 104
 	}
@@ -117,10 +117,10 @@  discard block
 block discarded – undo
117 117
 			$status = $this->service->setPredefinedMessage($this->userId, $messageId, $clearAt);
118 118
 			return new DataResponse($this->formatStatus($status));
119 119
 		} catch (InvalidClearAtException $ex) {
120
-			$this->logger->debug('New user-status for "' . $this->userId . '" was rejected due to an invalid clearAt value "' . $clearAt . '"');
120
+			$this->logger->debug('New user-status for "'.$this->userId.'" was rejected due to an invalid clearAt value "'.$clearAt.'"');
121 121
 			throw new OCSBadRequestException($ex->getMessage(), $ex);
122 122
 		} catch (InvalidMessageIdException $ex) {
123
-			$this->logger->debug('New user-status for "' . $this->userId . '" was rejected due to an invalid message-id "' . $messageId . '"');
123
+			$this->logger->debug('New user-status for "'.$this->userId.'" was rejected due to an invalid message-id "'.$messageId.'"');
124 124
 			throw new OCSBadRequestException($ex->getMessage(), $ex);
125 125
 		}
126 126
 	}
@@ -146,13 +146,13 @@  discard block
 block discarded – undo
146 146
 			}
147 147
 			return new DataResponse($this->formatStatus($status));
148 148
 		} catch (InvalidClearAtException $ex) {
149
-			$this->logger->debug('New user-status for "' . $this->userId . '" was rejected due to an invalid clearAt value "' . $clearAt . '"');
149
+			$this->logger->debug('New user-status for "'.$this->userId.'" was rejected due to an invalid clearAt value "'.$clearAt.'"');
150 150
 			throw new OCSBadRequestException($ex->getMessage(), $ex);
151 151
 		} catch (InvalidStatusIconException $ex) {
152
-			$this->logger->debug('New user-status for "' . $this->userId . '" was rejected due to an invalid icon value "' . $statusIcon . '"');
152
+			$this->logger->debug('New user-status for "'.$this->userId.'" was rejected due to an invalid icon value "'.$statusIcon.'"');
153 153
 			throw new OCSBadRequestException($ex->getMessage(), $ex);
154 154
 		} catch (StatusMessageTooLongException $ex) {
155
-			$this->logger->debug('New user-status for "' . $this->userId . '" was rejected due to a too long status message.');
155
+			$this->logger->debug('New user-status for "'.$this->userId.'" was rejected due to a too long status message.');
156 156
 			throw new OCSBadRequestException($ex->getMessage(), $ex);
157 157
 		}
158 158
 	}
Please login to merge, or discard this patch.
apps/accessibility/lib/AppInfo/Application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 			// we want to check if any theme or font is enabled.
71 71
 			if (count($userValues) > 0) {
72 72
 				$hash = $config->getUserValue($loggedUser->getUID(), self::APP_ID, 'icons-css', md5(implode('-', $userValues)));
73
-				$linkToCSS = $urlGenerator->linkToRoute(self::APP_ID . '.accessibility.getCss', ['md5' => $hash]);
73
+				$linkToCSS = $urlGenerator->linkToRoute(self::APP_ID.'.accessibility.getCss', ['md5' => $hash]);
74 74
 				\OCP\Util::addHeader('link', ['rel' => 'stylesheet', 'href' => $linkToCSS]);
75 75
 			}
76 76
 			\OCP\Util::addScript('accessibility', 'accessibilityoca');
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 			$userValues = ['dark'];
79 79
 
80 80
 			$hash = md5(implode('-', $userValues));
81
-			$linkToCSS = $urlGenerator->linkToRoute(self::APP_ID . '.accessibility.getCss', ['md5' => $hash]);
81
+			$linkToCSS = $urlGenerator->linkToRoute(self::APP_ID.'.accessibility.getCss', ['md5' => $hash]);
82 82
 			\OCP\Util::addHeader('link', ['rel' => 'stylesheet', 'media' => '(prefers-color-scheme: dark)', 'href' => $linkToCSS]);
83 83
 		}
84 84
 	}
Please login to merge, or discard this patch.
core/Controller/LostController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
 			$this->sendEmail($user);
268 268
 		} catch (ResetPasswordException $e) {
269 269
 			// Ignore the error since we do not want to leak this info
270
-			$this->logger->warning('Could not send password reset email: ' . $e->getMessage());
270
+			$this->logger->warning('Could not send password reset email: '.$e->getMessage());
271 271
 		} catch (\Exception $e) {
272 272
 			$this->logger->logException($e);
273 273
 		}
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
 		$email = $user->getEMailAddress();
338 338
 
339 339
 		if (empty($email)) {
340
-			throw new ResetPasswordException('Could not send reset e-mail since there is no email for username ' . $input);
340
+			throw new ResetPasswordException('Could not send reset e-mail since there is no email for username '.$input);
341 341
 		}
342 342
 
343 343
 		// Generate the token. It is stored encrypted in the database with the
@@ -350,8 +350,8 @@  discard block
 block discarded – undo
350 350
 			ISecureRandom::CHAR_LOWER.
351 351
 			ISecureRandom::CHAR_UPPER
352 352
 		);
353
-		$tokenValue = $this->timeFactory->getTime() .':'. $token;
354
-		$encryptedValue = $this->crypto->encrypt($tokenValue, $email . $this->config->getSystemValue('secret'));
353
+		$tokenValue = $this->timeFactory->getTime().':'.$token;
354
+		$encryptedValue = $this->crypto->encrypt($tokenValue, $email.$this->config->getSystemValue('secret'));
355 355
 		$this->config->setUserValue($user->getUID(), 'core', 'lostpassword', $encryptedValue);
356 356
 
357 357
 		$link = $this->urlGenerator->linkToRouteAbsolute('core.lost.resetform', ['userId' => $user->getUID(), 'token' => $token]);
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 			return $user;
404 404
 		}
405 405
 
406
-		$users = array_filter($this->userManager->getByEmail($input), function (IUser $user) {
406
+		$users = array_filter($this->userManager->getByEmail($input), function(IUser $user) {
407 407
 			return $user->isEnabled();
408 408
 		});
409 409
 
Please login to merge, or discard this patch.