Code Duplication    Length = 4-4 lines in 2 locations

classes/helpers/FrmEntriesListHelper.php 1 location

@@ 255-258 (lines=4) @@
252
    private function get_actions( &$actions, $item, $view_link ) {
253
		$actions['view'] = '<a href="' . esc_url( $view_link ) . '">' . __( 'View', 'formidable' ) . '</a>';
254
255
		if ( current_user_can( 'frm_delete_entries' ) ) {
256
			$delete_link = '?page=formidable-entries&frm_action=destroy&id=' . $item->id . '&form=' . $this->params['form'];
257
			$actions['delete'] = '<a href="' . esc_url( wp_nonce_url( $delete_link ) ) . '" class="submitdelete" data-frmverify="' . esc_attr__( 'Are you sure?', 'formidable' ) . '">' . __( 'Delete', 'formidable' ) . '</a>';
258
	    }
259
260
		$actions = apply_filters( 'frm_row_actions', $actions, $item );
261
    }

classes/helpers/FrmFormsListHelper.php 1 location

@@ 280-283 (lines=4) @@
277
			return;
278
		}
279
280
		if ( current_user_can( 'frm_edit_forms' ) ) {
281
			$actions['frm_edit'] = '<a href="' . esc_url( $edit_link ) . '">' . __( 'Edit', 'formidable' ) . '</a>';
282
			$actions['frm_settings'] = '<a href="' . esc_url( '?page=formidable&frm_action=settings&id=' . $item->id ) . '">' . __( 'Settings', 'formidable' ) . '</a>';
283
		}
284
285
		$actions = array_merge( $actions, $new_actions );
286
		$actions['view'] = '<a href="' . esc_url( FrmFormsHelper::get_direct_link( $item->form_key, $item ) ) . '" target="_blank">' . __( 'Preview', 'formidable' ) . '</a>';