Code Duplication    Length = 5-5 lines in 3 locations

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

@@ 1431-1435 (lines=5) @@
1428
1429
			if ($this->debugLevel>1) $starttime = microtime (true);
1430
			$this->_connect($this->account);
1431
			if ($this->debugLevel>1)
1432
			{
1433
				$endtime = microtime(true) - $starttime;
1434
				ZLog::Write(LOGLEVEL_DEBUG,__METHOD__. " connect took : ".$endtime.' for account:'.$this->account);
1435
			}
1436
			$messagelist = $_filter = array();
1437
			// if not connected, any further action must fail
1438
			if (!empty($cutoffdate)) $_filter = array('status'=>array('UNDELETED'),'range'=>"SINCE",'date'=> date("d-M-Y", $cutoffdate));
@@ 1442-1446 (lines=5) @@
1439
			if ($this->debugLevel>1) $starttime = microtime (true);
1440
			$account = $_folderName = $id = null;
1441
			$this->splitID($folderid,$account,$_folderName,$id);
1442
			if ($this->debugLevel>1)
1443
			{
1444
				$endtime = microtime(true) - $starttime;
1445
				ZLog::Write(LOGLEVEL_DEBUG,__METHOD__. " splitID took : ".$endtime.' for FolderID:'.$folderid);
1446
			}
1447
			if ($this->debugLevel>1) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.' for Folder:'.$_folderName.' Filter:'.array2string($_filter).' Ids:'.array2string($_id).'/'.$id);
1448
			if ($this->debugLevel>1) $starttime = microtime (true);
1449
			$_numberOfMessages = (empty($cutoffdate)?250:99999);
@@ 1451-1455 (lines=5) @@
1448
			if ($this->debugLevel>1) $starttime = microtime (true);
1449
			$_numberOfMessages = (empty($cutoffdate)?250:99999);
1450
			$rv_messages = $this->mail->getHeaders($_folderName, $_startMessage=1, $_numberOfMessages, $_sort=0, $_reverse=false, $_filter, $_id);
1451
			if ($this->debugLevel>1)
1452
			{
1453
				$endtime = microtime(true) - $starttime;
1454
				ZLog::Write(LOGLEVEL_DEBUG,__METHOD__. " getHeaders call took : ".$endtime.' for FolderID:'.$_folderName);
1455
			}
1456
		}
1457
		if ($_id == NULL && $this->debugLevel>1)  ZLog::Write(LOGLEVEL_DEBUG,__METHOD__." found :". count($rv_messages['header']));
1458
		//ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' Result:'.array2string($rv_messages));