From a56cb63eca07418488db7e070727776272499a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Fri, 16 Sep 2022 19:46:06 +0200 Subject: [PATCH] CustomerRepository: Fix coding standard. --- src/Entity/CustomerRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/CustomerRepository.php b/src/Entity/CustomerRepository.php index b7248dc..15113ca 100644 --- a/src/Entity/CustomerRepository.php +++ b/src/Entity/CustomerRepository.php @@ -70,7 +70,7 @@ public function getFeed(?string $query = null, int $limit = 128): array foreach (explode(' ', $query) as $key => $queryPart) { $param = sprintf('query_%s', $key); $rules = array_map( - static fn (string $col): string => sprintf('customer.%s LIKE :%s', $col, $param), + static fn(string $col): string => sprintf('customer.%s LIKE :%s', $col, $param), ['firstName', 'lastName', 'email', 'phone'], ); $selector->andWhere(implode(' OR ', $rules));