Code Duplication    Length = 5-5 lines in 3 locations

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

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