@@ -108,7 +108,7 @@ |
||
| 108 | 108 | { |
| 109 | 109 | $operators = ['<', '<=', '=', '!=', '>=', '>', ':']; |
| 110 | 110 | |
| 111 | - return collect($builder->wheres)->map(function ($value, $key) use ($operators) { |
|
| 111 | + return collect($builder->wheres)->map(function($value, $key) use ($operators) { |
|
| 112 | 112 | if (ends_with($key, $operators) || starts_with($value, $operators)) { |
| 113 | 113 | return $key.' '.$value; |
| 114 | 114 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | continue; |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - if (! $this->hasToSearchableArray($searchable)) { |
|
| 109 | + if ( ! $this->hasToSearchableArray($searchable)) { |
|
| 110 | 110 | $array = $searchable->getModel()->transform($array); |
| 111 | 111 | } |
| 112 | 112 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | { |
| 146 | 146 | $class = get_class($searchable->getModel()); |
| 147 | 147 | |
| 148 | - if (! array_key_exists($class, $this->splittables)) { |
|
| 148 | + if ( ! array_key_exists($class, $this->splittables)) { |
|
| 149 | 149 | $this->splittables[$class] = false; |
| 150 | 150 | |
| 151 | 151 | foreach ($searchable->toSearchableArray() as $key => $value) { |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | $objects = $temp; |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | - return array_map(function ($object) use ($array) { |
|
| 205 | + return array_map(function($object) use ($array) { |
|
| 206 | 206 | return array_merge($array, $object); |
| 207 | 207 | }, $objects); |
| 208 | 208 | } |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | { |
| 229 | 229 | $searchableClass = get_class($searchable); |
| 230 | 230 | |
| 231 | - if (! array_key_exists($searchableClass, $this->searchablesWithToSearchableArray)) { |
|
| 231 | + if ( ! array_key_exists($searchableClass, $this->searchablesWithToSearchableArray)) { |
|
| 232 | 232 | $reflectionClass = new ReflectionClass(get_class($searchable)); |
| 233 | 233 | |
| 234 | 234 | $this->searchablesWithToSearchableArray[$searchableClass] = |