@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | public function getValue(string $key, $value, array $searchableAttributes): array |
59 | 59 | { |
60 | - if (! is_object($value) && ! is_array($value) && |
|
60 | + if ( ! is_object($value) && ! is_array($value) && |
|
61 | 61 | ! Str::is(self::$unsearchableAttributesKeys, $key) && |
62 | 62 | ! Str::is(self::$unsearchableAttributesValues, $value)) { |
63 | 63 | $searchableAttributes[] = $key; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | { |
72 | 72 | $attributes = $this->getAttributes($model); |
73 | 73 | |
74 | - $attributeArray = array_fill_keys(array_keys(self::$settings),[]); |
|
74 | + $attributeArray = array_fill_keys(array_keys(self::$settings), []); |
|
75 | 75 | |
76 | 76 | foreach ($attributes as $key => $value) { |
77 | 77 | $key = (string) $key; |
@@ -113,8 +113,7 @@ discard block |
||
113 | 113 | throw tap(new ModelNotFoundException())->setModel($searchable); |
114 | 114 | } |
115 | 115 | |
116 | - $attributes = method_exists($instance, 'toSearchableArray') ? $instance->toSearchableArray() : |
|
117 | - $instance->toArray(); |
|
116 | + $attributes = method_exists($instance, 'toSearchableArray') ? $instance->toSearchableArray() : $instance->toArray(); |
|
118 | 117 | } |
119 | 118 | |
120 | 119 | return $attributes; |