Test Failed
Pull Request — master (#193)
by Wisoot
06:02
created
src/Jobs/UpdateJob.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
             $array = array_merge($searchable->toSearchableArray(), $metadata);
114 114
 
115
-            if (! $this->hasToSearchableArray($searchable)) {
115
+            if ( ! $this->hasToSearchableArray($searchable)) {
116 116
                 $array = $searchable->getModel()->transform($array);
117 117
             }
118 118
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
     {
152 152
         $class = get_class($searchable->getModel());
153 153
 
154
-        if (! array_key_exists($class, $this->splittables)) {
154
+        if ( ! array_key_exists($class, $this->splittables)) {
155 155
             $this->splittables[$class] = false;
156 156
 
157 157
             foreach ($searchable->toSearchableArray() as $key => $value) {
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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] =
Please login to merge, or discard this patch.