NovaResourceConfig   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A filterFields() 0 3 1
A actions() 0 3 1
1
<?php
2
3
namespace NovaExportConfiguration\Export;
4
5
use Laravel\Nova\Http\Requests\NovaRequest;
6
use Laravel\Nova\Resource;
7
8
abstract class NovaResourceConfig
9
{
10
    public function filterFields(NovaRequest $request, Resource $resource): array
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

10
    public function filterFields(/** @scrutinizer ignore-unused */ NovaRequest $request, Resource $resource): array

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $resource is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

10
    public function filterFields(NovaRequest $request, /** @scrutinizer ignore-unused */ Resource $resource): array

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
11
    {
12
        return [];
13
    }
14
15
    public function actions(NovaRequest $request): array
0 ignored issues
show
Unused Code introduced by
The parameter $request is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

15
    public function actions(/** @scrutinizer ignore-unused */ NovaRequest $request): array

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
    {
17
        return [];
18
    }
19
}
20