Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 632-634 (lines=3) @@
629
630
			if ( is_array( $args['date'] ) ) {
631
632
				if ( ! empty( $args['date']['start'] ) ) {
633
					$args['date_query']['after'] = date( 'Y-m-d H:i:s', strtotime( $args['date']['start'] ) );
634
				}
635
636
				if ( ! empty( $args['date']['end'] ) ) {
637
					$args['date_query']['before'] = date( 'Y-m-d H:i:s', strtotime( $args['date']['end'] ) );
@@ 636-638 (lines=3) @@
633
					$args['date_query']['after'] = date( 'Y-m-d H:i:s', strtotime( $args['date']['start'] ) );
634
				}
635
636
				if ( ! empty( $args['date']['end'] ) ) {
637
					$args['date_query']['before'] = date( 'Y-m-d H:i:s', strtotime( $args['date']['end'] ) );
638
				}
639
640
			} else {
641