VideoForFlexible::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 3
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 7
ccs 0
cts 5
cp 0
crap 2
rs 10
c 3
b 0
f 0
1
<?php
2
3
namespace NovaFlexibleContent\Nova\Fields;
4
5
class VideoForFlexible extends \NovaVideoField\Video
6
{
7
    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\VideoForFlexible.
Loading history...
8
9
    public function __construct()
10
    {
11
        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

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