(string $value)
| 392 | } |
| 393 | |
| 394 | private function buildLikePattern(string $value): string |
| 395 | { |
| 396 | $escapedValue = $this->db->escapeLikeParameter($value); |
| 397 | if (strpbrk($value, '*?') !== false) { |
| 398 | return str_replace(['*', '?'], ['%', '_'], $escapedValue); |
| 399 | } |
| 400 | |
| 401 | return '%' . $escapedValue . '%'; |
| 402 | } |
| 403 | |
| 404 | private function getAllowedFilterColumn(string $column): ?string |
| 405 | { |
no outgoing calls
no test coverage detected