Code Duplication    Length = 5-5 lines in 2 locations

src/wp-includes/class-wp-meta-query.php 1 location

@@ 143-147 (lines=5) @@
140
		if ( !$meta_query )
141
			return;
142
143
		if ( isset( $meta_query['relation'] ) && strtoupper( $meta_query['relation'] ) == 'OR' ) {
144
			$this->relation = 'OR';
145
		} else {
146
			$this->relation = 'AND';
147
		}
148
149
		$this->queries = $this->sanitize_query( $meta_query );
150
	}

src/wp-includes/date.php 1 location

@@ 154-158 (lines=5) @@
151
	 *                              'comment_date', 'comment_date_gmt'.
152
	 */
153
	public function __construct( $date_query, $default_column = 'post_date' ) {
154
		if ( isset( $date_query['relation'] ) && 'OR' === strtoupper( $date_query['relation'] ) ) {
155
			$this->relation = 'OR';
156
		} else {
157
			$this->relation = 'AND';
158
		}
159
160
		if ( ! is_array( $date_query ) ) {
161
			return;