Code Duplication    Length = 7-8 lines in 2 locations

lib/service/unifiedmailbox.php 1 location

@@ 127-133 (lines=7) @@
124
	 * @param string $messageId
125
	 * @return array
126
	 */
127
	private function resolve($messageId) {
128
		$data = json_decode(base64_decode($messageId), true);
129
		$account = $this->accountService->find($this->userId, $data[0]);
130
		$inbox = $account->getInbox();
131
		$messageId = $data[1];
132
		return array($inbox, $messageId, $account);
133
	}
134
}
135

lib/service/unifiedaccount.php 1 location

@@ 211-218 (lines=8) @@
208
	 * @param $messageId
209
	 * @return array
210
	 */
211
	public function resolve($messageId) {
212
		$data = json_decode(base64_decode($messageId), true);
213
		$account = $this->accountService->find($this->userId, $data[0]);
214
		$inbox = $account->getInbox();
215
		$messageId = $data[1];
216
217
		return [$account, base64_encode($inbox->getFolderId()), $messageId];
218
	}
219
}
220