Code Duplication    Length = 3-3 lines in 2 locations

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

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