Code Duplication    Length = 3-3 lines in 2 locations

api/src/Mail.php 2 locations

@@ 1722-1724 (lines=3) @@
1719
					$retValue['header'][$sortOrder[$uid]] = array_merge($retValue['header'][$sortOrder[$uid]],self::prepareFlagsArray($headerObject));
1720
				}
1721
				//error_log(__METHOD__.' ('.__LINE__.') '.$headerObject['SUBJECT'].'->'.array2string($_headerObject->getEnvelope()->__get('from')));
1722
				if(is_array($headerObject['FROM']) && $headerObject['FROM'][0]) {
1723
					$retValue['header'][$sortOrder[$uid]]['sender_address'] = self::decode_header($headerObject['FROM'][0],true);
1724
				}
1725
				if(is_array($headerObject['REPLY-TO']) && $headerObject['REPLY-TO'][0]) {
1726
					$retValue['header'][$sortOrder[$uid]]['reply_to_address'] = self::decode_header($headerObject['REPLY-TO'][0],true);
1727
				}
@@ 1725-1727 (lines=3) @@
1722
				if(is_array($headerObject['FROM']) && $headerObject['FROM'][0]) {
1723
					$retValue['header'][$sortOrder[$uid]]['sender_address'] = self::decode_header($headerObject['FROM'][0],true);
1724
				}
1725
				if(is_array($headerObject['REPLY-TO']) && $headerObject['REPLY-TO'][0]) {
1726
					$retValue['header'][$sortOrder[$uid]]['reply_to_address'] = self::decode_header($headerObject['REPLY-TO'][0],true);
1727
				}
1728
				if(is_array($headerObject['TO']) && $headerObject['TO'][0]) {
1729
					$retValue['header'][$sortOrder[$uid]]['to_address'] = self::decode_header($headerObject['TO'][0],true);
1730
					if (count($headerObject['TO'])>1)