@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function apply(Builder $builder, Model $model) |
| 20 | 20 | { |
| 21 | - $builder->leftJoin($model->getTranslationTable(), function (JoinClause $join) use ($model) { |
|
| 21 | + $builder->leftJoin($model->getTranslationTable(), function(JoinClause $join) use ($model) { |
|
| 22 | 22 | $join->on( |
| 23 | 23 | $model->getTable() . '.' . $model->getKeyName(), |
| 24 | 24 | $model->getTranslationTable() . '.' . $model->getForeignKey() |
@@ -30,18 +30,18 @@ discard block |
||
| 30 | 30 | public static function bootHasTranslations() |
| 31 | 31 | { |
| 32 | 32 | if (config('translatable.use_saving_service', true)) { |
| 33 | - static::saving(function (self $model) { |
|
| 33 | + static::saving(function(self $model) { |
|
| 34 | 34 | app(TranslationSavingService::class)->rememberTranslationForModel($model); |
| 35 | 35 | }); |
| 36 | 36 | |
| 37 | - static::saved(function (self $model) { |
|
| 37 | + static::saved(function(self $model) { |
|
| 38 | 38 | app(TranslationSavingService::class)->storeTranslationOnModel($model); |
| 39 | 39 | |
| 40 | 40 | $model->refreshTranslation(); |
| 41 | 41 | }); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - static::deleting(function (self $model) { |
|
| 44 | + static::deleting(function(self $model) { |
|
| 45 | 45 | $model->purgeTranslations(); |
| 46 | 46 | }); |
| 47 | 47 | |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | { |
| 262 | 262 | $table = $this->getTranslationTable(); |
| 263 | 263 | |
| 264 | - return array_map(function ($item) use ($table) { |
|
| 264 | + return array_map(function($item) use ($table) { |
|
| 265 | 265 | return $table . '.' . $item; |
| 266 | 266 | }, $this->getTranslatable()); |
| 267 | 267 | } |