Code Duplication    Length = 5-5 lines in 2 locations

lib/private/Encryption/DecryptAll.php 2 locations

@@ 99-103 (lines=5) @@
96
		}
97
98
		$this->output->writeln('prepare encryption modules...');
99
		if (\OC::$server->getAppConfig()->getValue('encryption', 'useMasterKey', '0') !== '0') {
100
			if ($this->prepareEncryptionModules($user) === false) {
101
				return false;
102
			}
103
		}
104
		$this->output->writeln(' done.');
105
106
		$this->decryptAllUsersFiles($user);
@@ 194-198 (lines=5) @@
191
		$userNo = 1;
192
		foreach ($userList as $uid) {
193
			$userCount = "$uid ($userNo of $numberOfUsers)";
194
			if (\OC::$server->getAppConfig()->getValue('encryption', 'userSpecificKey', '0') !== '0') {
195
				if ($this->prepareEncryptionModules($uid) === false) {
196
					return false;
197
				}
198
			}
199
			$this->decryptUsersFiles($uid, $progress, $userCount);
200
			$userNo++;
201
		}