Completed
Push — master ( 6895ba...ed9b63 )
by
unknown
31:37
created
apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
 
30 30
 	use TMigratorBasicVersionHandling;
31 31
 
32
-	protected const PATH_FILES_FOLDER = Application::APP_ID . '/files';
33
-	protected const PATH_LOCATIONS_FILE = Application::APP_ID . '/locations.json';
32
+	protected const PATH_FILES_FOLDER = Application::APP_ID.'/files';
33
+	protected const PATH_LOCATIONS_FILE = Application::APP_ID.'/locations.json';
34 34
 
35 35
 	public function __construct(
36 36
 		protected IRootFolder $root,
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 	/**
43 43
 	 * {@inheritDoc}
44 44
 	 */
45
-	public function getEstimatedExportSize(IUser $user): int|float {
45
+	public function getEstimatedExportSize(IUser $user): int | float {
46 46
 		$uid = $user->getUID();
47 47
 
48 48
 		try {
49
-			$trashbinFolder = $this->root->get('/' . $uid . '/files_trashbin');
49
+			$trashbinFolder = $this->root->get('/'.$uid.'/files_trashbin');
50 50
 			if (!$trashbinFolder instanceof Folder) {
51 51
 				return 0;
52 52
 			}
@@ -60,14 +60,14 @@  discard block
 block discarded – undo
60 60
 	 * {@inheritDoc}
61 61
 	 */
62 62
 	public function export(IUser $user, IExportDestination $exportDestination, OutputInterface $output): void {
63
-		$output->writeln('Exporting trashbin into ' . Application::APP_ID . '…');
63
+		$output->writeln('Exporting trashbin into '.Application::APP_ID.'…');
64 64
 
65 65
 		$uid = $user->getUID();
66 66
 
67 67
 		try {
68
-			$trashbinFolder = $this->root->get('/' . $uid . '/files_trashbin');
68
+			$trashbinFolder = $this->root->get('/'.$uid.'/files_trashbin');
69 69
 			if (!$trashbinFolder instanceof Folder) {
70
-				throw new UserMigrationException('/' . $uid . '/files_trashbin is not a folder');
70
+				throw new UserMigrationException('/'.$uid.'/files_trashbin is not a folder');
71 71
 			}
72 72
 			$output->writeln('Exporting trashbin files…');
73 73
 			$exportDestination->copyFolder($trashbinFolder, static::PATH_FILES_FOLDER);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		} catch (NotFoundException $e) {
85 85
 			$output->writeln('No trashbin to export…');
86 86
 		} catch (\Throwable $e) {
87
-			throw new UserMigrationException('Could not export trashbin: ' . $e->getMessage(), 0, $e);
87
+			throw new UserMigrationException('Could not export trashbin: '.$e->getMessage(), 0, $e);
88 88
 		}
89 89
 	}
90 90
 
@@ -93,22 +93,22 @@  discard block
 block discarded – undo
93 93
 	 */
94 94
 	public function import(IUser $user, IImportSource $importSource, OutputInterface $output): void {
95 95
 		if ($importSource->getMigratorVersion($this->getId()) === null) {
96
-			$output->writeln('No version for ' . static::class . ', skipping import…');
96
+			$output->writeln('No version for '.static::class.', skipping import…');
97 97
 			return;
98 98
 		}
99 99
 
100
-		$output->writeln('Importing trashbin from ' . Application::APP_ID . '…');
100
+		$output->writeln('Importing trashbin from '.Application::APP_ID.'…');
101 101
 
102 102
 		$uid = $user->getUID();
103 103
 
104 104
 		if ($importSource->pathExists(static::PATH_FILES_FOLDER)) {
105 105
 			try {
106
-				$trashbinFolder = $this->root->get('/' . $uid . '/files_trashbin');
106
+				$trashbinFolder = $this->root->get('/'.$uid.'/files_trashbin');
107 107
 				if (!$trashbinFolder instanceof Folder) {
108
-					throw new UserMigrationException('Could not import trashbin, /' . $uid . '/files_trashbin is not a folder');
108
+					throw new UserMigrationException('Could not import trashbin, /'.$uid.'/files_trashbin is not a folder');
109 109
 				}
110 110
 			} catch (NotFoundException $e) {
111
-				$trashbinFolder = $this->root->newFolder('/' . $uid . '/files_trashbin');
111
+				$trashbinFolder = $this->root->newFolder('/'.$uid.'/files_trashbin');
112 112
 			}
113 113
 			$output->writeln('Importing trashbin files…');
114 114
 			try {
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Trash/LegacyTrashBackend.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 	private function mapTrashItems(array $items, IUser $user, ?ITrashItem $parent = null): array {
38 38
 		$parentTrashPath = ($parent instanceof ITrashItem) ? $parent->getTrashPath() : '';
39 39
 		$isRoot = $parent === null;
40
-		return array_map(function (FileInfo $file) use ($parent, $parentTrashPath, $isRoot, $user) {
41
-			$originalLocation = $isRoot ? $file['extraData'] : $parent->getOriginalLocation() . '/' . $file->getName();
40
+		return array_map(function(FileInfo $file) use ($parent, $parentTrashPath, $isRoot, $user) {
41
+			$originalLocation = $isRoot ? $file['extraData'] : $parent->getOriginalLocation().'/'.$file->getName();
42 42
 			if (!$originalLocation) {
43 43
 				$originalLocation = $file->getName();
44 44
 			}
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 				$this,
50 50
 				$originalLocation,
51 51
 				$file->getMTime(),
52
-				$parentTrashPath . '/' . ($isRoot ? $trashFilename : $file->getName()),
52
+				$parentTrashPath.'/'.($isRoot ? $trashFilename : $file->getName()),
53 53
 				$file,
54 54
 				$user,
55 55
 				$deletedBy,
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	public function removeItem(ITrashItem $item) {
76 76
 		$user = $item->getUser();
77 77
 		if ($item->isRootItem()) {
78
-			$path = substr($item->getTrashPath(), 0, -strlen('.d' . $item->getDeletedTime()));
78
+			$path = substr($item->getTrashPath(), 0, -strlen('.d'.$item->getDeletedTime()));
79 79
 			Trashbin::delete($path, $user->getUID(), $item->getDeletedTime());
80 80
 		} else {
81 81
 			Trashbin::delete($item->getTrashPath(), $user->getUID(), null);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 		if (!$storage instanceof Storage) {
87 87
 			return false;
88 88
 		}
89
-		$normalized = Filesystem::normalizePath($storage->getMountPoint() . '/' . $internalPath, true, false, true);
89
+		$normalized = Filesystem::normalizePath($storage->getMountPoint().'/'.$internalPath, true, false, true);
90 90
 		$view = Filesystem::getView();
91 91
 		if (!isset($this->deletedFiles[$normalized]) && $view instanceof View) {
92 92
 			$this->deletedFiles[$normalized] = $normalized;
Please login to merge, or discard this patch.
apps/encryption/tests/Controller/SettingsControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
 
67 67
 		$this->l10nMock->expects($this->any())
68 68
 			->method('t')
69
-			->willReturnCallback(function ($message) {
69
+			->willReturnCallback(function($message) {
70 70
 				return $message;
71 71
 			});
72 72
 
Please login to merge, or discard this patch.
apps/encryption/tests/Controller/StatusControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 			->disableOriginalConstructor()->getMock();
43 43
 		$this->l10nMock->expects($this->any())
44 44
 			->method('t')
45
-			->willReturnCallback(function ($message) {
45
+			->willReturnCallback(function($message) {
46 46
 				return $message;
47 47
 			});
48 48
 		$this->encryptionManagerMock = $this->createMock(IManager::class);
Please login to merge, or discard this patch.
apps/encryption/tests/Crypto/EncryptionTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 
294 294
 		$this->keyManagerMock->expects($this->any())
295 295
 			->method('addSystemKeys')
296
-			->willReturnCallback(function ($accessList, $publicKeys) {
296
+			->willReturnCallback(function($accessList, $publicKeys) {
297 297
 				return $publicKeys;
298 298
 			});
299 299
 
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 		$this->keyManagerMock->expects($this->never())->method('getPublicKey');
320 320
 		$this->keyManagerMock->expects($this->never())->method('addSystemKeys');
321 321
 		$this->keyManagerMock->expects($this->once())->method('setVersion')
322
-			->willReturnCallback(function ($path, $version, $view): void {
322
+			->willReturnCallback(function($path, $version, $view): void {
323 323
 				$this->assertSame('path', $path);
324 324
 				$this->assertSame(2, $version);
325 325
 				$this->assertTrue($view instanceof View);
@@ -337,20 +337,20 @@  discard block
 block discarded – undo
337 337
 
338 338
 		$this->keyManagerMock->expects($this->any())
339 339
 			->method('getPublicKey')->willReturnCallback(
340
-				function ($user): void {
340
+				function($user): void {
341 341
 					throw new PublicKeyMissingException($user);
342 342
 				}
343 343
 			);
344 344
 
345 345
 		$this->keyManagerMock->expects($this->any())
346 346
 			->method('addSystemKeys')
347
-			->willReturnCallback(function ($accessList, $publicKeys) {
347
+			->willReturnCallback(function($accessList, $publicKeys) {
348 348
 				return $publicKeys;
349 349
 			});
350 350
 
351 351
 		$this->cryptMock->expects($this->once())->method('multiKeyEncrypt')
352 352
 			->willReturnCallback(
353
-				function ($fileKey, $publicKeys) {
353
+				function($fileKey, $publicKeys) {
354 354
 					$this->assertEmpty($publicKeys);
355 355
 					$this->assertSame('fileKey', $fileKey);
356 356
 					return [];
Please login to merge, or discard this patch.
apps/encryption/tests/Command/FixEncryptedVersionTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
 		$this->createUser($this->userId, 'foo12345678');
59 59
 		$tmpFolder = Server::get(ITempManager::class)->getTemporaryFolder();
60
-		$this->registerMount($this->userId, '\OC\Files\Storage\Local', '/' . $this->userId, ['datadir' => $tmpFolder]);
60
+		$this->registerMount($this->userId, '\OC\Files\Storage\Local', '/'.$this->userId, ['datadir' => $tmpFolder]);
61 61
 		$this->setupForUser($this->userId, 'foo12345678');
62 62
 		$this->loginWithEncryption($this->userId);
63 63
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 		$this->util->expects($this->once())->method('isMasterKeyEnabled')
85 85
 			->willReturn(true);
86 86
 
87
-		$view = new View('/' . $this->userId . '/files');
87
+		$view = new View('/'.$this->userId.'/files');
88 88
 
89 89
 		$view->touch('hello.txt');
90 90
 		$view->touch('world.txt');
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 		$this->util->expects($this->once())->method('isMasterKeyEnabled')
153 153
 			->willReturn(true);
154 154
 
155
-		$view = new View('/' . $this->userId . '/files');
155
+		$view = new View('/'.$this->userId.'/files');
156 156
 
157 157
 		$view->touch('hello.txt');
158 158
 		$view->touch('world.txt');
@@ -211,11 +211,11 @@  discard block
 block discarded – undo
211 211
 		$this->util->expects($this->once())->method('isMasterKeyEnabled')
212 212
 			->willReturn(true);
213 213
 
214
-		$view = new View('/' . $this->userId . '/files');
214
+		$view = new View('/'.$this->userId.'/files');
215 215
 
216 216
 		$view->touch('bar.txt');
217 217
 		for ($i = 0; $i < 40; $i++) {
218
-			$view->file_put_contents('bar.txt', 'a test string for hello ' . $i);
218
+			$view->file_put_contents('bar.txt', 'a test string for hello '.$i);
219 219
 		}
220 220
 
221 221
 		$fileInfo = $view->getFileInfo('bar.txt');
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 		$this->util->expects($this->once())->method('isMasterKeyEnabled')
242 242
 			->willReturn(true);
243 243
 
244
-		$view = new View('/' . $this->userId . '/files');
244
+		$view = new View('/'.$this->userId.'/files');
245 245
 
246 246
 		// create a file, it's encrypted and also the version is set in the database
247 247
 		$view->touch('hello.txt');
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 		$cacheInfo = ['encryptedVersion' => 1, 'encrypted' => 1];
257 257
 		$cache1->put($fileCache1->getPath(), $cacheInfo);
258 258
 
259
-		$absPath = $storage1->getSourcePath('') . $fileInfo1->getInternalPath();
259
+		$absPath = $storage1->getSourcePath('').$fileInfo1->getInternalPath();
260 260
 
261 261
 		// create unencrypted file on disk, the version stays
262 262
 		file_put_contents($absPath, 'hello contents');
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 		$this->util->expects($this->once())->method('isMasterKeyEnabled')
285 285
 			->willReturn(true);
286 286
 
287
-		$view = new View('/' . $this->userId . '/files');
287
+		$view = new View('/'.$this->userId.'/files');
288 288
 
289 289
 		$view->touch('hello.txt');
290 290
 		$view->touch('world.txt');
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 		$this->util->expects($this->once())->method('isMasterKeyEnabled')
309 309
 			->willReturn(true);
310 310
 
311
-		$view = new View('/' . $this->userId . '/files');
311
+		$view = new View('/'.$this->userId.'/files');
312 312
 
313 313
 		$view->mkdir('sub');
314 314
 		$view->touch('sub/hello.txt');
Please login to merge, or discard this patch.
apps/encryption/composer/composer/autoload_static.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -6,56 +6,56 @@
 block discarded – undo
6 6
 
7 7
 class ComposerStaticInitEncryption
8 8
 {
9
-    public static $prefixLengthsPsr4 = array (
9
+    public static $prefixLengthsPsr4 = array(
10 10
         'O' => 
11
-        array (
11
+        array(
12 12
             'OCA\\Encryption\\' => 15,
13 13
         ),
14 14
     );
15 15
 
16
-    public static $prefixDirsPsr4 = array (
16
+    public static $prefixDirsPsr4 = array(
17 17
         'OCA\\Encryption\\' => 
18
-        array (
19
-            0 => __DIR__ . '/..' . '/../lib',
18
+        array(
19
+            0 => __DIR__.'/..'.'/../lib',
20 20
         ),
21 21
     );
22 22
 
23
-    public static $classMap = array (
24
-        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
25
-        'OCA\\Encryption\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php',
26
-        'OCA\\Encryption\\Command\\DisableMasterKey' => __DIR__ . '/..' . '/../lib/Command/DisableMasterKey.php',
27
-        'OCA\\Encryption\\Command\\DropLegacyFileKey' => __DIR__ . '/..' . '/../lib/Command/DropLegacyFileKey.php',
28
-        'OCA\\Encryption\\Command\\EnableMasterKey' => __DIR__ . '/..' . '/../lib/Command/EnableMasterKey.php',
29
-        'OCA\\Encryption\\Command\\FixEncryptedVersion' => __DIR__ . '/..' . '/../lib/Command/FixEncryptedVersion.php',
30
-        'OCA\\Encryption\\Command\\FixKeyLocation' => __DIR__ . '/..' . '/../lib/Command/FixKeyLocation.php',
31
-        'OCA\\Encryption\\Command\\RecoverUser' => __DIR__ . '/..' . '/../lib/Command/RecoverUser.php',
32
-        'OCA\\Encryption\\Command\\ScanLegacyFormat' => __DIR__ . '/..' . '/../lib/Command/ScanLegacyFormat.php',
33
-        'OCA\\Encryption\\Controller\\RecoveryController' => __DIR__ . '/..' . '/../lib/Controller/RecoveryController.php',
34
-        'OCA\\Encryption\\Controller\\SettingsController' => __DIR__ . '/..' . '/../lib/Controller/SettingsController.php',
35
-        'OCA\\Encryption\\Controller\\StatusController' => __DIR__ . '/..' . '/../lib/Controller/StatusController.php',
36
-        'OCA\\Encryption\\Crypto\\Crypt' => __DIR__ . '/..' . '/../lib/Crypto/Crypt.php',
37
-        'OCA\\Encryption\\Crypto\\DecryptAll' => __DIR__ . '/..' . '/../lib/Crypto/DecryptAll.php',
38
-        'OCA\\Encryption\\Crypto\\EncryptAll' => __DIR__ . '/..' . '/../lib/Crypto/EncryptAll.php',
39
-        'OCA\\Encryption\\Crypto\\Encryption' => __DIR__ . '/..' . '/../lib/Crypto/Encryption.php',
40
-        'OCA\\Encryption\\Exceptions\\MultiKeyDecryptException' => __DIR__ . '/..' . '/../lib/Exceptions/MultiKeyDecryptException.php',
41
-        'OCA\\Encryption\\Exceptions\\MultiKeyEncryptException' => __DIR__ . '/..' . '/../lib/Exceptions/MultiKeyEncryptException.php',
42
-        'OCA\\Encryption\\Exceptions\\PrivateKeyMissingException' => __DIR__ . '/..' . '/../lib/Exceptions/PrivateKeyMissingException.php',
43
-        'OCA\\Encryption\\Exceptions\\PublicKeyMissingException' => __DIR__ . '/..' . '/../lib/Exceptions/PublicKeyMissingException.php',
44
-        'OCA\\Encryption\\KeyManager' => __DIR__ . '/..' . '/../lib/KeyManager.php',
45
-        'OCA\\Encryption\\Listeners\\UserEventsListener' => __DIR__ . '/..' . '/../lib/Listeners/UserEventsListener.php',
46
-        'OCA\\Encryption\\Migration\\SetMasterKeyStatus' => __DIR__ . '/..' . '/../lib/Migration/SetMasterKeyStatus.php',
47
-        'OCA\\Encryption\\Recovery' => __DIR__ . '/..' . '/../lib/Recovery.php',
48
-        'OCA\\Encryption\\Services\\PassphraseService' => __DIR__ . '/..' . '/../lib/Services/PassphraseService.php',
49
-        'OCA\\Encryption\\Session' => __DIR__ . '/..' . '/../lib/Session.php',
50
-        'OCA\\Encryption\\Settings\\Admin' => __DIR__ . '/..' . '/../lib/Settings/Admin.php',
51
-        'OCA\\Encryption\\Settings\\Personal' => __DIR__ . '/..' . '/../lib/Settings/Personal.php',
52
-        'OCA\\Encryption\\Users\\Setup' => __DIR__ . '/..' . '/../lib/Users/Setup.php',
53
-        'OCA\\Encryption\\Util' => __DIR__ . '/..' . '/../lib/Util.php',
23
+    public static $classMap = array(
24
+        'Composer\\InstalledVersions' => __DIR__.'/..'.'/composer/InstalledVersions.php',
25
+        'OCA\\Encryption\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php',
26
+        'OCA\\Encryption\\Command\\DisableMasterKey' => __DIR__.'/..'.'/../lib/Command/DisableMasterKey.php',
27
+        'OCA\\Encryption\\Command\\DropLegacyFileKey' => __DIR__.'/..'.'/../lib/Command/DropLegacyFileKey.php',
28
+        'OCA\\Encryption\\Command\\EnableMasterKey' => __DIR__.'/..'.'/../lib/Command/EnableMasterKey.php',
29
+        'OCA\\Encryption\\Command\\FixEncryptedVersion' => __DIR__.'/..'.'/../lib/Command/FixEncryptedVersion.php',
30
+        'OCA\\Encryption\\Command\\FixKeyLocation' => __DIR__.'/..'.'/../lib/Command/FixKeyLocation.php',
31
+        'OCA\\Encryption\\Command\\RecoverUser' => __DIR__.'/..'.'/../lib/Command/RecoverUser.php',
32
+        'OCA\\Encryption\\Command\\ScanLegacyFormat' => __DIR__.'/..'.'/../lib/Command/ScanLegacyFormat.php',
33
+        'OCA\\Encryption\\Controller\\RecoveryController' => __DIR__.'/..'.'/../lib/Controller/RecoveryController.php',
34
+        'OCA\\Encryption\\Controller\\SettingsController' => __DIR__.'/..'.'/../lib/Controller/SettingsController.php',
35
+        'OCA\\Encryption\\Controller\\StatusController' => __DIR__.'/..'.'/../lib/Controller/StatusController.php',
36
+        'OCA\\Encryption\\Crypto\\Crypt' => __DIR__.'/..'.'/../lib/Crypto/Crypt.php',
37
+        'OCA\\Encryption\\Crypto\\DecryptAll' => __DIR__.'/..'.'/../lib/Crypto/DecryptAll.php',
38
+        'OCA\\Encryption\\Crypto\\EncryptAll' => __DIR__.'/..'.'/../lib/Crypto/EncryptAll.php',
39
+        'OCA\\Encryption\\Crypto\\Encryption' => __DIR__.'/..'.'/../lib/Crypto/Encryption.php',
40
+        'OCA\\Encryption\\Exceptions\\MultiKeyDecryptException' => __DIR__.'/..'.'/../lib/Exceptions/MultiKeyDecryptException.php',
41
+        'OCA\\Encryption\\Exceptions\\MultiKeyEncryptException' => __DIR__.'/..'.'/../lib/Exceptions/MultiKeyEncryptException.php',
42
+        'OCA\\Encryption\\Exceptions\\PrivateKeyMissingException' => __DIR__.'/..'.'/../lib/Exceptions/PrivateKeyMissingException.php',
43
+        'OCA\\Encryption\\Exceptions\\PublicKeyMissingException' => __DIR__.'/..'.'/../lib/Exceptions/PublicKeyMissingException.php',
44
+        'OCA\\Encryption\\KeyManager' => __DIR__.'/..'.'/../lib/KeyManager.php',
45
+        'OCA\\Encryption\\Listeners\\UserEventsListener' => __DIR__.'/..'.'/../lib/Listeners/UserEventsListener.php',
46
+        'OCA\\Encryption\\Migration\\SetMasterKeyStatus' => __DIR__.'/..'.'/../lib/Migration/SetMasterKeyStatus.php',
47
+        'OCA\\Encryption\\Recovery' => __DIR__.'/..'.'/../lib/Recovery.php',
48
+        'OCA\\Encryption\\Services\\PassphraseService' => __DIR__.'/..'.'/../lib/Services/PassphraseService.php',
49
+        'OCA\\Encryption\\Session' => __DIR__.'/..'.'/../lib/Session.php',
50
+        'OCA\\Encryption\\Settings\\Admin' => __DIR__.'/..'.'/../lib/Settings/Admin.php',
51
+        'OCA\\Encryption\\Settings\\Personal' => __DIR__.'/..'.'/../lib/Settings/Personal.php',
52
+        'OCA\\Encryption\\Users\\Setup' => __DIR__.'/..'.'/../lib/Users/Setup.php',
53
+        'OCA\\Encryption\\Util' => __DIR__.'/..'.'/../lib/Util.php',
54 54
     );
55 55
 
56 56
     public static function getInitializer(ClassLoader $loader)
57 57
     {
58
-        return \Closure::bind(function () use ($loader) {
58
+        return \Closure::bind(function() use ($loader) {
59 59
             $loader->prefixLengthsPsr4 = ComposerStaticInitEncryption::$prefixLengthsPsr4;
60 60
             $loader->prefixDirsPsr4 = ComposerStaticInitEncryption::$prefixDirsPsr4;
61 61
             $loader->classMap = ComposerStaticInitEncryption::$classMap;
Please login to merge, or discard this patch.
apps/encryption/composer/composer/autoload_classmap.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -6,34 +6,34 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
10
-    'OCA\\Encryption\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php',
11
-    'OCA\\Encryption\\Command\\DisableMasterKey' => $baseDir . '/../lib/Command/DisableMasterKey.php',
12
-    'OCA\\Encryption\\Command\\DropLegacyFileKey' => $baseDir . '/../lib/Command/DropLegacyFileKey.php',
13
-    'OCA\\Encryption\\Command\\EnableMasterKey' => $baseDir . '/../lib/Command/EnableMasterKey.php',
14
-    'OCA\\Encryption\\Command\\FixEncryptedVersion' => $baseDir . '/../lib/Command/FixEncryptedVersion.php',
15
-    'OCA\\Encryption\\Command\\FixKeyLocation' => $baseDir . '/../lib/Command/FixKeyLocation.php',
16
-    'OCA\\Encryption\\Command\\RecoverUser' => $baseDir . '/../lib/Command/RecoverUser.php',
17
-    'OCA\\Encryption\\Command\\ScanLegacyFormat' => $baseDir . '/../lib/Command/ScanLegacyFormat.php',
18
-    'OCA\\Encryption\\Controller\\RecoveryController' => $baseDir . '/../lib/Controller/RecoveryController.php',
19
-    'OCA\\Encryption\\Controller\\SettingsController' => $baseDir . '/../lib/Controller/SettingsController.php',
20
-    'OCA\\Encryption\\Controller\\StatusController' => $baseDir . '/../lib/Controller/StatusController.php',
21
-    'OCA\\Encryption\\Crypto\\Crypt' => $baseDir . '/../lib/Crypto/Crypt.php',
22
-    'OCA\\Encryption\\Crypto\\DecryptAll' => $baseDir . '/../lib/Crypto/DecryptAll.php',
23
-    'OCA\\Encryption\\Crypto\\EncryptAll' => $baseDir . '/../lib/Crypto/EncryptAll.php',
24
-    'OCA\\Encryption\\Crypto\\Encryption' => $baseDir . '/../lib/Crypto/Encryption.php',
25
-    'OCA\\Encryption\\Exceptions\\MultiKeyDecryptException' => $baseDir . '/../lib/Exceptions/MultiKeyDecryptException.php',
26
-    'OCA\\Encryption\\Exceptions\\MultiKeyEncryptException' => $baseDir . '/../lib/Exceptions/MultiKeyEncryptException.php',
27
-    'OCA\\Encryption\\Exceptions\\PrivateKeyMissingException' => $baseDir . '/../lib/Exceptions/PrivateKeyMissingException.php',
28
-    'OCA\\Encryption\\Exceptions\\PublicKeyMissingException' => $baseDir . '/../lib/Exceptions/PublicKeyMissingException.php',
29
-    'OCA\\Encryption\\KeyManager' => $baseDir . '/../lib/KeyManager.php',
30
-    'OCA\\Encryption\\Listeners\\UserEventsListener' => $baseDir . '/../lib/Listeners/UserEventsListener.php',
31
-    'OCA\\Encryption\\Migration\\SetMasterKeyStatus' => $baseDir . '/../lib/Migration/SetMasterKeyStatus.php',
32
-    'OCA\\Encryption\\Recovery' => $baseDir . '/../lib/Recovery.php',
33
-    'OCA\\Encryption\\Services\\PassphraseService' => $baseDir . '/../lib/Services/PassphraseService.php',
34
-    'OCA\\Encryption\\Session' => $baseDir . '/../lib/Session.php',
35
-    'OCA\\Encryption\\Settings\\Admin' => $baseDir . '/../lib/Settings/Admin.php',
36
-    'OCA\\Encryption\\Settings\\Personal' => $baseDir . '/../lib/Settings/Personal.php',
37
-    'OCA\\Encryption\\Users\\Setup' => $baseDir . '/../lib/Users/Setup.php',
38
-    'OCA\\Encryption\\Util' => $baseDir . '/../lib/Util.php',
9
+    'Composer\\InstalledVersions' => $vendorDir.'/composer/InstalledVersions.php',
10
+    'OCA\\Encryption\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php',
11
+    'OCA\\Encryption\\Command\\DisableMasterKey' => $baseDir.'/../lib/Command/DisableMasterKey.php',
12
+    'OCA\\Encryption\\Command\\DropLegacyFileKey' => $baseDir.'/../lib/Command/DropLegacyFileKey.php',
13
+    'OCA\\Encryption\\Command\\EnableMasterKey' => $baseDir.'/../lib/Command/EnableMasterKey.php',
14
+    'OCA\\Encryption\\Command\\FixEncryptedVersion' => $baseDir.'/../lib/Command/FixEncryptedVersion.php',
15
+    'OCA\\Encryption\\Command\\FixKeyLocation' => $baseDir.'/../lib/Command/FixKeyLocation.php',
16
+    'OCA\\Encryption\\Command\\RecoverUser' => $baseDir.'/../lib/Command/RecoverUser.php',
17
+    'OCA\\Encryption\\Command\\ScanLegacyFormat' => $baseDir.'/../lib/Command/ScanLegacyFormat.php',
18
+    'OCA\\Encryption\\Controller\\RecoveryController' => $baseDir.'/../lib/Controller/RecoveryController.php',
19
+    'OCA\\Encryption\\Controller\\SettingsController' => $baseDir.'/../lib/Controller/SettingsController.php',
20
+    'OCA\\Encryption\\Controller\\StatusController' => $baseDir.'/../lib/Controller/StatusController.php',
21
+    'OCA\\Encryption\\Crypto\\Crypt' => $baseDir.'/../lib/Crypto/Crypt.php',
22
+    'OCA\\Encryption\\Crypto\\DecryptAll' => $baseDir.'/../lib/Crypto/DecryptAll.php',
23
+    'OCA\\Encryption\\Crypto\\EncryptAll' => $baseDir.'/../lib/Crypto/EncryptAll.php',
24
+    'OCA\\Encryption\\Crypto\\Encryption' => $baseDir.'/../lib/Crypto/Encryption.php',
25
+    'OCA\\Encryption\\Exceptions\\MultiKeyDecryptException' => $baseDir.'/../lib/Exceptions/MultiKeyDecryptException.php',
26
+    'OCA\\Encryption\\Exceptions\\MultiKeyEncryptException' => $baseDir.'/../lib/Exceptions/MultiKeyEncryptException.php',
27
+    'OCA\\Encryption\\Exceptions\\PrivateKeyMissingException' => $baseDir.'/../lib/Exceptions/PrivateKeyMissingException.php',
28
+    'OCA\\Encryption\\Exceptions\\PublicKeyMissingException' => $baseDir.'/../lib/Exceptions/PublicKeyMissingException.php',
29
+    'OCA\\Encryption\\KeyManager' => $baseDir.'/../lib/KeyManager.php',
30
+    'OCA\\Encryption\\Listeners\\UserEventsListener' => $baseDir.'/../lib/Listeners/UserEventsListener.php',
31
+    'OCA\\Encryption\\Migration\\SetMasterKeyStatus' => $baseDir.'/../lib/Migration/SetMasterKeyStatus.php',
32
+    'OCA\\Encryption\\Recovery' => $baseDir.'/../lib/Recovery.php',
33
+    'OCA\\Encryption\\Services\\PassphraseService' => $baseDir.'/../lib/Services/PassphraseService.php',
34
+    'OCA\\Encryption\\Session' => $baseDir.'/../lib/Session.php',
35
+    'OCA\\Encryption\\Settings\\Admin' => $baseDir.'/../lib/Settings/Admin.php',
36
+    'OCA\\Encryption\\Settings\\Personal' => $baseDir.'/../lib/Settings/Personal.php',
37
+    'OCA\\Encryption\\Users\\Setup' => $baseDir.'/../lib/Users/Setup.php',
38
+    'OCA\\Encryption\\Util' => $baseDir.'/../lib/Util.php',
39 39
 );
Please login to merge, or discard this patch.
apps/encryption/templates/settings-personal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 			<br />
26 26
 			<?php p($l->t('Set your old private key password to your current log-in password:')); ?>
27 27
 			<?php if ($_['recoveryEnabledForUser']):
28
-				p(' ' . $l->t('If you do not remember your old password you can ask your administrator to recover your files.'));
28
+				p(' '.$l->t('If you do not remember your old password you can ask your administrator to recover your files.'));
29 29
 			endif; ?>
30 30
 			<br />
31 31
 			<input
Please login to merge, or discard this patch.