Code Duplication    Length = 8-8 lines in 3 locations

_inc/lib/jetpack-wpes-query-builder/jetpack-wpes-query-parser.php 3 locations

@@ 415-422 (lines=8) @@
412
					'type' => 'phrase',
413
				) ) );
414
415
			if ( ! empty( $args['boost_query_fields'] ) ) {
416
				$this->add_query( array(
417
					'multi_match' => array(
418
						'fields' => $args['boost_query_fields'],
419
						'query' => $p,
420
						'operator' => 'and',
421
				) ), 'should' );
422
			}
423
		}
424
425
		return true;
@@ 451-458 (lines=8) @@
448
			return;
449
		}
450
451
		if ( ! empty( $args['must_query_fields'] ) ) {
452
			$this->add_query( array(
453
				'multi_match' => array(
454
					'fields' => $args['must_query_fields'],
455
					'query' => $this->current_query,
456
					'operator' => 'and',
457
			) ) );
458
		}
459
460
		if ( ! empty( $args['boost_query_fields'] ) ) {
461
			$this->add_query( array(
@@ 528-535 (lines=8) @@
525
526
		if ( ! $prefix_word ) {
527
			//Space at the end of the query, so skip using a prefix query
528
			if ( ! empty( $args['must_query_fields'] ) ) {
529
				$this->add_query( array(
530
					'multi_match' => array(
531
						'fields' => $args['must_query_fields'],
532
						'query' => $this->current_query,
533
						'operator' => 'and',
534
					) ) );
535
			}
536
537
			if ( ! empty( $args['boost_query_fields'] ) ) {
538
				$this->add_query( array(