Issues (76)

Components/BlockImage/functions.php (2 issues)

Labels
Severity
1
<?php
2
3
namespace Flynt\Components\BlockImage;
4
5
use Flynt\FieldVariables;
0 ignored issues
show
The type Flynt\FieldVariables 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...
6
7
function getACFLayout()
8
{
9
    return [
10
        'name' => 'blockImage',
11
        'label' => 'Block: Image',
12
        'sub_fields' => [
13
            [
14
                'label' => __('General', 'flynt'),
15
                'name' => 'generalTab',
16
                'type' => 'tab',
17
                'placement' => 'top',
18
                'endpoint' => 0,
19
            ],
20
            [
21
                'label' => __('Image', 'flynt'),
22
                'name' => 'image',
23
                'type' => 'image',
24
                'preview_size' => 'medium',
25
                'instructions' => __('Image-Format: JPG, PNG, GIF.', 'flynt'),
26
                'required' => 1,
27
                'mime_types' => 'gif,jpg,jpeg,png'
28
            ],
29
            [
30
                'label' => __('Options', 'flynt'),
31
                'name' => 'optionsTab',
32
                'type' => 'tab',
33
                'placement' => 'top',
34
                'endpoint' => 0
35
            ],
36
            [
37
                'label' => '',
38
                'name' => 'options',
39
                'type' => 'group',
40
                'layout' => 'row',
41
                'sub_fields' => [
42
                    FieldVariables\getTheme(),
0 ignored issues
show
The function getTheme was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

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

42
                    /** @scrutinizer ignore-call */ 
43
                    FieldVariables\getTheme(),
Loading history...
43
                    [
44
                        'label' => __('Size', 'flynt'),
45
                        'name' => 'size',
46
                        'type' => 'radio',
47
                        'other_choice' => 0,
48
                        'save_other_choice' => 0,
49
                        'layout' => 'horizontal',
50
                        'choices' => [
51
                            'sizeSmall' => __('Small', 'flynt'),
52
                            'sizeMedium' => __('Medium', 'flynt'),
53
                            'sizeLarge' => __('Large (Default)', 'flynt)'),
54
                            'sizeHuge' => __('Huge', 'flynt'),
55
                            'sizeFull' => __('Full', 'flynt'),
56
                        ],
57
                        'default_value' => 'sizeLarge',
58
                        'wrapper' =>  [
59
                            'width' => '100',
60
                        ],
61
                    ],
62
                ]
63
            ]
64
        ]
65
    ];
66
}
67