Code Duplication    Length = 7-8 lines in 2 locations

lib/service/unifiedmailbox.php 1 location

@@ 148-154 (lines=7) @@
145
	 * @param string $messageId
146
	 * @return array
147
	 */
148
	private function resolve($messageId) {
149
		$data = json_decode(base64_decode($messageId), true);
150
		$account = $this->accountService->find($this->userId, $data[0]);
151
		$inbox = $account->getInbox();
152
		$messageId = $data[1];
153
		return array($inbox, $messageId, $account);
154
	}
155
}
156

lib/service/unifiedaccount.php 1 location

@@ 230-237 (lines=8) @@
227
	 * @param string $messageId
228
	 * @return array
229
	 */
230
	public function resolve($messageId) {
231
		$data = json_decode(base64_decode($messageId), true);
232
		$account = $this->accountService->find($this->userId, $data[0]);
233
		$inbox = $account->getInbox();
234
		$messageId = $data[1];
235
236
		return [$account, base64_encode($inbox->getFolderId()), $messageId];
237
	}
238
}
239