Passed
Push — master ( 361a9c...325d59 )
by
unknown
04:25
created
src/Manticoresearch/Utils.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
 {
8 8
     public static function escape($string): string
9 9
     {
10
-        $from = ['\\', '\\\'', '(',')','|','-','!','@','~','"','&', '/', '^', '$', '=', '<'];
11
-        $to = ['\\\\', "'", '\(','\)','\|','\-','\!','\@','\~','\"', '\&', '\/', '\^', '\$', '\=', '\<'];
10
+        $from = ['\\', '\\\'', '(', ')', '|', '-', '!', '@', '~', '"', '&', '/', '^', '$', '=', '<'];
11
+        $to = ['\\\\', "'", '\(', '\)', '\|', '\-', '\!', '\@', '\~', '\"', '\&', '\/', '\^', '\$', '\=', '\<'];
12 12
         return str_replace($from, $to, $string);
13 13
     }
14 14
 }
Please login to merge, or discard this patch.