Code Duplication    Length = 1-10 lines in 2 locations

api/src/Mail.php 2 locations

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