@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | { |
43 | 43 | foreach ($searchableFinder->fromCommand($this) as $searchable) { |
44 | 44 | |
45 | - $events->listen(ModelsImported::class, function ($event) use ($searchable) { |
|
45 | + $events->listen(ModelsImported::class, function($event) use ($searchable) { |
|
46 | 46 | $this->resultMessage($event->models, $searchable); |
47 | 47 | }); |
48 | 48 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $searchableObject = $model->getScoutModelsByIds($builder, $searchKey); |
69 | 69 | |
70 | 70 | if ($searchableObject->count() === 1) { |
71 | - if (! $searchableObject[0]->shouldBeSearchable()) { |
|
71 | + if ( ! $searchableObject[0]->shouldBeSearchable()) { |
|
72 | 72 | Log::error("ImportCommand delete item unsearchable", [ |
73 | 73 | 'object' => $searchable, |
74 | 74 | 'id' => $hit['objectID'] |
@@ -81,12 +81,12 @@ discard block |
||
81 | 81 | 'id' => $hit['objectID'] |
82 | 82 | ]); |
83 | 83 | $index->deleteObject($hit['objectID']); |
84 | - $this->line("Found item to delete " . $hit['objectID']); |
|
84 | + $this->line("Found item to delete ".$hit['objectID']); |
|
85 | 85 | } |
86 | 86 | } catch (QueryException $e) { |
87 | 87 | // this should only happen when they are type issues like id is int, and the key is alpha. |
88 | 88 | $index->deleteObject($hit['objectID']); |
89 | - $this->line("Found item to delete " . $hit['objectID']); |
|
89 | + $this->line("Found item to delete ".$hit['objectID']); |
|
90 | 90 | } |
91 | 91 | } |
92 | 92 |