Code Duplication    Length = 7-8 lines in 2 locations

lib/service/unifiedaccount.php 1 location

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

lib/service/unifiedmailbox.php 1 location

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