Code Duplication    Length = 8-8 lines in 3 locations

includes/wpinv-email-functions.php 3 locations

@@ 1152-1159 (lines=8) @@
1149
    return apply_filters( 'wpinv_email_recipient', $recipient, $email_type, $invoice_id, $invoice );
1150
}
1151
1152
function wpinv_email_get_subject( $email_type = '', $invoice_id = 0, $invoice = array() ) {
1153
    $subject    = wpinv_get_option( 'email_' . $email_type . '_subject' );
1154
    $subject    = __( $subject, 'invoicing' );
1155
1156
    $subject    = wpinv_email_format_text( $subject, $invoice );
1157
1158
    return apply_filters( 'wpinv_email_subject', $subject, $email_type, $invoice_id, $invoice );
1159
}
1160
1161
function wpinv_email_get_heading( $email_type = '', $invoice_id = 0, $invoice = array() ) {
1162
    $email_heading = wpinv_get_option( 'email_' . $email_type . '_heading' );
@@ 1161-1168 (lines=8) @@
1158
    return apply_filters( 'wpinv_email_subject', $subject, $email_type, $invoice_id, $invoice );
1159
}
1160
1161
function wpinv_email_get_heading( $email_type = '', $invoice_id = 0, $invoice = array() ) {
1162
    $email_heading = wpinv_get_option( 'email_' . $email_type . '_heading' );
1163
    $email_heading = __( $email_heading, 'invoicing' );
1164
1165
    $email_heading = wpinv_email_format_text( $email_heading, $invoice );
1166
1167
    return apply_filters( 'wpinv_email_heading', $email_heading, $email_type, $invoice_id, $invoice );
1168
}
1169
1170
function wpinv_email_get_content( $email_type = '', $invoice_id = 0, $invoice = array() ) {
1171
    $content    = wpinv_get_option( 'email_' . $email_type . '_body' );
@@ 1170-1177 (lines=8) @@
1167
    return apply_filters( 'wpinv_email_heading', $email_heading, $email_type, $invoice_id, $invoice );
1168
}
1169
1170
function wpinv_email_get_content( $email_type = '', $invoice_id = 0, $invoice = array() ) {
1171
    $content    = wpinv_get_option( 'email_' . $email_type . '_body' );
1172
    $content    = __( $content, 'invoicing' );
1173
1174
    $content    = wpinv_email_format_text( $content, $invoice );
1175
1176
    return apply_filters( 'wpinv_email_content', $content, $email_type, $invoice_id, $invoice );
1177
}
1178
1179
function wpinv_email_get_headers( $email_type = '', $invoice_id = 0, $invoice = array() ) {
1180
    $from_name = wpinv_mail_get_from_address();