Passed
Push — master ( d2bc85...273849 )
by Morris
13:10
created
lib/private/Encryption/DecryptAll.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 		$this->output = $output;
87 87
 
88 88
 		if ($user !== '' && $this->userManager->userExists($user) === false) {
89
-			$this->output->writeln('User "' . $user . '" does not exist. Please check the username and try again');
89
+			$this->output->writeln('User "'.$user.'" does not exist. Please check the username and try again');
90 90
 			return false;
91 91
 		}
92 92
 
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
 			$this->output->writeln('Files for following users couldn\'t be decrypted, ');
105 105
 			$this->output->writeln('maybe the user is not set up in a way that supports this operation: ');
106 106
 			foreach ($this->failed as $uid => $paths) {
107
-				$this->output->writeln('    ' . $uid);
107
+				$this->output->writeln('    '.$uid);
108 108
 				foreach ($paths as $path) {
109
-					$this->output->writeln('        ' . $path);
109
+					$this->output->writeln('        '.$path);
110 110
 				}
111 111
 			}
112 112
 			$this->output->writeln('');
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
 			/** @var IEncryptionModule $module */
129 129
 			$module = call_user_func($moduleDesc['callback']);
130 130
 			$this->output->writeln('');
131
-			$this->output->writeln('Prepare "' . $module->getDisplayName() . '"');
131
+			$this->output->writeln('Prepare "'.$module->getDisplayName().'"');
132 132
 			$this->output->writeln('');
133 133
 			if ($module->prepareDecryptAll($this->input, $this->output, $user) === false) {
134
-				$this->output->writeln('Module "' . $moduleDesc['displayName'] . '" does not support the functionality to decrypt all files again or the initialization of the module failed!');
134
+				$this->output->writeln('Module "'.$moduleDesc['displayName'].'" does not support the functionality to decrypt all files again or the initialization of the module failed!');
135 135
 				return false;
136 136
 			}
137 137
 		}
@@ -209,16 +209,16 @@  discard block
 block discarded – undo
209 209
 
210 210
 		$this->setupUserFS($uid);
211 211
 		$directories = array();
212
-		$directories[] = '/' . $uid . '/files';
212
+		$directories[] = '/'.$uid.'/files';
213 213
 
214 214
 		while ($root = array_pop($directories)) {
215 215
 			$content = $this->rootView->getDirectoryContent($root);
216 216
 			foreach ($content as $file) {
217 217
 				// only decrypt files owned by the user
218
-				if($file->getStorage()->instanceOfStorage('OCA\Files_Sharing\SharedStorage')) {
218
+				if ($file->getStorage()->instanceOfStorage('OCA\Files_Sharing\SharedStorage')) {
219 219
 					continue;
220 220
 				}
221
-				$path = $root . '/' . $file['name'];
221
+				$path = $root.'/'.$file['name'];
222 222
 				if ($this->rootView->is_dir($path)) {
223 223
 					$directories[] = $path;
224 224
 					continue;
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
 		}
263 263
 
264 264
 		$source = $path;
265
-		$target = $path . '.decrypted.' . $this->getTimestamp();
265
+		$target = $path.'.decrypted.'.$this->getTimestamp();
266 266
 
267 267
 		try {
268 268
 			$this->rootView->copy($source, $target);
Please login to merge, or discard this patch.