Code Duplication    Length = 5-5 lines in 3 locations

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

@@ 1414-1418 (lines=5) @@
1411
1412
			if ($this->debugLevel>1) $starttime = microtime (true);
1413
			$this->_connect($this->account);
1414
			if ($this->debugLevel>1)
1415
			{
1416
				$endtime = microtime(true) - $starttime;
1417
				ZLog::Write(LOGLEVEL_DEBUG,__METHOD__. " connect took : ".$endtime.' for account:'.$this->account);
1418
			}
1419
			$messagelist = $_filter = array();
1420
			// if not connected, any further action must fail
1421
			if (!empty($cutoffdate)) $_filter = array('status'=>array('UNDELETED'),'range'=>"SINCE",'date'=> date("d-M-Y", $cutoffdate));
@@ 1425-1429 (lines=5) @@
1422
			if ($this->debugLevel>1) $starttime = microtime (true);
1423
			$account = $_folderName = $id = null;
1424
			$this->splitID($folderid,$account,$_folderName,$id);
1425
			if ($this->debugLevel>1)
1426
			{
1427
				$endtime = microtime(true) - $starttime;
1428
				ZLog::Write(LOGLEVEL_DEBUG,__METHOD__. " splitID took : ".$endtime.' for FolderID:'.$folderid);
1429
			}
1430
			if ($this->debugLevel>1) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.' for Folder:'.$_folderName.' Filter:'.array2string($_filter).' Ids:'.array2string($_id).'/'.$id);
1431
			if ($this->debugLevel>1) $starttime = microtime (true);
1432
			$_numberOfMessages = (empty($cutoffdate)?250:99999);
@@ 1434-1438 (lines=5) @@
1431
			if ($this->debugLevel>1) $starttime = microtime (true);
1432
			$_numberOfMessages = (empty($cutoffdate)?250:99999);
1433
			$rv_messages = $this->mail->getHeaders($_folderName, $_startMessage=1, $_numberOfMessages, $_sort=0, $_reverse=false, $_filter, $_id);
1434
			if ($this->debugLevel>1)
1435
			{
1436
				$endtime = microtime(true) - $starttime;
1437
				ZLog::Write(LOGLEVEL_DEBUG,__METHOD__. " getHeaders call took : ".$endtime.' for FolderID:'.$_folderName);
1438
			}
1439
		}
1440
		if ($_id == NULL && $this->debugLevel>1)  ZLog::Write(LOGLEVEL_DEBUG,__METHOD__." found :". count($rv_messages['header']));
1441
		//ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' Result:'.array2string($rv_messages));