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

repositoryTable::query()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace App\Tables\Builders;
4
5
use App\repository;
6
use LaravelEnso\Tables\app\Services\Table;
7
8
class repositoryTable extends Table
9
{
10
    protected $templatePath = __DIR__.'/../Templates/repositories.json';
11
12
    public function query()
13
    {
14
        return Repository::selectRaw('
15
            repositories.id as "dtRowId", name, description, is_active, date, created_at
16
        ');
17
    }
18
}
19