ImageForFlexible   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace NovaFlexibleContent\Nova\Fields;
4
5
use Laravel\Nova\Fields\Image;
6
7
class ImageForFlexible extends Image
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\ImageForFlexible.
Loading history...
10
11 8
    public function __construct()
12
    {
13 8
        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\Image::__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 8
        $this->preview($this->defaultPreviewCallback())
16 8
            ->download($this->defaultDownloadCallback())
17 8
            ->delete($this->defaultDeleteCallback());
18
    }
19
}
20