Code Duplication    Length = 5-5 lines in 2 locations

includes/admin/emails/abstract-email-notification.php 2 locations

@@ 673-677 (lines=5) @@
670
				$message = strip_tags( $message );
671
			}
672
673
			if ( Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ) {
674
				Give()->emails->form_id      = $form_id;
675
				Give()->emails->from_name    = give_get_meta( $form_id, '_give_from_name', true );
676
				Give()->emails->from_address = give_get_meta( $form_id, '_give_from_email', true );
677
			}
678
679
			return Give()->emails->send( $this->get_preview_email_recipient( $form_id ), $subject, $message, $attachments );
680
		}
@@ 747-751 (lines=5) @@
744
				$message = strip_tags( $message );
745
			}
746
747
			if ( Give_Email_Notification_Util::can_use_form_email_options( $this, $form_id ) ) {
748
				Give()->emails->form_id      = $form_id;
749
				Give()->emails->from_name    = give_get_meta( $form_id, '_give_from_name', true );
750
				Give()->emails->from_address = give_get_meta( $form_id, '_give_from_email', true );
751
			}
752
753
			// Send email.
754
			$email_status = Give()->emails->send( $this->get_recipient( $form_id ), $subject, $message, $attachments );