TranslatableScope   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 4
Bugs 2 Features 0
Metric Value
wmc 1
eloc 2
c 4
b 2
f 0
dl 0
loc 5
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A apply() 0 3 1
1
<?php
2
3
namespace Mikehins\Translatable;
4
5
use Illuminate\Database\Eloquent\Builder;
6
use Illuminate\Database\Eloquent\Model;
7
use Illuminate\Database\Eloquent\Scope;
8
9
class TranslatableScope implements Scope
10
{
11
    public function apply(Builder $builder, Model $model)
12
    {
13
        $builder->translated();
14
    }
15
}
16