Code Duplication    Length = 3-3 lines in 2 locations

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

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