Passed
Push — master ( afb865...5313f5 )
by Reza
03:19
created

CRUD   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A scopeActive() 0 3 1
1
<?php
2
3
4
namespace EasyPanel\Models;
5
6
7
use Illuminate\Database\Eloquent\Model;
8
9
class CRUD extends Model
10
{
11
    protected $table = 'cruds';
12
    protected $guarded = [];
13
14
    public function scopeActive($query)
15
    {
16
        return $query->where('built', true)->where('active', true)->get();
17
    }
18
}
19