Passed
Pull Request — master (#170)
by
unknown
21:46 queued 18:04
created
src/Jobs/UpdateJob.php 1 patch
Spacing   +5 added lines, -5 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) {
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.