Completed
Push — master ( 02f92d...9c9507 )
by Sebastian
15:38
created

TranslatableUpdater   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A performUpdate() 0 6 1
1
<?php
2
3
namespace App\Foundation\Models\Updaters;
4
5
class TranslatableUpdater extends Updater
6
{
7
    use UpdatesTranslations;
8
9
    /**
10
     * @return \Illuminate\Database\Eloquent\Model
11
     */
12
    public function performUpdate()
13
    {
14
        $this->updateTranslations();
15
16
        return $this->model;
17
    }
18
}
19