Passed
Push — master ( 65fd24...fc096a )
by Joas
17:08 queued 14s
created
lib/public/Authentication/TwoFactorAuth/IRegistry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@
 block discarded – undo
42 42
 	/**
43 43
 	 * @deprecated 22.0.0
44 44
 	 */
45
-	public const EVENT_PROVIDER_ENABLED = self::class . '::enable';
45
+	public const EVENT_PROVIDER_ENABLED = self::class.'::enable';
46 46
 
47 47
 	/**
48 48
 	 * @deprecated 22.0.0
49 49
 	 */
50
-	public const EVENT_PROVIDER_DISABLED = self::class . '::disable';
50
+	public const EVENT_PROVIDER_DISABLED = self::class.'::disable';
51 51
 
52 52
 	/**
53 53
 	 * Get a key-value map of providers and their enabled/disabled state for
Please login to merge, or discard this patch.
lib/public/IPreview.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 	 * @since 9.2.0
51 51
 	 * @deprecated 22.0.0
52 52
 	 */
53
-	public const EVENT = self::class . ':' . 'PreviewRequested';
53
+	public const EVENT = self::class.':'.'PreviewRequested';
54 54
 
55 55
 	public const MODE_FILL = 'fill';
56 56
 	public const MODE_COVER = 'cover';
Please login to merge, or discard this patch.
lib/private/Http/WellKnown/RequestManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
 		$subject = $request->getParam('resource');
77 77
 		$initialResponse = new JrdResponse($subject ?? '');
78
-		$finalResponse = array_reduce($handlers, function (?IResponse $previousResponse, IHandler $handler) use ($context, $service) {
78
+		$finalResponse = array_reduce($handlers, function(?IResponse $previousResponse, IHandler $handler) use ($context, $service) {
79 79
 			return $handler->handle($service, $context, $previousResponse);
80 80
 		}, $initialResponse);
81 81
 
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
 		}
98 98
 
99 99
 		$registrations = $context->getWellKnownHandlers();
100
-		$this->logger->debug(count($registrations) . " well known handlers registered");
100
+		$this->logger->debug(count($registrations)." well known handlers registered");
101 101
 
102 102
 		return array_filter(
103
-			array_map(function (ServiceRegistration $registration) {
103
+			array_map(function(ServiceRegistration $registration) {
104 104
 				/** @var ServiceRegistration<IHandler> $registration */
105 105
 				$class = $registration->getService();
106 106
 
Please login to merge, or discard this patch.
apps/comments/lib/Activity/Provider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -213,12 +213,12 @@
 block discarded – undo
213 213
 					continue;
214 214
 				}
215 215
 
216
-				$message = str_replace('@"' . $mention['id'] . '"', '{mention' . $mentionCount . '}', $message);
216
+				$message = str_replace('@"'.$mention['id'].'"', '{mention'.$mentionCount.'}', $message);
217 217
 				if (strpos($mention['id'], ' ') === false && strpos($mention['id'], 'guest/') !== 0) {
218
-					$message = str_replace('@' . $mention['id'], '{mention' . $mentionCount . '}', $message);
218
+					$message = str_replace('@'.$mention['id'], '{mention'.$mentionCount.'}', $message);
219 219
 				}
220 220
 
221
-				$mentions['mention' . $mentionCount] = $this->generateUserParameter($mention['id']);
221
+				$mentions['mention'.$mentionCount] = $this->generateUserParameter($mention['id']);
222 222
 				$mentionCount++;
223 223
 			}
224 224
 
Please login to merge, or discard this patch.
lib/private/Preview/WebP.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,6 +37,6 @@
 block discarded – undo
37 37
 	}
38 38
 
39 39
 	public function isAvailable(FileInfo $file): bool {
40
-		return (bool)(imagetypes() & IMG_WEBP);
40
+		return (bool) (imagetypes() & IMG_WEBP);
41 41
 	}
42 42
 }
Please login to merge, or discard this patch.
apps/dav/lib/AppInfo/PluginManager.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 			}
262 262
 		}
263 263
 
264
-		throw new \Exception('Could not load ' . $className, 0, $e);
264
+		throw new \Exception('Could not load '.$className, 0, $e);
265 265
 	}
266 266
 
267 267
 
@@ -271,10 +271,10 @@  discard block
 block discarded – undo
271 271
 	 * @throws \Exception
272 272
 	 */
