@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | */ |
| 45 | 45 | public static function bootSearchable() |
| 46 | 46 | { |
| 47 | - static::saved(function (Model $model) { |
|
| 47 | + static::saved(function(Model $model) { |
|
| 48 | 48 | /** @var Model|Searchable $model */ |
| 49 | 49 | if ($model->shouldSyncDocument()) { |
| 50 | 50 | $model->repository()->save($model); |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $model->syncRelationships(); |
| 54 | 54 | }); |
| 55 | 55 | |
| 56 | - static::deleted(function (Model $model) { |
|
| 56 | + static::deleted(function(Model $model) { |
|
| 57 | 57 | /** @var Model|Searchable $model */ |
| 58 | 58 | if ($model->shouldSyncDocument()) { |
| 59 | 59 | $model->repository()->delete($model); |
@@ -95,10 +95,10 @@ discard block |
||
| 95 | 95 | public function getDocumentType(): string |
| 96 | 96 | { |
| 97 | 97 | if (property_exists($this, 'documentType')) { |
| 98 | - return (string)$this->documentType; |
|
| 98 | + return (string) $this->documentType; |
|
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - return (string)$this->getTable(); |
|
| 101 | + return (string) $this->getTable(); |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | public function shouldSyncDocument(): bool |
| 110 | 110 | { |
| 111 | 111 | if (property_exists($this, 'syncDocument')) { |
| 112 | - return (bool)$this->syncDocument; |
|
| 112 | + return (bool) $this->syncDocument; |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | return true; |