Passed
Push — master ( 348454...c8160a )
by Joas
15:07 queued 14s
created
lib/public/Authentication/TwoFactorAuth/IProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,12 +38,12 @@
 block discarded – undo
38 38
 	 * @since 14.0.0
39 39
 	 * @deprecated 22.0.0
40 40
 	 */
41
-	public const EVENT_SUCCESS = self::class . '::success';
41
+	public const EVENT_SUCCESS = self::class.'::success';
42 42
 
43 43
 	/**
44 44
 	 * @deprecated 22.0.0
45 45
 	 */
46
-	public const EVENT_FAILED = self::class . '::failed';
46
+	public const EVENT_FAILED = self::class.'::failed';
47 47
 
48 48
 	/**
49 49
 	 * Get unique identifier of this 2FA provider
Please login to merge, or discard this patch.
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.