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

ModuleModelUpdater   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4
Metric Value
wmc 1
lcom 1
cbo 4
dl 0
loc 16
rs 10

1 Method

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