Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 452-460 (lines=9) @@
449
			) ) );
450
		}
451
452
		if ( !empty( $args['boost_query_fields'] ) ) {
453
			$this->add_query( array(
454
				'multi_match' => array(
455
					'fields' => $args['boost_query_fields'],
456
					'query' => $this->current_query,
457
					'operator' => $args['boost_operator'],
458
					'type' => $args['boost_query_type'],
459
			) ), 'should' );
460
		}
461
462
	}
463
@@ 526-534 (lines=9) @@
523
					) ) );
524
			}
525
526
			if ( !empty( $args['boost_query_fields'] ) ) {
527
				$this->add_query( array(
528
					'multi_match' => array(
529
						'fields' => $args['boost_query_fields'],
530
						'query' => $this->current_query,
531
						'operator' => $args['boost_operator'],
532
						'type' => $args['boost_query_type'],
533
					) ), 'should' );
534
			}
535
		} else {
536
537
			//must match the prefix word and the prefix remainder