Code Duplication    Length = 8-11 lines in 2 locations

includes/admin/reports/class-donor-reports-table.php 1 location

@@ 232-239 (lines=8) @@
229
	 * @since  1.0
230
	 * @return array Array of all the sortable columns
231
	 */
232
	public function get_sortable_columns() {
233
		return array(
234
			'id'            => array( 'id', true ),
235
			'name'          => array( 'name', true ),
236
			'num_donations' => array( 'purchase_count', false ),
237
			'amount_spent'  => array( 'purchase_value', false ),
238
		);
239
	}
240
241
	/**
242
	 * Outputs the reporting views

includes/admin/donors/class-donor-table.php 1 location

@@ 209-219 (lines=11) @@
206
	 * @since  2.1
207
	 * @return array Array of all the sortable columns.
208
	 */
209
	public function get_sortable_columns() {
210
211
		$columns = array(
212
			'date_created'  => array( 'date_created', true ),
213
			'name'          => array( 'name', true ),
214
			'num_donations' => array( 'purchase_count', false ),
215
			'amount_spent'  => array( 'purchase_value', false ),
216
		);
217
218
		return apply_filters( 'give_list_donors_sortable_columns', $columns );
219
	}
220
221
	/**
222
	 * Retrieve row actions.