Code Duplication    Length = 4-4 lines in 2 locations

apps/encryption/lib/keymanager.php 2 locations

@@ 133-136 (lines=4) @@
130
131
		$this->publicShareKeyId = $this->config->getAppValue('encryption',
132
			'publicShareKeyId');
133
		if (empty($this->publicShareKeyId)) {
134
			$this->publicShareKeyId = 'pubShare_' . substr(md5(time()), 0, 8);
135
			$this->config->setAppValue('encryption', 'publicShareKeyId', $this->publicShareKeyId);
136
		}
137
138
		$this->masterKeyId = $this->config->getAppValue('encryption',
139
			'masterKeyId');
@@ 140-143 (lines=4) @@
137
138
		$this->masterKeyId = $this->config->getAppValue('encryption',
139
			'masterKeyId');
140
		if (empty($this->masterKeyId)) {
141
			$this->masterKeyId = 'master_' . substr(md5(time()), 0, 8);
142
			$this->config->setAppValue('encryption', 'masterKeyId', $this->masterKeyId);
143
		}
144
145
		$this->keyId = $userSession && $userSession->isLoggedIn() ? $userSession->getUser()->getUID() : false;
146
		$this->log = $log;