(string $value)
| 411 | } |
| 412 | |
| 413 | private function buildLikePattern(string $value): string |
| 414 | { |
| 415 | $escapedValue = $this->db->escapeLikeParameter($value); |
| 416 | if (strpbrk($value, '*?') !== false) { |
| 417 | return str_replace(['*', '?'], ['%', '_'], $escapedValue); |
| 418 | } |
| 419 | |
| 420 | return '%' . $escapedValue . '%'; |
| 421 | } |
| 422 | |
| 423 | private function getAllowedFilterColumn(string $column): ?string |
| 424 | { |
no outgoing calls
no test coverage detected