Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 808-810 (lines=3) @@
805
		$group_by = '';
806
807
		// Set group by.
808
		if ( ! empty( $this->args['group_by'] ) ) {
809
			$group_by = "GROUP BY {$wpdb->posts}.{$this->args['group_by']}";
810
		}
811
812
		// Set offset.
813
		if (
@@ 835-837 (lines=3) @@
832
		if ( ! empty( $this->args['count'] ) ) {
833
			$fields = "COUNT({$wpdb->posts}.ID)";
834
835
			if ( ! empty( $this->args['group_by'] ) ) {
836
				$fields = "{$wpdb->posts}.{$this->args['group_by']}, {$fields}";
837
			}
838
		}
839
840
		// Date query.