Code Duplication    Length = 11-16 lines in 2 locations

admin_pages/registrations/Registrations_Admin_Page.core.php 1 location

@@ 928-938 (lines=11) @@
925
                'desc'  => esc_html__('View Transaction Invoice', 'event_espresso'),
926
            ),
927
        );
928
        if (EE_Registry::instance()->CAP->current_user_can(
929
            'ee_send_message',
930
            'espresso_registrations_resend_registration'
931
        )) {
932
            $fc_items['resend_registration'] = array(
933
                'class' => 'dashicons dashicons-email-alt',
934
                'desc'  => esc_html__('Resend Registration Details', 'event_espresso'),
935
            );
936
        } else {
937
            $fc_items['blank'] = array('class' => 'blank', 'desc' => '');
938
        }
939
        if (EE_Registry::instance()->CAP->current_user_can(
940
            'ee_read_global_messages',
941
            'view_filtered_messages'

admin_pages/transactions/Transactions_Admin_Page.core.php 1 location

@@ 568-583 (lines=16) @@
565
            )
566
        );
567
568
        if (EEH_MSG_Template::is_mt_active('payment_reminder')
569
            && EE_Registry::instance()->CAP->current_user_can(
570
                'ee_send_message',
571
                'espresso_transactions_send_payment_reminder'
572
            )
573
        ) {
574
            $items['send_payment_reminder'] = array(
575
                'class' => 'dashicons dashicons-email-alt',
576
                'desc'  => esc_html__('Send Payment Reminder', 'event_espresso'),
577
            );
578
        } else {
579
            $items['blank*'] = array(
580
                'class' => '',
581
                'desc'  => '',
582
            );
583
        }
584
        $more_items = apply_filters(
585
            'FHEE__Transactions_Admin_Page___transaction_legend_items__more_items',
586
            array(