Completed
Push — master ( 453450...6f0537 )
by
unknown
37:16
created
lib/private/Net/IpAddressClassifier.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@
 block discarded – undo
62 62
 		}
63 63
 		/* Replace by normalized form */
64 64
 		if ($parsedIp instanceof IPv6) {
65
-			$ip = (string)($parsedIp->toIPv4() ?? $parsedIp);
65
+			$ip = (string) ($parsedIp->toIPv4() ?? $parsedIp);
66 66
 		} else {
67
-			$ip = (string)$parsedIp;
67
+			$ip = (string) $parsedIp;
68 68
 		}
69 69
 
70 70
 		if (!filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)) {
Please login to merge, or discard this patch.
lib/private/Log/ErrorHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	public function onShutdown(): void {
56 56
 		$error = error_get_last();
57 57
 		if ($error) {
58
-			$msg = $error['message'] . ' at ' . $error['file'] . '#' . $error['line'];
58
+			$msg = $error['message'].' at '.$error['file'].'#'.$error['line'];
59 59
 			$this->logger->critical(self::removePassword($msg), ['app' => 'PHP']);
60 60
 		}
61 61
 	}
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 	public function onException(Throwable $exception): void {
67 67
 		$class = get_class($exception);
68 68
 		$msg = $exception->getMessage();
69
-		$msg = "$class: $msg at " . $exception->getFile() . '#' . $exception->getLine();
69
+		$msg = "$class: $msg at ".$exception->getFile().'#'.$exception->getLine();
70 70
 		$this->logger->critical(self::removePassword($msg), ['app' => 'PHP']);
71 71
 	}
72 72
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 		if (!(error_reporting() & $number)) {
78 78
 			return true;
79 79
 		}
80
-		$msg = $message . ' at ' . $file . '#' . $line;
80
+		$msg = $message.' at '.$file.'#'.$line;
81 81
 		$e = new Error(self::removePassword($msg));
82 82
 		$this->logger->log(self::errnoToLogLevel($number), $e->getMessage(), ['app' => 'PHP']);
83 83
 		return true;
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 * Recoverable handler which catch all errors, warnings and notices
88 88
 	 */
89 89
 	public function onAll(int $number, string $message, string $file, int $line): bool {
90
-		$msg = $message . ' at ' . $file . '#' . $line;
90
+		$msg = $message.' at '.$file.'#'.$line;
91 91
 		$e = new Error(self::removePassword($msg));
92 92
 		$this->logger->log(self::errnoToLogLevel($number), $e->getMessage(), ['app' => 'PHP']);
93 93
 		return true;
Please login to merge, or discard this patch.
apps/contactsinteraction/lib/Db/RecentContactMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
 			return null;
117 117
 		}
118 118
 
119
-		return (int)$row['last_contact'];
119
+		return (int) $row['last_contact'];
120 120
 	}
121 121
 
122 122
 	public function cleanUp(int $olderThan): void {
Please login to merge, or discard this patch.
apps/admin_audit/lib/BackgroundJobs/Rotate.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
 	}
49 49
 
50 50
 	protected function run($argument): void {
51
-		$default = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/audit.log';
51
+		$default = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT.'/data').'/audit.log';
52 52
 		$this->filePath = $this->config->getAppValue('admin_audit', 'logfile', $default);
53 53
 
54 54
 		if ($this->filePath === '') {
Please login to merge, or discard this patch.
lib/private/AppFramework/Middleware/PublicShare/PublicShareMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
 		$controllerClassPath = explode('\\', get_class($controller));
64 64
 		$controllerShortClass = end($controllerClassPath);
65
-		$bruteforceProtectionAction = $controllerShortClass . '::' . $methodName;
65
+		$bruteforceProtectionAction = $controllerShortClass.'::'.$methodName;
66 66
 		$this->throttler->sleepDelayOrThrowOnMax($this->request->getRemoteAddress(), $bruteforceProtectionAction);
67 67
 
68 68
 		if (!$this->isLinkSharingEnabled()) {
Please login to merge, or discard this patch.
lib/private/Files/Cache/Wrapper/CacheJail.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 		if ($path === '') {
80 80
 			return $this->getRoot();
81 81
 		} else {
82
-			return $this->getRoot() . '/' . ltrim($path, '/');
82
+			return $this->getRoot().'/'.ltrim($path, '/');
83 83
 		}
84 84
 	}
85 85
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 		$rootLength = strlen($root) + 1;
99 99
 		if ($path === $root) {
100 100
 			return '';
101
-		} elseif (substr($path, 0, $rootLength) === $root . '/') {
101
+		} elseif (substr($path, 0, $rootLength) === $root.'/') {
102 102
 			return substr($path, $rootLength);
103 103
 		} else {
104 104
 			return null;
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 					new SearchBinaryOperator(ISearchBinaryOperator::OPERATOR_OR,
318 318
 						[
319 319
 							new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'path', $this->getGetUnjailedRoot()),
320
-							new SearchComparison(ISearchComparison::COMPARE_LIKE_CASE_SENSITIVE, 'path', SearchComparison::escapeLikeParameter($this->getGetUnjailedRoot()) . '/%'),
320
+							new SearchComparison(ISearchComparison::COMPARE_LIKE_CASE_SENSITIVE, 'path', SearchComparison::escapeLikeParameter($this->getGetUnjailedRoot()).'/%'),
321 321
 						],
322 322
 					)
323 323
 				]
