From 2c88ed1908d3fcc7151fa3a8022256b8240fe889 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Tue, 6 Feb 2018 14:50:52 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- nntmux/SphinxSearch.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nntmux/SphinxSearch.php b/nntmux/SphinxSearch.php index ea6ca1aef..58c7cf5d0 100755 --- a/nntmux/SphinxSearch.php +++ b/nntmux/SphinxSearch.php @@ -83,7 +83,7 @@ class SphinxSearch } /** - * Escapes characters that are treated as special operators by the query language parser + * Escapes characters that are treated as special operators by the query language parser. * * @param string $string unescaped string * @@ -92,7 +92,7 @@ class SphinxSearch public function escapeString($string): string { $from = ['\\', '(', ')', '|', '-', '!', '@', '~', '"', '&', '/', '^', '$', '=']; - $to = ['\\\\', '\(', '\)', '\|', '\-', '\!', '\@', '\~', '\"', '\&', '\/', '\^', '\$', '\=']; + $to = ['\\\\', '\(', '\)', '\|', '\-', '\!', '\@', '\~', '\"', '\&', '\/', '\^', '\$', '\=']; return str_replace($from, $to, $string); }