Code Duplication    Length = 1-1 lines in 4 locations

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

@@ 1449-1449 (lines=1) @@
1446
		{
1447
			if ($this->debugLevel>3) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' ID to process:'.$vars['uid'].' Subject:'.$vars['subject']);
1448
			$headers[$vars['uid']] = $vars;
1449
			if ($this->debugLevel>3) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' MailID:'.$k.'->'.array2string($vars));
1450
			if (!empty($vars['deleted'])) continue; // cut of deleted messages
1451
			if ($cutoffdate && $vars['date'] < $cutoffdate) continue; // message is out of range for cutoffdate, ignore it
1452
			if ($this->debugLevel>0) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' ID to report:'.$vars['uid'].' Subject:'.$vars['subject']);
@@ 692-692 (lines=1) @@
689
					ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' gather Attachments for BodyCreation of/for MessageID:'.$uid.' found:'.count($attachments));
690
					foreach((array)$attachments as $key => $attachment)
691
					{
692
						if ($this->debugLevel>0) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' Key:'.$key.'->'.array2string($attachment));
693
						$attachmentNames .= $attachment['name']."\n";
694
						$attachmentData	= $this->mail->getAttachment($uid, $attachment['partID'],0,false,false,$folder);
695
						/*$x =*/ $mailObject->AddStringAttachment($attachmentData['attachment'], $attachment['name'], $attachment['mimeType']);
@@ 874-874 (lines=1) @@
871
			//$rawHeaders = $this->mail->getMessageRawHeader($id);
872
			// simple style
873
			// start AS12 Stuff (bodypreference === false) case = old behaviour
874
			if ($this->debugLevel>0) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__. ' for message with ID:'.$id.' with headers:'.array2string($headers));
875
876
			if ($bodypreference === false) {
877
				$bodyStruct = $this->mail->getMessageBody($id, 'only_if_no_text', '', null, true,$_folderName);
@@ 1089-1089 (lines=1) @@
1086
				//error_log(__METHOD__.__LINE__.array2string($attachments));
1087
				foreach ($attachments as $key => $attach)
1088
				{
1089
					if ($this->debugLevel>0) ZLog::Write(LOGLEVEL_DEBUG,__METHOD__.__LINE__.' Key:'.$key.'->'.array2string($attach));
1090
1091
					// pass meeting requests to calendar plugin
1092
					if (strtolower($attach['mimeType']) == 'text/calendar' && strtolower($attach['method']) == 'request' &&