Completed
Push — master ( bcfc51...2533f4 )
by David
01:24 queued 11s
created

ActiveScope::apply()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Torralbodavid\DuckFunkCore\Scopes;
4
5
use Illuminate\Database\Eloquent\Builder;
6
use Illuminate\Database\Eloquent\Model;
7
use Illuminate\Database\Eloquent\Scope;
8
9
class ActiveScope implements Scope
10
{
11
    public function apply(Builder $builder, Model $model)
12
    {
13
        $builder->where('active', true);
14
    }
15
}
16