From 96b1854fef386fe6d0f2c80d205a234ff0b28fff Mon Sep 17 00:00:00 2001 From: nobohan Date: Tue, 15 Feb 2022 13:57:02 +0100 Subject: [PATCH] php code style fix --- .../ChillThirdPartyBundle/Search/ThirdPartyApiSearch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillThirdPartyBundle/Search/ThirdPartyApiSearch.php b/src/Bundle/ChillThirdPartyBundle/Search/ThirdPartyApiSearch.php index a50d35cf2..e4b7f43af 100644 --- a/src/Bundle/ChillThirdPartyBundle/Search/ThirdPartyApiSearch.php +++ b/src/Bundle/ChillThirdPartyBundle/Search/ThirdPartyApiSearch.php @@ -93,10 +93,10 @@ class ThirdPartyApiSearch implements SearchApiInterface parent.canonicalized LIKE '%' || LOWER(UNACCENT(?)) || '%') "; $whereArgs[] = [$str, $str, $str, $str]; - $pertinence[] = "GREATEST( + $pertinence[] = 'GREATEST( STRICT_WORD_SIMILARITY(LOWER(UNACCENT(?)), tparty.canonicalized), STRICT_WORD_SIMILARITY(LOWER(UNACCENT(?)), parent.canonicalized) - ) + " . + ) + ' . "GREATEST( (tparty.canonicalized LIKE '%s' || LOWER(UNACCENT(?)) || '%')::int, (parent.canonicalized LIKE '%s' || LOWER(UNACCENT(?)) || '%')::int