Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 339-347 (lines=9) @@
336
			// Prevent extra meta query.
337
			$qv['blog_id'] = $blog_id = 0;
338
339
			if ( empty( $this->meta_query->queries ) ) {
340
				$this->meta_query->queries = array( $who_query );
341
			} else {
342
				// Append the cap query to the original queries and reparse the query.
343
				$this->meta_query->queries = array(
344
					'relation' => 'AND',
345
					array( $this->meta_query->queries, $who_query ),
346
				);
347
			}
348
349
			$this->meta_query->parse_query_vars( $this->meta_query->queries );
350
		}
@@ 424-432 (lines=9) @@
421
			// Specify that role queries should be joined with AND.
422
			$role_queries['relation'] = 'AND';
423
424
			if ( empty( $this->meta_query->queries ) ) {
425
				$this->meta_query->queries = $role_queries;
426
			} else {
427
				// Append the cap query to the original queries and reparse the query.
428
				$this->meta_query->queries = array(
429
					'relation' => 'AND',
430
					array( $this->meta_query->queries, $role_queries ),
431
				);
432
			}
433
434
			$this->meta_query->parse_query_vars( $this->meta_query->queries );
435
		}