Issues (76)

Components/BlockImageText/functions.php (2 issues)

Labels
Severity
1
<?php
2
3
namespace Flynt\Components\BlockImageText;
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' => 'blockImageText',
11
        'label' => 'Block: Image Text',
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 Position', 'flynt'),
22
                'name' => 'imagePosition',
23
                'type' => 'button_group',
24
                'choices' => [
25
                    'imageLeft' => '<i class=\'dashicons dashicons-align-left\' title=\'Image on the left\'></i>',
26
                    'imageRight' => '<i class=\'dashicons dashicons-align-right\' title=\'Image on the right\'></i>'
27
                ]
28
            ],
29
            [
30
                'label' => __('Image', 'flynt'),
31
                'name' => 'image',
32
                'type' => 'image',
33
                'preview_size' => 'medium',
34
                'instructions' => __('Image-Format: JPG, PNG, SVG.', 'flynt'),
35
                'required' => 1,
36
                'mime_types' => 'jpg,jpeg,png,svg'
37
            ],
38
            [
39
                'label' => __('Content', 'flynt'),
40
                'name' => 'contentHtml',
41
                'type' => 'wysiwyg',
42
                'delay' => 1,
43
                'media_upload' => 0,
44
                'required' => 1,
45
            ],
46
            [
47
                'label' => __('Options', 'flynt'),
48
                'name' => 'optionsTab',
49
                'type' => 'tab',
50
                'placement' => 'top',
51
                'endpoint' => 0
52
            ],
53
            [
54
                'label' => '',
55
                'name' => 'options',
56
                'type' => 'group',
57
                'layout' => 'row',
58
                'sub_fields' => [
59
                    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

59
                    /** @scrutinizer ignore-call */ 
60
                    FieldVariables\getTheme()
Loading history...
60
                ]
61
            ]
62
        ]
63
    ];
64
}
65