Passed
Push — master ( a16703...c6645c )
by John
17:09 queued 13s
created
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.
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.
lib/private/Collaboration/Collaborators/RemoteGroupPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 		if ($this->enabled && $this->cloudIdManager->isValidCloudId($search) && $offset === 0) {
62 62
 			[$remoteGroup, $serverUrl] = $this->splitGroupRemote($search);
63 63
 			$result['exact'][] = [
64
-				'label' => $remoteGroup . " ($serverUrl)",
64
+				'label' => $remoteGroup." ($serverUrl)",
65 65
 				'guid' => $remoteGroup,
66 66
 				'name' => $remoteGroup,
67 67
 				'value' => [
Please login to merge, or discard this patch.
lib/private/DB/QueryBuilder/QuoteHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,12 +71,12 @@
 block discarded – undo
71 71
 			[$alias, $columnName] = explode('.', $string, 2);
72 72
 
73 73
 			if ($columnName === '*') {
74
-				return '`' . $alias . '`.*';
74
+				return '`'.$alias.'`.*';
75 75
 			}
76 76
 
77
-			return '`' . $alias . '`.`' . $columnName . '`';
77
+			return '`'.$alias.'`.`'.$columnName.'`';
78 78
 		}
79 79
 
80
-		return '`' . $string . '`';
80
+		return '`'.$string.'`';
81 81
 	}
82 82
 }
Please login to merge, or discard this patch.
apps/systemtags/lib/Activity/Provider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -319,7 +319,7 @@
 block discarded – undo
319 319
 		if ($tagData === null) {
320 320
 			[$name, $status] = explode('|||', substr($parameter, 3, -3));
321 321
 			$tagData = [
322
-				'id' => 0,// No way to recover the ID
322
+				'id' => 0, // No way to recover the ID
323 323
 				'name' => $name,
324 324
 				'assignable' => $status === 'assignable',
325 325
 				'visible' => $status !== 'invisible',
Please login to merge, or discard this patch.
apps/dav/lib/CardDAV/Plugin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
 	protected function getAddressbookHomeForPrincipal($principal) {
46 46
 		if (strrpos($principal, 'principals/users', -strlen($principal)) !== false) {
47 47
 			[, $principalId] = \Sabre\Uri\split($principal);
48
-			return self::ADDRESSBOOK_ROOT . '/users/' . $principalId;
48
+			return self::ADDRESSBOOK_ROOT.'/users/'.$principalId;
49 49
 		}
50 50
 		if (strrpos($principal, 'principals/groups', -strlen($principal)) !== false) {
51 51
 			[, $principalId] = \Sabre\Uri\split($principal);
52
-			return self::ADDRESSBOOK_ROOT . '/groups/' . $principalId;
52
+			return self::ADDRESSBOOK_ROOT.'/groups/'.$principalId;
53 53
 		}
54 54
 		if (strrpos($principal, 'principals/system', -strlen($principal)) !== false) {
55 55
 			[, $principalId] = \Sabre\Uri\split($principal);
56
-			return self::ADDRESSBOOK_ROOT . '/system/' . $principalId;
56
+			return self::ADDRESSBOOK_ROOT.'/system/'.$principalId;
57 57
 		}
58 58
 	}
59 59
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 		$ns = '{http://owncloud.org/ns}';
69 69
 
70 70
 		if ($node instanceof AddressBook) {
71
-			$propFind->handle($ns . 'groups', function () use ($node) {
71
+			$propFind->handle($ns.'groups', function() use ($node) {
72 72
 				return new Groups($node->getContactsGroups());
73 73
 			});
74 74
 		}
Please login to merge, or discard this patch.