includes/Fallbacks/IndexLookupFallbackMethod.php
Method getSearchRequest
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSearchRequest( Client $client ) {
$fixablePart = $this->queryFixer->getFixablePart();
if ( $fixablePart === null ) {
return null;
}
Method __construct
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
SearchQuery $query,
$index,
$queryTemplate,
$suggestionField,
array $queryParams,
Avoid too many return
statements within this method. Open
Open
return $search;
Avoid too many return
statements within this method. Open
Open
return $this->maybeSearchAndRewrite( $context, $this->query, $suggestedQuery );