Code Duplication    Length = 8-8 lines in 3 locations

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

@@ 408-415 (lines=8) @@
405
					'type' => 'phrase',
406
				) ) );
407
408
			if ( !empty( $args['boost_query_fields'] ) ) {
409
				$this->add_query( array(
410
					'multi_match' => array(
411
						'fields' => $args['boost_query_fields'],
412
						'query' => $p,
413
						'operator' => 'and',
414
				) ), 'should' );
415
			}
416
		}
417
418
		return true;
@@ 443-450 (lines=8) @@
440
		if ( empty( $this->current_query ) || ctype_space( $this->current_query ) )
441
			return;
442
443
		if ( !empty( $args['must_query_fields'] ) ) {
444
			$this->add_query( array(
445
				'multi_match' => array(
446
					'fields' => $args['must_query_fields'],
447
					'query' => $this->current_query,
448
					'operator' => 'and',
449
			) ) );
450
		}
451
452
		if ( !empty( $args['boost_query_fields'] ) ) {
453
			$this->add_query( array(
@@ 517-524 (lines=8) @@
514
515
		if ( !$prefix_word ) {
516
			//Space at the end of the query, so skip using a prefix query
517
			if ( !empty( $args['must_query_fields'] ) ) {
518
				$this->add_query( array(
519
					'multi_match' => array(
520
						'fields' => $args['must_query_fields'],
521
						'query' => $this->current_query,
522
						'operator' => 'and',
523
					) ) );
524
			}
525
526
			if ( !empty( $args['boost_query_fields'] ) ) {
527
				$this->add_query( array(