Code Duplication    Length = 5-5 lines in 3 locations

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

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