Code Duplication    Length = 3-3 lines in 2 locations

includes/payments/class-payments-query.php 2 locations

@@ 772-774 (lines=3) @@
769
		$group_by = '';
770
771
		// Set group by.
772
		if ( ! empty( $this->args['group_by'] ) ) {
773
			$group_by = "GROUP BY {$wpdb->posts}.{$this->args['group_by']}";
774
		}
775
776
		// Set offset.
777
		if (
@@ 799-801 (lines=3) @@
796
		if ( ! empty( $this->args['count'] ) ) {
797
			$fields = "COUNT({$wpdb->posts}.ID)";
798
799
			if ( ! empty( $this->args['group_by'] ) ) {
800
				$fields = "{$wpdb->posts}.{$this->args['group_by']}, {$fields}";
801
			}
802
		}
803
804
		// Date query.