mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 09:05:01 +00:00
apply rules rector up to php82
This commit is contained in:
@@ -65,12 +65,12 @@ abstract class AbstractSearch implements SearchInterface
|
||||
foreach ($supportedTerms as $term) {
|
||||
if (array_key_exists($term, $terms) && '_default' !== $term) {
|
||||
$recomposed .= ' ' . $term . ':';
|
||||
$containsSpace = str_contains($terms[$term], ' ');
|
||||
$containsSpace = str_contains((string) $terms[$term], ' ');
|
||||
|
||||
if ($containsSpace) {
|
||||
$recomposed .= '"';
|
||||
}
|
||||
$recomposed .= (mb_stristr(' ', $terms[$term]) === false) ? $terms[$term] : '(' . $terms[$term] . ')';
|
||||
$recomposed .= (mb_stristr(' ', (string) $terms[$term]) === false) ? $terms[$term] : '(' . $terms[$term] . ')';
|
||||
|
||||
if ($containsSpace) {
|
||||
$recomposed .= '"';
|
||||
|
Reference in New Issue
Block a user