Code Duplication    Length = 3-3 lines in 2 locations

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

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