Code Duplication    Length = 8-8 lines in 3 locations

lib/model/imapmessage.php 3 locations

@@ 212-219 (lines=8) @@
209
	/**
210
	 * @return array
211
	 */
212
	public function getToList($assoc = false) {
213
		$e = $this->getEnvelope();
214
		if ($assoc) {
215
			return $this->convertAddressList($e->to);
216
		} else {
217
			return $this->hordeListToStringArray($e->to);
218
		}
219
	}
220
221
	public function getCCList($assoc = false) {
222
		$e = $this->getEnvelope();
@@ 221-228 (lines=8) @@
218
		}
219
	}
220
221
	public function getCCList($assoc = false) {
222
		$e = $this->getEnvelope();
223
		if ($assoc) {
224
			return $this->convertAddressList($e->cc);
225
		} else {
226
			return $this->hordeListToStringArray($e->cc);
227
		}
228
	}
229
230
	public function setCC(Horde_Mail_Rfc822_List $cc) {
231
		throw new Exception('IMAP message is immutable');
@@ 234-241 (lines=8) @@
231
		throw new Exception('IMAP message is immutable');
232
	}
233
234
	public function getBCCList($assoc = false) {
235
		$e = $this->getEnvelope();
236
		if ($assoc) {
237
			return $this->convertAddressList($e->bcc);
238
		} else {
239
			return $this->hordeListToStringArray($e->bcc);
240
		}
241
	}
242
243
	public function setBcc(Horde_Mail_Rfc822_List $bcc) {
244
		throw new Exception('IMAP message is immutable');