Completed
Pull Request — master (#164)
by
unknown
22:31 queued 16:04
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/Settings/LocalFactory.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $attributes = $this->getAttributes($model);
73 73
 
74
-        $attributeArray = array_fill_keys(array_keys(self::$settings),[]);
74
+        $attributeArray = array_fill_keys(array_keys(self::$settings), []);
75 75
 
76 76
         foreach ($attributes as $key => $value) {
77 77
             $key = (string) $key;
@@ -113,8 +113,7 @@  discard block
 block discarded – undo
113 113
                 throw tap(new ModelNotFoundException())->setModel($searchable);
114 114
             }
115 115
 
116
-            $attributes = method_exists($instance, 'toSearchableArray') ? $instance->toSearchableArray() :
117
-                $instance->toArray();
116
+            $attributes = method_exists($instance, 'toSearchableArray') ? $instance->toSearchableArray() : $instance->toArray();
118 117
         }
119 118
 
120 119
         return $attributes;
Please login to merge, or discard this patch.