Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
daVitekPL committed Dec 5, 2024
1 parent d571655 commit 1255cae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Domain/Manufacturer/Criteria/ManufacturerSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ public function query(Builder $query): Builder
{
return $query->where(
fn (Builder $query) => $query
// @phpstan-ignore-next-line
->where(fn (Builder $query) => $query
->where('name', 'LIKE', '%' . $this->value . '%')
->orWhere('first_name', 'LIKE', '%' . $this->value . '%')
->orWhere('last_name', 'LIKE', '%' . $this->value . '%')
->orWhereRaw("CONCAT(first_name, ' ', last_name) LIKE ?", ['%' . $this->value . '%'])
->orWhereRaw("CONCAT(first_name, ' ', last_name) LIKE ?", ['%' . $this->value . '%']),
)
->orWhereHas(
'address',
Expand All @@ -36,8 +37,7 @@ public function query(Builder $query): Builder
->orWhere('addresses.zip', 'LIKE', '%' . $this->value . '%')
->orWhere('addresses.city', 'LIKE', '%' . $this->value . '%')
->orWhere('addresses.country', 'LIKE', '%' . $this->value . '%'),
)

),
),
);
}
Expand Down

0 comments on commit 1255cae

Please sign in to comment.