Passed
Pull Request — master (#170)
by
unknown
08:08
created
src/Settings/SettingAttribute/searchableAttribute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function getValue(string $key, $value, array $searchableAttributes): array
59 59
     {
60
-        if (! is_object($value) && ! is_array($value) &&
60
+        if ( ! is_object($value) && ! is_array($value) &&
61 61
             ! Str::is(self::$unsearchableAttributesKeys, $key) &&
62 62
             ! Str::is(self::$unsearchableAttributesValues, $value)) {
63 63
             $searchableAttributes[] = $key;
Please login to merge, or discard this patch.
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
     }
@@ -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] = ends_with((string) $reflectionClass->getMethod('toSearchableArray')->getFileName(), (string) $reflectionClass->getFileName());
Please login to merge, or discard this patch.