Completed
Pull Request — master (#170)
by
unknown
43:05 queued 37:47
created
src/Jobs/UpdateJob.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 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
         } else {
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
     {
244 244
         $searchableClass = get_class($searchable);
245 245
 
246
-        if (! array_key_exists($searchableClass, $this->searchablesWithToSearchableArray)) {
246
+        if ( ! array_key_exists($searchableClass, $this->searchablesWithToSearchableArray)) {
247 247
             $reflectionClass = new ReflectionClass(get_class($searchable));
248 248
 
249 249
             $this->searchablesWithToSearchableArray[$searchableClass] = ends_with((string) $reflectionClass->getMethod('toSearchableArray')->getFileName(), (string) $reflectionClass->getFileName());
Please login to merge, or discard this patch.