Completed
Push — master ( a1769b...8b06e6 )
by Adam
03:08
created
src/BestServedCold/LaravelZendSearch/Laravel/ServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,19 +35,19 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/BestServedCold/LaravelZendSearch/Laravel/Console/RebuildCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/BestServedCold/LaravelZendSearch/Laravel/SearchTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,13 +63,13 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/BestServedCold/LaravelZendSearch/Lucene/Search.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         );
Please login to merge, or discard this patch.