Skip to content

Commit

Permalink
CustomerRepository: Fix coding standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Sep 16, 2022
1 parent 633d3e7 commit a56cb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/CustomerRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit a56cb63

Please sign in to comment.