Code Duplication    Length = 1-10 lines in 2 locations

api/src/Mail.php 2 locations

@@ 703-703 (lines=1) @@
700
				//error_log(__METHOD__.' ('.__LINE__.') '.':'.$ik.'->'.array2string($ident));
701
				$identity = Mail\Account::read_identity($ik,$resolve_placeholders);
702
				//error_log(__METHOD__.' ('.__LINE__.') '.':'.$ik.'->'.array2string($identity));
703
				if (!isset($userEMailAdresses[$identity['ident_id']])) $userEMailAdresses[$identity['ident_id']] = array('acc_id'=>$acc_id,'ident_id'=>$identity['ident_id'],'ident_email'=>$identity['ident_email'],'ident_org'=>$identity['ident_org'],'ident_realname'=>$identity['ident_realname'],'ident_signature'=>$identity['ident_signature'],'ident_name'=>$identity['ident_name']);
704
			}
705
		}
706
		//error_log(__METHOD__.' ('.__LINE__.') '.array2string($userEMailAdresses));
@@ 729-738 (lines=10) @@
726
			//error_log(__METHOD__.' ('.__LINE__.') '.':'.$ik.'->'.array2string($identity));
727
			// standardIdentity has ident_id==acc_id (as it is done within account->identities)
728
			if (empty($identity['ident_id'])) $identity['ident_id'] = $identity['acc_id'];
729
			if (!isset($userEMailAdresses[$identity['ident_id']]))
730
			{
731
				$userEMailAdresses[$identity['ident_id']] = array('acc_id'=>$identity['acc_id'],
732
																'ident_id'=>$identity['ident_id'],
733
																'ident_email'=>$identity['ident_email'],
734
																'ident_org'=>$identity['ident_org'],
735
																'ident_realname'=>$identity['ident_realname'],
736
																'ident_signature'=>$identity['ident_signature'],
737
																'ident_name'=>$identity['ident_name']);
738
			}
739
		}
740
741
		return $userEMailAdresses;