(string $value)
| 423 | } |
| 424 | |
| 425 | private function buildLikePattern(string $value): string |
| 426 | { |
| 427 | $escapedValue = $this->db->escapeLikeParameter($value); |
| 428 | if (strpbrk($value, '*?') !== false) { |
| 429 | return str_replace(['*', '?'], ['%', '_'], $escapedValue); |
| 430 | } |
| 431 | |
| 432 | return '%' . $escapedValue . '%'; |
| 433 | } |
| 434 | |
| 435 | private function getAllowedFilterColumn(string $column): ?string |
| 436 | { |
no outgoing calls
no test coverage detected