@@ -130,7 +130,7 @@ |
||
| 130 | 130 | $values = [$values]; |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | - $numericalFilterArray = array_map(function ($value) use ($name) { |
|
| 133 | + $numericalFilterArray = array_map(function($value) use ($name) { |
|
| 134 | 134 | return "{$name}={$value}"; |
| 135 | 135 | }, $values); |
| 136 | 136 | |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function register() |
| 34 | 34 | { |
| 35 | - $this->app->singleton('searchIndex', function ($app) { |
|
| 35 | + $this->app->singleton('searchIndex', function($app) { |
|
| 36 | 36 | switch ($app['config']->get('searchindex.engine')) { |
| 37 | 37 | case 'elasticsearch': |
| 38 | 38 | |
@@ -50,12 +50,12 @@ |
||
| 50 | 50 | |
| 51 | 51 | if (is_array($subject) || $subject instanceof Traversable) { |
| 52 | 52 | $searchIndexPayload = collect($subject) |
| 53 | - ->each(function ($item) { |
|
| 53 | + ->each(function($item) { |
|
| 54 | 54 | if (!$item instanceof Searchable) { |
| 55 | 55 | throw new InvalidArgumentException(); |
| 56 | 56 | } |
| 57 | 57 | }) |
| 58 | - ->map(function ($item) { |
|
| 58 | + ->map(function($item) { |
|
| 59 | 59 | return array_merge( |
| 60 | 60 | $item->getSearchableBody(), |
| 61 | 61 | ['objectID' => $this->getAlgoliaId($item)] |
@@ -51,12 +51,12 @@ |
||
| 51 | 51 | |
| 52 | 52 | if (is_array($subject) || $subject instanceof Traversable) { |
| 53 | 53 | $searchableItems = collect($subject) |
| 54 | - ->each(function ($item) { |
|
| 54 | + ->each(function($item) { |
|
| 55 | 55 | if (!$item instanceof Searchable) { |
| 56 | 56 | throw new InvalidArgumentException(); |
| 57 | 57 | } |
| 58 | 58 | }) |
| 59 | - ->flatMap(function ($item) { |
|
| 59 | + ->flatMap(function($item) { |
|
| 60 | 60 | return |
| 61 | 61 | [ |
| 62 | 62 | [ |