|  | @@ -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.