Issues (76)

inc/fieldGroups/postComponents.php (2 issues)

Labels
Severity
1
<?php
2
3
use ACFComposer\ACFComposer;
4
use Flynt\Components;
0 ignored issues
show
The type Flynt\Components 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...
5
6
add_action('Flynt/afterRegisterComponents', function () {
7
    ACFComposer::registerFieldGroup([
8
        'name' => 'postComponents',
9
        'title' => 'Post Components',
10
        'style' => 'seamless',
11
        'fields' => [
12
            [
13
                'name' => 'postComponents',
14
                'label' => __('Post Components', 'flynt'),
15
                'type' => 'flexible_content',
16
                'button_label' => __('Add Component', 'flynt'),
17
                'layouts' => [
18
                    Components\BlockCollapse\getACFLayout(),
0 ignored issues
show
The function getACFLayout 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

18
                    /** @scrutinizer ignore-call */ 
19
                    Components\BlockCollapse\getACFLayout(),
Loading history...
19
                    Components\BlockImage\getACFLayout(),
20
                    Components\BlockImageText\getACFLayout(),
21
                    Components\BlockVideoOembed\getACFLayout(),
22
                    Components\BlockWysiwyg\getACFLayout(),
23
                    Components\SliderImages\getACFLayout(),
24
                ],
25
            ],
26
        ],
27
        'location' => [
28
            [
29
                [
30
                    'param' => 'post_type',
31
                    'operator' => '==',
32
                    'value' => 'post',
33
                ],
34
            ],
35
        ],
36
    ]);
37
});
38