Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
mattkingshott committed May 5, 2020
2 parents bc07de7 + 8b97a03 commit 579a6f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Macros/WhereFuzzy.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static function make(Builder $builder, $field, $value) : Builder
protected static function pipeline($field, $native, $value) : Expression
{
$sql = collect(static::$matchers)->map(
fn ($multiplier, $matcher) =>
fn($multiplier, $matcher) =>
(new $matcher($multiplier))->buildQueryString("COALESCE($native, '')", $value)
);

Expand Down
4 changes: 2 additions & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ServiceProvider extends Provider
**/
public function boot() : void
{
Builder::macro('orderByFuzzy', fn ($fields) => OrderByFuzzy::make($this, $fields));
Builder::macro('whereFuzzy', fn ($field, $value) => WhereFuzzy::make($this, $field, $value));
Builder::macro('orderByFuzzy', fn($fields) => OrderByFuzzy::make($this, $fields));
Builder::macro('whereFuzzy', fn($field, $value) => WhereFuzzy::make($this, $field, $value));
}
}

0 comments on commit 579a6f2

Please sign in to comment.