Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | /** |
||
24 | * Filters the string for use in an Apache Velocity (Java) |
||
25 | * regex string: escapes all special characters. |
||
26 | * |
||
27 | * @param string $string |
||
28 | * @return string |
||
29 | */ |
||
30 | protected function filterRegexString(string $string) : string |
||
31 | { |
||
32 | $escape = array( |
||
33 | '\\', |
||
34 | '?', |
||
35 | '.', |
||
36 | '[', |
||
59 |