Passed
Push — master ( acf2dc...3a8b1f )
by Curtis
12:39
created

noteTable   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A query() 0 3 1
1
<?php
2
3
namespace App\Tables\Builders;
4
5
use App\note;
6
use LaravelEnso\Tables\app\Services\Table;
7
8
class noteTable extends Table
9
{
10
    protected $templatePath = __DIR__.'/../Templates/notes.json';
11
12
    public function query()
13
    {
14
        return Note::selectRaw('
15
            notes.id as "dtRowId", name, description, is_active, date, created_at
16
        ');
17
    }
18
}
19