Code Duplication    Length = 8-9 lines in 2 locations

src/wp-includes/class-wp-query.php 2 locations

@@ 1138-1145 (lines=8) @@
1135
					$cat_not_in[] = abs( $cat );
1136
			}
1137
1138
			if ( ! empty( $cat_in ) ) {
1139
				$tax_query[] = array(
1140
					'taxonomy' => 'category',
1141
					'terms' => $cat_in,
1142
					'field' => 'term_id',
1143
					'include_children' => true
1144
				);
1145
			}
1146
1147
			if ( ! empty( $cat_not_in ) ) {
1148
				$tax_query[] = array(
@@ 1147-1155 (lines=9) @@
1144
				);
1145
			}
1146
1147
			if ( ! empty( $cat_not_in ) ) {
1148
				$tax_query[] = array(
1149
					'taxonomy' => 'category',
1150
					'terms' => $cat_not_in,
1151
					'field' => 'term_id',
1152
					'operator' => 'NOT IN',
1153
					'include_children' => true
1154
				);
1155
			}
1156
			unset( $cat_array, $cat_in, $cat_not_in );
1157
		}
1158