@@ -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) { |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | } |
199 | 199 | } |
200 | 200 | |
201 | - if (! empty($result)) { |
|
201 | + if ( ! empty($result)) { |
|
202 | 202 | if (is_array($result)) { |
203 | 203 | $objects = [[]]; |
204 | 204 | foreach ($pieces as $splittedBy => $values) { |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | $objects = $temp; |
212 | 212 | } |
213 | 213 | |
214 | - return array_map(function ($object) use ($array) { |
|
214 | + return array_map(function($object) use ($array) { |
|
215 | 215 | return array_merge($array, $object); |
216 | 216 | }, $objects); |
217 | 217 | } else { |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | { |
248 | 248 | $searchableClass = get_class($searchable); |
249 | 249 | |
250 | - if (! array_key_exists($searchableClass, $this->searchablesWithToSearchableArray)) { |
|
250 | + if ( ! array_key_exists($searchableClass, $this->searchablesWithToSearchableArray)) { |
|
251 | 251 | $reflectionClass = new ReflectionClass(get_class($searchable)); |
252 | 252 | |
253 | 253 | $this->searchablesWithToSearchableArray[$searchableClass] = ends_with((string) $reflectionClass->getMethod('toSearchableArray')->getFileName(), (string) $reflectionClass->getFileName()); |