@@ -27,11 +27,11 @@ |
||
27 | 27 | { |
28 | 28 | $this->mergeConfigFrom(__DIR__ . '/../config/translatable.php', 'translatable'); |
29 | 29 | |
30 | - Blueprint::macro('translatable', function () { |
|
30 | + Blueprint::macro('translatable', function() { |
|
31 | 31 | TranslatableColumns::columns($this); |
32 | 32 | }); |
33 | 33 | |
34 | - Blueprint::macro('dropTranslatable', function () { |
|
34 | + Blueprint::macro('dropTranslatable', function() { |
|
35 | 35 | TranslatableColumns::dropColumns($this); |
36 | 36 | }); |
37 | 37 |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | protected static function bootHasTranslations() |
14 | 14 | { |
15 | - static::saved(function ($model) { |
|
15 | + static::saved(function($model) { |
|
16 | 16 | if ($model->{$model->getLangcodeColumn()} && empty($model->{$model->getTranslationUuidColumn()})) { |
17 | 17 | $model->{$model->getTranslationUuidColumn()} = Str::uuid(); |
18 | 18 | $model->save(); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function getTranslationList(): Collection |
53 | 53 | { |
54 | - $languages = config('translatable.languages', []); |
|
54 | + $languages = config('translatable.languages', [ ]); |
|
55 | 55 | $translations = $this->translations; |
56 | 56 | $result = new Collection(); |
57 | 57 |