Passed
Push — refacto/local-factory ( 22ceba...73822a )
by
unknown
16:07 queued 10:20
created
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.