Code Duplication    Length = 7-7 lines in 2 locations

includes/payments/class-give-donation-stats.php 2 locations

@@ 389-395 (lines=7) @@
386
	 *
387
	 * @return stdClass
388
	 */
389
	public function get_refund_count( $query = array() ) {
390
		$query['status'] = isset( $query['status'] )
391
			? $query['status']
392
			: array( 'refunded' );
393
394
		return $this->get_sales( $query );
395
	}
396
397
	/**
398
	 * Calculate amount of refunded donations.
@@ 407-413 (lines=7) @@
404
	 *
405
	 * @return stdClass
406
	 */
407
	public function get_refund( $query = array() ) {
408
		$query['status'] = isset( $query['status'] )
409
			? $query['status']
410
			: array( 'refunded' );
411
412
		return $this->get_earnings( $query );
413
	}
414
415
	/**
416
	 *  Set meta query