Code Duplication    Length = 13-13 lines in 2 locations

core/services/payment_methods/gateways/GatewayDataFormatter.php 2 locations

@@ 44-56 (lines=13) @@
41
     * @param \EEI_Payment $payment
42
     * @return string
43
     */
44
    public function formatPartialPaymentLineItemDesc(\EEI_Payment $payment)
45
    {
46
        return apply_filters(
47
            'FHEE__EE_Gateway___partial_payment_desc',
48
            sprintf(
49
                __("Payment of %s for %s", "event_espresso"),
50
                $payment->get_pretty('PAY_amount', 'no_currency_code'),
51
                $payment->get_first_event_name()
52
            ),
53
            $this,
54
            $payment
55
        );
56
    }
57
58
59
@@ 110-122 (lines=13) @@
107
     * @param \EEI_Payment $payment
108
     * @return string
109
     */
110
    public function formatOrderDescription(\EEI_Payment $payment)
111
    {
112
        return apply_filters(
113
            'FHEE__EE_Gateway___order_description',
114
            sprintf(
115
                __('Event Registrations from %1$s for %2$s', "event_espresso"),
116
                get_bloginfo('name'),
117
                $payment->get_first_event_name()
118
            ),
119
            $this,
120
            $payment
121
        );
122
    }
123
124
125