Please login to merge, or discard this patch.
apps/dav/templates/schedule-response-options.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 			</div>
27 27
 		</fieldset>
28 28
 		<fieldset>
29
-			<input type="submit" value="<?php p($l->t('Save'));?>">
29
+			<input type="submit" value="<?php p($l->t('Save')); ?>">
30 30
 		</fieldset>
31 31
 	</form>
32 32
 </div>
Please login to merge, or discard this patch.
lib/private/Log/ExceptionSerializer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
 	private function filterTrace(array $trace) {
190 190
 		$sensitiveValues = [];
191
-		$trace = array_map(function (array $traceLine) use (&$sensitiveValues) {
191
+		$trace = array_map(function(array $traceLine) use (&$sensitiveValues) {
192 192
 			$className = $traceLine['class'] ?? '';
193 193
 			if ($className && isset($this->methodsWithSensitiveParametersByClass[$className])
194 194
 				&& in_array($traceLine['function'], $this->methodsWithSensitiveParametersByClass[$className], true)) {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 			}
202 202
 			return $traceLine;
203 203
 		}, $trace);
204
-		return array_map(function (array $traceLine) use ($sensitiveValues) {
204
+		return array_map(function(array $traceLine) use ($sensitiveValues) {
205 205
 			if (isset($traceLine['args'])) {
206 206
 				$traceLine['args'] = $this->removeValuesFromArgs($traceLine['args'], $sensitiveValues);
207 207
 			}
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 	}
224 224
 
225 225
 	private function encodeTrace($trace) {
226
-		$trace = array_map(function (array $line) {
226
+		$trace = array_map(function(array $line) {
227 227
 			if (isset($line['args'])) {
228 228
 				$line['args'] = array_map([$this, 'encodeArg'], $line['args']);
229 229
 			}
@@ -241,9 +241,9 @@  discard block
 block discarded – undo
241 241
 				];
242 242
 			}
243 243
 
244
-			$objectInfo = [ '__class__' => get_class($arg) ];
244
+			$objectInfo = ['__class__' => get_class($arg)];
245 245
 			$objectVars = get_object_vars($arg);
246
-			return array_map(function ($arg) use ($nestingLevel) {
246
+			return array_map(function($arg) use ($nestingLevel) {
247 247
 				return $this->encodeArg($arg, $nestingLevel - 1);
248 248
 			}, array_merge($objectInfo, $objectVars));
249 249
 		}
@@ -254,14 +254,14 @@  discard block
 block discarded – undo
254 254
 			}
255 255
 
256 256
 			// Only log the first 5 elements of an array unless we are on debug
257
-			if ((int)$this->systemConfig->getValue('loglevel', 2) !== 0) {
257
+			if ((int) $this->systemConfig->getValue('loglevel', 2) !== 0) {
258 258
 				$elemCount = count($arg);
259 259
 				if ($elemCount > 5) {
260 260
 					$arg = array_slice($arg, 0, 5);
261
-					$arg[] = 'And ' . ($elemCount - 5) . ' more entries, set log level to debug to see all entries';
261
+					$arg[] = 'And '.($elemCount - 5).' more entries, set log level to debug to see all entries';
262 262
 				}
263 263
 			}
264
-			return array_map(function ($e) use ($nestingLevel) {
264
+			return array_map(function($e) use ($nestingLevel) {
265 265
 				return $this->encodeArg($e, $nestingLevel - 1);
266 266
 			}, $arg);
267 267
 		}
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/DefinitionParameter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
 	 * @return bool
168 168
 	 */
169 169
 	public function isFlagSet(int $flag): bool {
170
-		return (bool)($this->flags & $flag);
170
+		return (bool) ($this->flags & $flag);
171 171
 	}
172 172
 
173 173
 	/**
Please login to merge, or discard this patch.