Passed
Push — master ( af745e...ec06c1 )
by Koen
02:49
created
src/Scopes/JoinTranslationScope.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 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()
Please login to merge, or discard this patch.
src/HasTranslations.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,18 +30,18 @@  discard block
 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
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.