Passed
Push — analysis-zGnjml ( c24ad7 )
by Nuno
11:47 queued 03:58
created
src/Jobs/UpdateJob.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                 continue;
107 107
             }
108 108
 
109
-            if (! $this->hasToSearchableArray($searchable)) {
109
+            if ( ! $this->hasToSearchableArray($searchable)) {
110 110
                 $array = $this->sanitize($searchable, $array);
111 111
             }
112 112
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             $file = (new ReflectionClass(get_class($searchable)))->getMethod('toSearchableArray')->getFileName();
233 233
 
234 234
             $this->searchablesWithToSearchableArray[$searchableClass] =
Please login to merge, or discard this patch.