Passed
Push — master ( c233ac...ceefe0 )
by Joas
14:23 queued 13s
created
apps/encryption/lib/Command/ScanLegacyFormat.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,9 +86,9 @@  discard block
 block discarded – undo
86 86
 			do {
87 87
 				$users = $backend->getUsers('', $limit, $offset);
88 88
 				foreach ($users as $user) {
89
-					$output->writeln('Scanning all files for ' . $user);
89
+					$output->writeln('Scanning all files for '.$user);
90 90
 					$this->setupUserFS($user);
91
-					$result &= $this->scanFolder($output, '/' . $user);
91
+					$result &= $this->scanFolder($output, '/'.$user);
92 92
 				}
93 93
 				$offset += $limit;
94 94
 			} while (count($users) >= $limit);
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 		$clean = true;
107 107
 
108 108
 		foreach ($this->rootView->getDirectoryContent($folder) as $item) {
109
-			$path = $folder . '/' . $item['name'];
109
+			$path = $folder.'/'.$item['name'];
110 110
 			if ($this->rootView->is_dir($path)) {
111 111
 				if ($this->scanFolder($output, $path) === false) {
112 112
 					$clean = false;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 				$stats = $this->rootView->stat($path);
121 121
 				if (!isset($stats['hasHeader']) || $stats['hasHeader'] === false) {
122 122
 					$clean = false;
123
-					$output->writeln($path . ' does not have a proper header');
123
+					$output->writeln($path.' does not have a proper header');
124 124
 				}
125 125
 			}
126 126
 		}
Please login to merge, or discard this patch.
apps/weather_status/lib/AppInfo/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 		parent::__construct(self::APP_ID, $urlParams);
55 55
 
56 56
 		$dispatcher = $this->getContainer()->query(IEventDispatcher::class);
57
-		$dispatcher->addListener(RegisterWidgetEvent::class, function (Event $e) {
57
+		$dispatcher->addListener(RegisterWidgetEvent::class, function(Event $e) {
58 58
 			Util::addScript(self::APP_ID, 'weather-status');
59 59
 		});
60 60
 	}
Please login to merge, or discard this patch.
apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 		$offset = (int) $arguments['offset'];
73 73
 		$stopAt = (int) $arguments['stopAt'];
74 74
 
75
-		$this->logger->info('Building calendar index (' . $offset .'/' . $stopAt . ')');
75
+		$this->logger->info('Building calendar index ('.$offset.'/'.$stopAt.')');
76 76
 
77 77
 		$startTime = $this->timeFactory->getTime();
78 78
 		while (($this->timeFactory->getTime() - $startTime) < 15) {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 				'offset' => $offset,
90 90
 				'stopAt' => $stopAt
91 91
 			]);
92
-			$this->logger->info('New building calendar index job scheduled with offset ' . $offset);
92
+			$this->logger->info('New building calendar index job scheduled with offset '.$offset);
93 93
 		}
94 94
 	}
95 95
 
