From d2b388816940aa090ae8da621caf2aa17a5411be Mon Sep 17 00:00:00 2001 From: j3nsch Date: Fri, 13 Jan 2023 14:30:08 +0100 Subject: [PATCH] #977 Fix coding style --- library/Application/View/Helper/Highlight.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Application/View/Helper/Highlight.php b/library/Application/View/Helper/Highlight.php index 6abe4ac33..396adbb53 100644 --- a/library/Application/View/Helper/Highlight.php +++ b/library/Application/View/Helper/Highlight.php @@ -58,6 +58,6 @@ public function highlight($subject, $needle, $prefix = null, $suffix = null) $quotedNeedle = preg_quote($needle, '/'); - return preg_replace("/($quotedNeedle)/i", "$prefix$0$suffix", $subject); // TODO BUG? $0 + return preg_replace("/($quotedNeedle)/i", $prefix . '$0' . $suffix, $subject); } }