ApplicationTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 3 1
A columns() 0 9 1
1
<?php
2
3
namespace Adminetic\Website\Http\Livewire\Admin\Career;
4
5
use Rappasoft\LaravelLivewireTables\DataTableComponent;
6
use Rappasoft\LaravelLivewireTables\Views\Column;
7
8
class ApplicationTable extends DataTableComponent
9
{
10
    protected $model = Admin\Application::class;
0 ignored issues
show
Bug introduced by
The type Adminetic\Website\Http\L...areer\Admin\Application was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
12
    public function configure(): void
13
    {
14
        $this->setPrimaryKey('id');
15
    }
16
17
    public function columns(): array
18
    {
19
        return [
20
            Column::make('Id', 'id')
21
                ->sortable(),
22
            Column::make('Created at', 'created_at')
23
                ->sortable(),
24
            Column::make('Updated at', 'updated_at')
25
                ->sortable(),
26
        ];
27
    }
28
}
29