FileForFlexible::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace NovaFlexibleContent\Nova\Fields;
4
5
use Laravel\Nova\Fields\File;
6
7
class FileForFlexible extends File
8
{
9
    use FlexibleUpdatingAttribute;
0 ignored issues
show
Bug introduced by
The trait NovaFlexibleContent\Nova...exibleUpdatingAttribute requires the property $field which is not provided by NovaFlexibleContent\Nova\Fields\FileForFlexible.
Loading history...
10
11 7
    public function __construct()
12
    {
13 7
        parent::__construct(...func_get_args());
0 ignored issues
show
Bug introduced by
func_get_args() is expanded, but the parameter $name of Laravel\Nova\Fields\File::__construct() does not expect variable arguments. ( Ignorable by Annotation )

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

13
        parent::__construct(/** @scrutinizer ignore-type */ ...func_get_args());
Loading history...
14
15 7
        $this->download($this->defaultDownloadCallback())
16 7
            ->delete($this->defaultDeleteCallback());
17
    }
18
}
19