Code Duplication    Length = 3-3 lines in 2 locations

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

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