@@ -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; |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | continue; |
111 | 111 | } |
112 | 112 | |
113 | - if (! $this->hasToSearchableArray($searchable)) { |
|
113 | + if ( ! $this->hasToSearchableArray($searchable)) { |
|
114 | 114 | $array = $searchable->getModel()->transform($array); |
115 | 115 | } |
116 | 116 | |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | { |
150 | 150 | $class = get_class($searchable->getModel()); |
151 | 151 | |
152 | - if (! array_key_exists($class, $this->splittables)) { |
|
152 | + if ( ! array_key_exists($class, $this->splittables)) { |
|
153 | 153 | $this->splittables[$class] = false; |
154 | 154 | |
155 | 155 | foreach ($searchable->toSearchableArray() as $key => $value) { |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | $objects = $temp; |
209 | 209 | } |
210 | 210 | |
211 | - return array_map(function ($object) use ($array) { |
|
211 | + return array_map(function($object) use ($array) { |
|
212 | 212 | return array_merge($array, $object); |
213 | 213 | }, $objects); |
214 | 214 | } |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | { |
235 | 235 | $searchableClass = get_class($searchable); |
236 | 236 | |
237 | - if (! array_key_exists($searchableClass, $this->searchablesWithToSearchableArray)) { |
|
237 | + if ( ! array_key_exists($searchableClass, $this->searchablesWithToSearchableArray)) { |
|
238 | 238 | $reflectionClass = new ReflectionClass(get_class($searchable)); |
239 | 239 | |
240 | 240 | $this->searchablesWithToSearchableArray[$searchableClass] = ends_with((string) $reflectionClass->getMethod('toSearchableArray')->getFileName(), (string) $reflectionClass->getFileName()); |