Code Duplication    Length = 8-11 lines in 2 locations

admin_pages/registrations/EE_Attendee_Contact_List_Table.class.php 1 location

@@ 110-117 (lines=8) @@
107
108
109
110
	function column_ATT_lname($item) {
111
112
		// edit attendee link
113
		$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'edit_attendee', 'post'=>$item->ID() ), REG_ADMIN_URL );
114
		$name_link = EE_Registry::instance()->CAP->current_user_can( 'ee_edit_contacts', 'espresso_registrations_edit_attendee' ) ?  '<a href="'.$edit_lnk_url.'" title="' . esc_attr__( 'Edit Contact', 'event_espresso' ) . '">' . $item->lname() . '</a>' : $item->lname();
115
		return $name_link;
116
117
	}
118
119
120

caffeinated/admin/extend/events/Extend_Events_Admin_Page.core.php 1 location

@@ 389-399 (lines=11) @@
386
387
388
389
	public function extra_list_table_actions( $actionlinks, $event ) {
390
		if ( EE_Registry::instance()->CAP->current_user_can( 'ee_read_registrations', 'espresso_registrations_reports', $event->ID() ) ) {
391
			$reports_query_args = array(
392
					'action' => 'reports',
393
					'EVT_ID' => $event->ID()
394
				);
395
			$reports_link = EE_Admin_Page::add_query_args_and_nonce( $reports_query_args, REG_ADMIN_URL );
396
			$actionlinks[] = '<a href="' . $reports_link . '" title="' .  esc_attr__('View Report', 'event_espresso') . '"><div class="dashicons dashicons-chart-bar"></div></a>' . "\n\t";
397
		}
398
		return $actionlinks;
399
	}
400
401
402