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

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