@@ -46,7 +46,7 @@ |
||
46 | 46 | foreach ($searchableFinder->fromCommand($this) as $searchable) { |
47 | 47 | $this->output->text(' |
@@ -261,8 +261,7 @@ |
||
261 | 261 | throw tap(new ModelNotFoundException())->setModel($searchable); |
262 | 262 | } |
263 | 263 | |
264 | - $attributes = method_exists($instance, 'toSearchableArray') ? $instance->toSearchableArray() : |
|
265 | - $instance->toArray(); |
|
264 | + $attributes = method_exists($instance, 'toSearchableArray') ? $instance->toSearchableArray() : $instance->toArray(); |
|
266 | 265 | } |
267 | 266 | |
268 | 267 | return $attributes; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | $array['_tags'] = (array) ($array['_tags'] ?? []); |
88 | 88 | |
89 | - array_push($array['_tags'], ObjectIdEncrypter::encrypt($searchable) ); |
|
89 | + array_push($array['_tags'], ObjectIdEncrypter::encrypt($searchable)); |
|
90 | 90 | |
91 | 91 | if ($this->shouldBeSplitted($searchable)) { |
92 | 92 | [$pieces, $splittedBy] = $this->splitSearchable($searchable, $array); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | { |
121 | 121 | $class = get_class($searchable->getModel()); |
122 | 122 | |
123 | - if (! array_key_exists($class, $this->splittables)) { |
|
123 | + if ( ! array_key_exists($class, $this->splittables)) { |
|
124 | 124 | $this->splittables[$class] = false; |
125 | 125 | |
126 | 126 | foreach ($searchable->toSearchableArray() as $key => $value) { |