Code Duplication    Length = 1-5 lines in 2 locations

mail/inc/class.mail_zpush.inc.php 2 locations

@@ 267-267 (lines=1) @@
264
			// todo: tell mail which account to use
265
			//error_log(__METHOD__.__LINE__.' create object with ProfileID:'.array2string(self::$profileID));
266
			$this->mail = Mail::getInstance(false,self::$profileID,true,false,true);
267
			if (self::$profileID == 0 && isset($this->mail->icServer->ImapServerId) && !empty($this->mail->icServer->ImapServerId)) self::$profileID = $this->mail->icServer->ImapServerId;
268
		}
269
		else
270
		{
@@ 269-273 (lines=5) @@
266
			$this->mail = Mail::getInstance(false,self::$profileID,true,false,true);
267
			if (self::$profileID == 0 && isset($this->mail->icServer->ImapServerId) && !empty($this->mail->icServer->ImapServerId)) self::$profileID = $this->mail->icServer->ImapServerId;
268
		}
269
		else
270
		{
271
			//error_log(__METHOD__.__LINE__." connect with profileID: ".self::$profileID);
272
			if (self::$profileID == 0 && isset($this->mail->icServer->ImapServerId) && !empty($this->mail->icServer->ImapServerId)) self::$profileID = $this->mail->icServer->ImapServerId;
273
		}
274
		$this->mail->openConnection(self::$profileID,false);
275
276
		$this->_wasteID = $this->mail->getTrashFolder(false);