php code style fix

This commit is contained in:
nobohan 2022-02-15 13:57:02 +01:00
parent 489473806f
commit 96b1854fef

View File

@ -93,10 +93,10 @@ class ThirdPartyApiSearch implements SearchApiInterface
parent.canonicalized LIKE '%' || LOWER(UNACCENT(?)) || '%') parent.canonicalized LIKE '%' || LOWER(UNACCENT(?)) || '%')
"; ";
$whereArgs[] = [$str, $str, $str, $str]; $whereArgs[] = [$str, $str, $str, $str];
$pertinence[] = "GREATEST( $pertinence[] = 'GREATEST(
STRICT_WORD_SIMILARITY(LOWER(UNACCENT(?)), tparty.canonicalized), STRICT_WORD_SIMILARITY(LOWER(UNACCENT(?)), tparty.canonicalized),
STRICT_WORD_SIMILARITY(LOWER(UNACCENT(?)), parent.canonicalized) STRICT_WORD_SIMILARITY(LOWER(UNACCENT(?)), parent.canonicalized)
) + " . ) + ' .
"GREATEST( "GREATEST(
(tparty.canonicalized LIKE '%s' || LOWER(UNACCENT(?)) || '%')::int, (tparty.canonicalized LIKE '%s' || LOWER(UNACCENT(?)) || '%')::int,
(parent.canonicalized LIKE '%s' || LOWER(UNACCENT(?)) || '%')::int (parent.canonicalized LIKE '%s' || LOWER(UNACCENT(?)) || '%')::int