@@ -35,19 +35,19 @@ |
||
35 | 35 | ); |
36 | 36 | |
37 | 37 | $this->app->singleton( |
38 | - 'command.search.rebuild', function () { |
|
38 | + 'command.search.rebuild', function() { |
|
39 | 39 | return new RebuildCommand; |
40 | 40 | } |
41 | 41 | ); |
42 | 42 | |
43 | 43 | $this->app->singleton( |
44 | - 'command.search.clear', function () { |
|
44 | + 'command.search.clear', function() { |
|
45 | 45 | return new ClearCommand; |
46 | 46 | } |
47 | 47 | ); |
48 | 48 | |
49 | 49 | $this->app->singleton( |
50 | - 'command.search.optimise', function () { |
|
50 | + 'command.search.optimise', function() { |
|
51 | 51 | return new OptimiseCommand; |
52 | 52 | } |
53 | 53 | ); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $this->call('search:clear'); |
35 | 35 | |
36 | 36 | /** |
37 | - * @var Search $search |
|
37 | + * @var Search $search |
|
38 | 38 | */ |
39 | 39 | $search = App::make('search'); |
40 | 40 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | $progress->start(); |
56 | 56 | |
57 | 57 | $modelRepository->chunk( |
58 | - 1000, function ($chunk) use ($progress, $search) { |
|
58 | + 1000, function($chunk) use ($progress, $search) { |
|
59 | 59 | foreach ($chunk as $model) { |
60 | 60 | $search->update($model); |
61 | 61 | $progress->advance(); |
@@ -63,13 +63,13 @@ |
||
63 | 63 | $store = App::make(Store::class); |
64 | 64 | |
65 | 65 | self::saved( |
66 | - function (Model $model) use ($store) { |
|
66 | + function(Model $model) use ($store) { |
|
67 | 67 | self::insertCallback($model, $store); |
68 | 68 | } |
69 | 69 | ); |
70 | 70 | |
71 | 71 | self::deleting( |
72 | - function (Model $model) use ($store) { |
|
72 | + function(Model $model) use ($store) { |
|
73 | 73 | self::deleteCallback($model, $store); |
74 | 74 | } |
75 | 75 | ); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | private function mapWhereArray($string, array $array) |
166 | 166 | { |
167 | 167 | return array_map( |
168 | - function () use ($string) { |
|
168 | + function() use ($string) { |
|
169 | 169 | return $string; |
170 | 170 | }, array_flip($array) |
171 | 171 | ); |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | private function mapIds(array $array) |
198 | 198 | { |
199 | 199 | return array_map( |
200 | - function (QueryHit $hit) { |
|
200 | + function(QueryHit $hit) { |
|
201 | 201 | return $hit->id; |
202 | 202 | }, $array |
203 | 203 | ); |