Please login to merge, or discard this patch.
apps/user_status/lib/Dashboard/UserStatusWidget.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 		$recentStatusUpdates = array_slice(
129 129
 			array_filter(
130 130
 				$this->service->findAllRecentStatusChanges(8, 0),
131
-				static function (UserStatus $status) use ($currentUserId): bool {
131
+				static function(UserStatus $status) use ($currentUserId): bool {
132 132
 					return $status->getUserId() !== $currentUserId;
133 133
 				}
134 134
 			),
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 			7
137 137
 		);
138 138
 
139
-		$this->initialStateService->provideInitialState(Application::APP_ID, 'dashboard_data', array_map(function (UserStatus $status): array {
139
+		$this->initialStateService->provideInitialState(Application::APP_ID, 'dashboard_data', array_map(function(UserStatus $status): array {
140 140
 			$user = $this->userManager->get($status->getUserId());
141 141
 			$displayName = $status->getUserId();
142 142
 			if ($user !== null) {
Please login to merge, or discard this patch.
core/Command/Encryption/MigrateKeyStorage.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -108,11 +108,11 @@  discard block
 block discarded – undo
108 108
 	 * @param string $root
109 109
 	 */
110 110
 	protected function updateSystemKeys($root) {
111
-		if (!$this->rootView->is_dir($root . '/files_encryption')) {
111
+		if (!$this->rootView->is_dir($root.'/files_encryption')) {
112 112
 			return;
113 113
 		}
114 114
 
115
-		$this->traverseKeys($root . '/files_encryption', null);
115
+		$this->traverseKeys($root.'/files_encryption', null);
116 116
 	}
117 117
 
118 118
 	private function traverseKeys(string $folder, ?string $uid) {
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 			if ($node['mimetype'] === 'httpd/unix-directory') {
123 123
 				//ignore
124 124
 			} else {
125
-				$endsWith = function ($haystack, $needle) {
125
+				$endsWith = function($haystack, $needle) {
126 126
 					$length = strlen($needle);
127 127
 					if ($length === 0) {
128 128
 						return true;
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 					$endsWith($node['name'], '.privateKey') ||
136 136
 					$endsWith($node['name'], '.publicKey') ||
137 137
 					$endsWith($node['name'], '.shareKey')) {
138
-					$path = $folder . '/' . $node['name'];
138
+					$path = $folder.'/'.$node['name'];
139 139
 
140 140
 					$content = $this->rootView->file_get_contents($path);
141 141
 
@@ -163,9 +163,9 @@  discard block
 block discarded – undo
163 163
 
164 164
 		foreach ($listing as $node) {
165 165
 			if ($node['mimetype'] === 'httpd/unix-directory') {
166
-				$this->traverseFileKeys($folder . '/' . $node['name']);
166
+				$this->traverseFileKeys($folder.'/'.$node['name']);
167 167
 			} else {
168
-				$endsWith = function ($haystack, $needle) {
168
+				$endsWith = function($haystack, $needle) {
169 169
 					$length = strlen($needle);
170 170
 					if ($length === 0) {
171 171
 						return true;
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 					$endsWith($node['name'], '.privateKey') ||
179 179
 					$endsWith($node['name'], '.publicKey') ||
180 180
 					$endsWith($node['name'], '.shareKey')) {
181
-					$path = $folder . '/' . $node['name'];
181
+					$path = $folder.'/'.$node['name'];
182 182
 
183 183
 					$content = $this->rootView->file_get_contents($path);
184 184
 
@@ -247,12 +247,12 @@  discard block
 block discarded – undo
247 247
 	 */
248 248
 	protected function updateUserKeys(string $root, string $user) {
249 249
 		if ($this->userManager->userExists($user)) {
250
-			$source = $root . '/' . $user . '/files_encryption/OC_DEFAULT_MODULE';
250
+			$source = $root.'/'.$user.'/files_encryption/OC_DEFAULT_MODULE';
251 251
 			if ($this->rootView->is_dir($source)) {
252 252
 				$this->traverseKeys($source, $user);
253 253
 			}
254 254
 
255
-			$source = $root . '/' . $user . '/files_encryption/keys';
255
+			$source = $root.'/'.$user.'/files_encryption/keys';
256 256
 			if ($this->rootView->is_dir($source)) {
257 257
 				$this->traverseFileKeys($source);
258 258
 			}
Please login to merge, or discard this patch.
lib/private/legacy/OC_Helper.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	public static function computerFileSize($str) {
101 101
 		$str = strtolower($str);
102 102
 		if (is_numeric($str)) {
103
-			return (float)$str;
103
+			return (float) $str;
104 104
 		}
105 105
 
106 106
 		$bytes_array = [
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 			'p' => 1024 * 1024 * 1024 * 1024 * 1024,
118 118
 		];
119 119
 
120
-		$bytes = (float)$str;
120
+		$bytes = (float) $str;
121 121
 
122 122
 		if (preg_match('#([kmgtp]?b?)$#si', $str, $matches) && !empty($bytes_array[$matches[1]])) {
123 123
 			$bytes *= $bytes_array[$matches[1]];
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
 		}
233 233
 		foreach ($dirs as $dir) {
234 234
 			foreach ($exts as $ext) {
235
-				if ($check_fn("$dir/$name" . $ext)) {
235
+				if ($check_fn("$dir/$name".$ext)) {
236 236
 					return true;
237 237
 				}
238 238
 			}
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
 			$ext = '';
305 305
 		}
306 306
 
307
-		$newpath = $path . '/' . $filename;
307
+		$newpath = $path.'/'.$filename;
308 308
 		if ($view->file_exists($newpath)) {
309 309
 			if (preg_match_all('/\((\d+)\)/', $name, $matches, PREG_OFFSET_CAPTURE)) {
310 310
 				//Replace the last "(number)" with "(number+1)"
@@ -320,11 +320,11 @@  discard block
 block discarded – undo
320 320
 			do {
321 321
 				if ($offset) {
322 322
 					//Replace the last "(number)" with "(number+1)"
323
-					$newname = substr_replace($name, '(' . $counter . ')', $offset, $match_length);
323
+					$newname = substr_replace($name, '('.$counter.')', $offset, $match_length);
324 324
 				} else {
325
-					$newname = $name . ' (' . $counter . ')';
325
+					$newname = $name.' ('.$counter.')';
326 326
 				}
327
-				$newpath = $path . '/' . $newname . $ext;
327
+				$newpath = $path.'/'.$newname.$ext;
328 328
 				$counter++;
329 329
 			} while ($view->file_exists($newpath));
330 330
 		}
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 			$freeSpace = max($freeSpace, 0);
406 406
 			return $freeSpace;
407 407
 		} else {
408
-			return (INF > 0)? INF: PHP_INT_MAX; // work around https://bugs.php.net/bug.php?id=69188
408
+			return (INF > 0) ? INF: PHP_INT_MAX; // work around https://bugs.php.net/bug.php?id=69188
409 409
 		}
410 410
 	}
411 411
 
@@ -418,9 +418,9 @@  discard block
 block discarded – undo
418 418
 		$ini = \OC::$server->get(IniGetWrapper::class);
419 419
 		$upload_max_filesize = OCP\Util::computerFileSize($ini->get('upload_max_filesize'));
420 420
 		$post_max_size = OCP\Util::computerFileSize($ini->get('post_max_size'));
421
-		if ((int)$upload_max_filesize === 0 and (int)$post_max_size === 0) {
421
+		if ((int) $upload_max_filesize === 0 and (int) $post_max_size === 0) {
422 422
 			return INF;
423
-		} elseif ((int)$upload_max_filesize === 0 or (int)$post_max_size === 0) {
423
+		} elseif ((int) $upload_max_filesize === 0 or (int) $post_max_size === 0) {
424 424
 			return max($upload_max_filesize, $post_max_size); //only the non 0 value counts
425 425
 		} else {
426 426
 			return min($upload_max_filesize, $post_max_size);
Please login to merge, or discard this patch.
lib/private/Files/Storage/Wrapper/Jail.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 	}
57 57
 
58 58
 	public function getUnjailedPath($path) {
59
-		return trim(Filesystem::normalizePath($this->rootPath . '/' . $path), '/');
59
+		return trim(Filesystem::normalizePath($this->rootPath.'/'.$path), '/');
60 60
 	}
61 61
 
62 62
 	/**
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
 
70 70
 	public function getJailedPath($path) {
71
-		$root = rtrim($this->rootPath, '/') . '/';
71
+		$root = rtrim($this->rootPath, '/').'/';
72 72
 
73 73
 		if ($path !== $this->rootPath && strpos($path, $root) !== 0) {
74 74
 			return null;
Please login to merge, or discard this patch.
apps/files/lib/Controller/DirectEditingController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 			]);
89 89
 		} catch (Exception $e) {
90 90
 			$this->logger->logException($e, ['message' => 'Exception when creating a new file through direct editing']);
91
-			return new DataResponse(['message' => 'Failed to create file: ' . $e->getMessage()], Http::STATUS_FORBIDDEN);
91
+			return new DataResponse(['message' => 'Failed to create file: '.$e->getMessage()], Http::STATUS_FORBIDDEN);
92 92
 		}
93 93
 	}
94 94
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 			]);
109 109
 		} catch (Exception $e) {
110 110
 			$this->logger->logException($e, ['message' => 'Exception when opening a file through direct editing']);
111
-			return new DataResponse(['message' => 'Failed to open file: ' . $e->getMessage()], Http::STATUS_FORBIDDEN);
111
+			return new DataResponse(['message' => 'Failed to open file: '.$e->getMessage()], Http::STATUS_FORBIDDEN);
112 112
 		}
113 113
 	}
114 114
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 			return new DataResponse($this->directEditingManager->getTemplates($editorId, $creatorId));
128 128
 		} catch (Exception $e) {
129 129
 			$this->logger->logException($e);
130
-			return new DataResponse(['message' => 'Failed to obtain template list: ' . $e->getMessage()], Http::STATUS_INTERNAL_SERVER_ERROR);
130
+			return new DataResponse(['message' => 'Failed to obtain template list: '.$e->getMessage()], Http::STATUS_INTERNAL_SERVER_ERROR);
131 131
 		}
132 132
 	}
133 133
 }
Please login to merge, or discard this patch.
apps/settings/lib/Controller/AppSettingsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -245,10 +245,10 @@  discard block
 block discarded – undo
245 245
 		$dependencyAnalyzer = new DependencyAnalyzer(new Platform($this->config), $this->l10n);
246 246
 
247 247
 		// Extend existing app details
248
-		$apps = array_map(function ($appData) use ($dependencyAnalyzer) {
248
+		$apps = array_map(function($appData) use ($dependencyAnalyzer) {
249 249
 			if (isset($appData['appstoreData'])) {
250 250
 				$appstoreData = $appData['appstoreData'];
251
-				$appData['screenshot'] = isset($appstoreData['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/' . base64_encode($appstoreData['screenshots'][0]['url']) : '';
251
+				$appData['screenshot'] = isset($appstoreData['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/'.base64_encode($appstoreData['screenshots'][0]['url']) : '';
252 252
 				$appData['category'] = $appstoreData['categories'];
253 253
 				$appData['releases'] = $appstoreData['releases'];
254 254
 			}
@@ -543,8 +543,8 @@  discard block
 block discarded – undo
543 543
 	}
544 544
 
545 545
 	private function sortApps($a, $b) {
546
-		$a = (string)$a['name'];
547
-		$b = (string)$b['name'];
546
+		$a = (string) $a['name'];
547
+		$b = (string) $b['name'];
548 548
 		if ($a === $b) {
549 549
 			return 0;
550 550
 		}
Please login to merge, or discard this patch.