Code Duplication    Length = 3-3 lines in 2 locations

wp-includes/date.php 2 locations

@@ 747-749 (lines=3) @@
744
		}
745
746
		// Range queries.
747
		if ( ! empty( $query['after'] ) ) {
748
			$where_parts[] = $this->db->prepare( "$column $gt %s", $this->build_mysql_datetime( $query['after'], ! $inclusive ) );
749
		}
750
		if ( ! empty( $query['before'] ) ) {
751
			$where_parts[] = $this->db->prepare( "$column $lt %s", $this->build_mysql_datetime( $query['before'], $inclusive ) );
752
		}
@@ 750-752 (lines=3) @@
747
		if ( ! empty( $query['after'] ) ) {
748
			$where_parts[] = $this->db->prepare( "$column $gt %s", $this->build_mysql_datetime( $query['after'], ! $inclusive ) );
749
		}
750
		if ( ! empty( $query['before'] ) ) {
751
			$where_parts[] = $this->db->prepare( "$column $lt %s", $this->build_mysql_datetime( $query['before'], $inclusive ) );
752
		}
753
		// Specific value queries.
754
755
		if ( isset( $query['year'] ) && $value = $this->build_value( $compare, $query['year'] ) )