Code Duplication    Length = 3-3 lines in 2 locations

includes/class-give-db-donors.php 2 locations

@@ 623-625 (lines=3) @@
620
621
			if ( is_array( $args['date'] ) ) {
622
623
				if ( ! empty( $args['date']['start'] ) ) {
624
					$args['date_query']['after'] = date( 'Y-m-d H:i:s', strtotime( $args['date']['start'] ) );
625
				}
626
627
				if ( ! empty( $args['date']['end'] ) ) {
628
					$args['date_query']['before'] = date( 'Y-m-d H:i:s', strtotime( $args['date']['end'] ) );
@@ 627-629 (lines=3) @@
624
					$args['date_query']['after'] = date( 'Y-m-d H:i:s', strtotime( $args['date']['start'] ) );
625
				}
626
627
				if ( ! empty( $args['date']['end'] ) ) {
628
					$args['date_query']['before'] = date( 'Y-m-d H:i:s', strtotime( $args['date']['end'] ) );
629
				}
630
631
			} else {
632