We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c452f commit 1cb355aCopy full SHA for 1cb355a
src/OutputChannel/Modifier/Filter/QueryCleanTermFilter.php
@@ -20,6 +20,8 @@ class QueryCleanTermFilter implements OutputChannelModifierFilterInterface
20
{
21
public function dispatchFilter(OutputChannelAllocatorInterface $outputChannelAllocator, array $options): string
22
23
+ $rawTerm = $options['raw_term'] ?? '';
24
+
25
return trim(
26
preg_replace(
27
'|\s{2,}|',
@@ -29,7 +31,7 @@ public function dispatchFilter(OutputChannelAllocatorInterface $outputChannelAll
29
31
' ',
30
32
strtolower(
33
strip_tags(
- str_replace("\n", ' ', $options['raw_term'])
34
+ str_replace("\n", ' ', $rawTerm)
35
)
36
37
0 commit comments