@@ -30,11 +30,11 @@ |
||
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(); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | public function register() |
28 | 28 | { |
29 | - $this->app->singleton(TranslationSavingService::class, function () { |
|
29 | + $this->app->singleton(TranslationSavingService::class, function() { |
|
30 | 30 | return new TranslationSavingService(); |
31 | 31 | }); |
32 | 32 |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public function apply(Builder $builder, Model $model) |
20 | 20 | { |
21 | - $builder->join($model->getTranslationTable(), function (JoinClause $join) use ($model) { |
|
21 | + $builder->join($model->getTranslationTable(), function(JoinClause $join) use ($model) { |
|
22 | 22 | $join->on( |
23 | 23 | $model->getTable() . '.' . $model->getKeyName(), |
24 | 24 | $model->getTranslationTable() . '.' . $model->getForeignKey() |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $table = $model->getTranslationTable(); |
38 | 38 | |
39 | - return implode(',', array_map(function ($item) use ($table) { |
|
39 | + return implode(',', array_map(function($item) use ($table) { |
|
40 | 40 | return $table . '.' . $item; |
41 | 41 | }, $model->getTranslatable())); |
42 | 42 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | */ |
68 | 68 | public function pullRememberedTranslation($key) |
69 | 69 | { |
70 | - return tap($this->translations[$key], function () use ($key) { |
|
70 | + return tap($this->translations[$key], function() use ($key) { |
|
71 | 71 | unset($this->translations[$key]); |
72 | 72 | }); |
73 | 73 | } |