Passed
Push — master ( d63ff9...6a8dbb )
by Koen
03:55 queued 01:22
created
src/TranslatableServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/HasTranslations.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,18 +30,18 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Scopes/JoinTranslationScope.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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()
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.