Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 829-831 (lines=3) @@
826
		$group_by = '';
827
828
		// Set group by.
829
		if ( ! empty( $this->args['group_by'] ) ) {
830
			$group_by = "GROUP BY {$wpdb->posts}.{$this->args['group_by']}";
831
		}
832
833
		// Set offset.
834
		if (
@@ 856-858 (lines=3) @@
853
		if ( ! empty( $this->args['count'] ) ) {
854
			$fields = "COUNT({$wpdb->posts}.ID)";
855
856
			if ( ! empty( $this->args['group_by'] ) ) {
857
				$fields = "{$wpdb->posts}.{$this->args['group_by']}, {$fields}";
858
			}
859
		}
860
861
		// Date query.