Completed
Push — master ( ed239d...1953a1 )
by Björn
09:21 queued 08:43
created
core/Command/Encryption/ChangeKeyStorageRoot.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 		}
144 144
 
145 145
 		$result = $this->rootView->file_put_contents(
146
-			$newRoot . '/' . Storage::KEY_STORAGE_MARKER,
146
+			$newRoot.'/'.Storage::KEY_STORAGE_MARKER,
147 147
 			'Nextcloud will detect this folder as key storage root only if this file exists'
148 148
 		);
149 149
 
@@ -162,10 +162,10 @@  discard block
 block discarded – undo
162 162
 	 */
163 163
 	protected function moveSystemKeys($oldRoot, $newRoot) {
164 164
 		if (
165
-			$this->rootView->is_dir($oldRoot . '/files_encryption') &&
166
-			$this->targetExists($newRoot . '/files_encryption') === false
165
+			$this->rootView->is_dir($oldRoot.'/files_encryption') &&
166
+			$this->targetExists($newRoot.'/files_encryption') === false
167 167
 		) {
168
-			$this->rootView->rename($oldRoot . '/files_encryption', $newRoot . '/files_encryption');
168
+			$this->rootView->rename($oldRoot.'/files_encryption', $newRoot.'/files_encryption');
169 169
 		}
170 170
 	}
171 171
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 		$progress->start();
195 195
 
196 196
 
197
-		foreach($this->userManager->getBackends() as $backend) {
197
+		foreach ($this->userManager->getBackends() as $backend) {
198 198
 			$limit = 500;
199 199
 			$offset = 0;
200 200
 			do {
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 					$this->moveUserEncryptionFolder($user, $oldRoot, $newRoot);
206 206
 				}
207 207
 				$offset += $limit;
208
-			} while(count($users) >= $limit);
208
+			} while (count($users) >= $limit);
209 209
 		}
210 210
 		$progress->finish();
211 211
 	}
@@ -222,13 +222,13 @@  discard block
 block discarded – undo
222 222
 
223 223
 		if ($this->userManager->userExists($user)) {
224 224
 
225
-			$source = $oldRoot . '/' . $user . '/files_encryption';
226
-			$target = $newRoot . '/' . $user . '/files_encryption';
225
+			$source = $oldRoot.'/'.$user.'/files_encryption';
226
+			$target = $newRoot.'/'.$user.'/files_encryption';
227 227
 			if (
228 228
 				$this->rootView->is_dir($source) &&
229 229
 				$this->targetExists($target) === false
230 230
 			) {
231
-				$this->prepareParentFolder($newRoot . '/' . $user);
231
+				$this->prepareParentFolder($newRoot.'/'.$user);
232 232
 				$this->rootView->rename($source, $target);
233 233
 			}
234 234
 		}
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 			$sub_dirs = explode('/', ltrim($path, '/'));
247 247
 			$dir = '';
248 248
 			foreach ($sub_dirs as $sub_dir) {
249
-				$dir .= '/' . $sub_dir;
249
+				$dir .= '/'.$sub_dir;
250 250
 				if ($this->rootView->file_exists($dir) === false) {
251 251
 					$this->rootView->mkdir($dir);
252 252
 				}
Please login to merge, or discard this patch.