PersonAnciTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A templatePath() 0 3 1
A query() 0 3 1
1
<?php
2
3
namespace App\Tables\Builders;
4
5
use App\Models\PersonAnci;
6
use Illuminate\Database\Eloquent\Builder;
7
use LaravelEnso\Tables\Contracts\Table;
8
9
class PersonAnciTable implements Table
10
{
11
    protected const TemplatePath = __DIR__.'/../Templates/personAncis.json';
12
13
    public function query(): Builder
14
    {
15
        return PersonAnci::selectRaw('
0 ignored issues
show
Bug Best Practice introduced by
The expression return App\Models\Person...i.created_at ') could return the type Illuminate\Database\Eloq...gHasThroughRelationship which is incompatible with the type-hinted return Illuminate\Database\Eloquent\Builder. Consider adding an additional type-check to rule them out.
Loading history...
16
            person_anci.id, "person_anci.group", person_anci.gid, person_anci.anci, person_anci.created_at
17
        ');
18
    }
19
20
    public function templatePath(): string
21
    {
22
        return static::TemplatePath;
23
    }
24
}
25