273 273
 	private function loadSabrePluginsFromInfoXml(array $classes): array {
274
-		return array_map(function (string $className): ServerPlugin {
274
+		return array_map(function(string $className): ServerPlugin {
275 275
 			$instance = $this->createClass($className);
276 276
 			if (!($instance instanceof ServerPlugin)) {
277
-				throw new \Exception('Sabre server plugin ' . $className . ' does not implement the ' . ServerPlugin::class . ' interface');
277
+				throw new \Exception('Sabre server plugin '.$className.' does not implement the '.ServerPlugin::class.' interface');
278 278
 			}
279 279
 			return $instance;
280 280
 		}, $classes);
@@ -285,10 +285,10 @@  discard block
 block discarded – undo
285 285
 	 * @return Collection[]
286 286
 	 */
287 287
 	private function loadSabreCollectionsFromInfoXml(array $classes): array {
288
-		return array_map(function (string $className): Collection {
288
+		return array_map(function(string $className): Collection {
289 289
 			$instance = $this->createClass($className);
290 290
 			if (!($instance instanceof Collection)) {
291
-				throw new \Exception('Sabre collection plugin ' . $className . ' does not implement the ' . Collection::class . ' interface');
291
+				throw new \Exception('Sabre collection plugin '.$className.' does not implement the '.Collection::class.' interface');
292 292
 			}
293 293
 			return $instance;
294 294
 		}, $classes);
@@ -299,10 +299,10 @@  discard block
 block discarded – undo
299 299
 	 * @return IAddressBookProvider[]
300 300
 	 */
301 301
 	private function loadSabreAddressBookPluginsFromInfoXml(array $classes): array {
302
-		return array_map(function (string $className): IAddressBookProvider {
302
+		return array_map(function(string $className): IAddressBookProvider {
303 303
 			$instance = $this->createClass($className);
304 304
 			if (!($instance instanceof IAddressBookProvider)) {
305
-				throw new \Exception('Sabre address book plugin class ' . $className . ' does not implement the ' . IAddressBookProvider::class . ' interface');
305
+				throw new \Exception('Sabre address book plugin class '.$className.' does not implement the '.IAddressBookProvider::class.' interface');
306 306
 			}
307 307
 			return $instance;
308 308
 		}, $classes);
@@ -313,10 +313,10 @@  discard block
 block discarded – undo
313 313
 	 * @return ICalendarProvider[]
314 314
 	 */
315 315
 	private function loadSabreCalendarPluginsFromInfoXml(array $classes): array {
316
-		return array_map(function (string $className): ICalendarProvider {
316
+		return array_map(function(string $className): ICalendarProvider {
317 317
 			$instance = $this->createClass($className);
318 318
 			if (!($instance instanceof ICalendarProvider)) {
319
-				throw new \Exception('Sabre calendar plugin class ' . $className . ' does not implement the ' . ICalendarProvider::class . ' interface');
319
+				throw new \Exception('Sabre calendar plugin class '.$className.' does not implement the '.ICalendarProvider::class.' interface');
320 320
 			}
321 321
 			return $instance;
322 322
 		}, $classes);
Please login to merge, or discard this patch.
apps/weather_status/lib/Service/WeatherStatusService.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 	 */
226 226
 	private function getAltitude(float $lat, float $lon): float {
227 227
 		$params = [
228
-			'locations' => $lat . ',' . $lon,
228
+			'locations' => $lat.','.$lon,
229 229
 		];
230 230
 		$url = 'https://api.opentopodata.org/v1/srtm30m';
231 231
 		$result = $this->requestJSON($url, $params);
@@ -258,11 +258,11 @@  discard block
 block discarded – undo
258 258
 			}
259 259
 			// post code
260 260
 			if (isset($jsonAddr['postcode'])) {
261
-				$cityAddress .= ', ' . $jsonAddr['postcode'];
261
+				$cityAddress .= ', '.$jsonAddr['postcode'];
262 262
 			}
263 263
 			// country
264 264
 			if (isset($jsonAddr['country'])) {
265
-				$cityAddress .= ', ' . $jsonAddr['country'];
265
+				$cityAddress .= ', '.$jsonAddr['country'];
266 266
 				return $cityAddress;
267 267
 			} else {
268 268
 				return $json['display_name'];
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 			'namedetails' => '1',
316 316
 			'limit' => '1',
317 317
 		];
318
-		$url = 'https://nominatim.openstreetmap.org/search/' . $address;
318
+		$url = 'https://nominatim.openstreetmap.org/search/'.$address;
319 319
 		$results = $this->requestJSON($url, $params);
320 320
 		if (count($results) > 0) {
321 321
 			return $results[0];
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
 	 * @return array which contains the error message or the parsed JSON result
393 393
 	 */
394 394
 	private function requestJSON(string $url, array $params = []): array {
395
-		$cacheKey = $url . '|' . implode(',', $params) . '|' . implode(',', array_keys($params));
395
+		$cacheKey = $url.'|'.implode(',', $params).'|'.implode(',', array_keys($params));
396 396
 		$cacheValue = $this->cache->get($cacheKey);
397 397
 		if ($cacheValue !== null) {
398 398
 			return $cacheValue;
@@ -401,14 +401,14 @@  discard block
 block discarded – undo
401 401
 		try {
402 402
 			$options = [
403 403
 				'headers' => [
404
-					'User-Agent' => 'NextcloudWeatherStatus/' . $this->version . ' nextcloud.com'
404
+					'User-Agent' => 'NextcloudWeatherStatus/'.$this->version.' nextcloud.com'
405 405
 				],
406 406
 			];
407 407
 
408 408
 			$reqUrl = $url;
409 409
 			if (count($params) > 0) {
410 410
 				$paramsContent = http_build_query($params);
411
-				$reqUrl = $url . '?' . $paramsContent;
411
+				$reqUrl = $url.'?'.$paramsContent;
412 412
 			}
413 413
 
414 414
 			$response = $this->client->get($reqUrl, $options);
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
 				return $json;
438 438
 			}
439 439
 		} catch (\Exception $e) {
440
-			$this->logger->warning($url . 'API error : ' . $e, ['app' => Application::APP_ID]);
440
+			$this->logger->warning($url.'API error : '.$e, ['app' => Application::APP_ID]);
441 441
 			return ['error' => $e->getMessage()];
442 442
 		}
443 443
 	}
Please login to merge, or discard this patch.
apps/user_ldap/lib/User/OfflineUser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 		if ($this->lastLogin === null) {
193 193
 			$this->fetchDetails();
194 194
 		}
195
-		return (int)$this->lastLogin;
195
+		return (int) $this->lastLogin;
196 196
 	}
197 197
 
198 198
 	/**
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 		if ($this->foundDeleted === null) {
204 204
 			$this->fetchDetails();
205 205
 		}
206
-		return (int)$this->foundDeleted;
206
+		return (int) $this->foundDeleted;
207 207
 	}
208 208
 
209 209
 	/**
Please login to merge, or discard this patch.
lib/autoloader.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -104,24 +104,24 @@  discard block
 block discarded – undo
104 104
 			 * Remove "apps/" from inclusion path for smooth migration to multi app dir
105 105
 			 */
106 106
 			if (strpos(\OC::$CLASSPATH[$class], 'apps/') === 0) {
107
-				\OCP\Util::writeLog('core', 'include path for class "' . $class . '" starts with "apps/"', ILogger::DEBUG);
107
+				\OCP\Util::writeLog('core', 'include path for class "'.$class.'" starts with "apps/"', ILogger::DEBUG);
108 108
 				$paths[] = str_replace('apps/', '', \OC::$CLASSPATH[$class]);
109 109
 			}
110 110
 		} elseif (strpos($class, 'OC_') === 0) {
111
-			$paths[] = \OC::$SERVERROOT . '/lib/private/legacy/' . strtolower(str_replace('_', '/', substr($class, 3)) . '.php');
111
+			$paths[] = \OC::$SERVERROOT.'/lib/private/legacy/'.strtolower(str_replace('_', '/', substr($class, 3)).'.php');
112 112
 		} elseif (strpos($class, 'OCA\\') === 0) {
113 113
 			[, $app, $rest] = explode('\\', $class, 3);
114 114
 			$app = strtolower($app);
115 115
 			$appPath = \OC_App::getAppPath($app);
116 116
 			if ($appPath && stream_resolve_include_path($appPath)) {
117
-				$paths[] = $appPath . '/' . strtolower(str_replace('\\', '/', $rest) . '.php');
117
+				$paths[] = $appPath.'/'.strtolower(str_replace('\\', '/', $rest).'.php');
118 118
 				// If not found in the root of the app directory, insert '/lib' after app id and try again.
119
-				$paths[] = $appPath . '/lib/' . strtolower(str_replace('\\', '/', $rest) . '.php');
119
+				$paths[] = $appPath.'/lib/'.strtolower(str_replace('\\', '/', $rest).'.php');
120 120
 			}
121 121
 		} elseif ($class === 'Test\\TestCase') {
122 122
 			// This File is considered public API, so we make sure that the class
123 123
 			// can still be loaded, although the PSR-4 paths have not been loaded.
124
-			$paths[] = \OC::$SERVERROOT . '/tests/lib/TestCase.php';
124
+			$paths[] = \OC::$SERVERROOT.'/tests/lib/TestCase.php';
125 125
 		}
126 126
 		return $paths;
127 127
 	}
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 	 */
134 134
 	protected function isValidPath(string $fullPath): bool {
135 135
 		foreach ($this->validRoots as $root => $true) {
136
-			if (substr($fullPath, 0, strlen($root) + 1) === $root . '/') {
136
+			if (substr($fullPath, 0, strlen($root) + 1) === $root.'/') {
137 137
 				return true;
138 138
 			}
139 139
 		}
Please login to merge, or discard this patch.