flyntwp /
flynt
| 1 | <?php |
||||||
| 2 | |||||||
| 3 | use ACFComposer\ACFComposer; |
||||||
| 4 | use Flynt\Components; |
||||||
|
0 ignored issues
–
show
|
|||||||
| 5 | |||||||
| 6 | add_action('Flynt/afterRegisterComponents', function () { |
||||||
| 7 | ACFComposer::registerFieldGroup([ |
||||||
| 8 | 'name' => 'pageComponents', |
||||||
| 9 | 'title' => 'Page Components', |
||||||
| 10 | 'style' => 'seamless', |
||||||
| 11 | 'fields' => [ |
||||||
| 12 | [ |
||||||
| 13 | 'name' => 'pageComponents', |
||||||
| 14 | 'label' => __('Page 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
Loading history...
|
|||||||
| 19 | Components\BlockImage\getACFLayout(), |
||||||
| 20 | Components\BlockImageText\getACFLayout(), |
||||||
| 21 | Components\BlockVideoOembed\getACFLayout(), |
||||||
| 22 | Components\BlockWysiwyg\getACFLayout(), |
||||||
| 23 | Components\GridImageText\getACFLayout(), |
||||||
| 24 | Components\GridPostsLatest\getACFLayout(), |
||||||
| 25 | Components\ListComponents\getACFLayout(), |
||||||
| 26 | Components\SliderImages\getACFLayout(), |
||||||
| 27 | ] |
||||||
| 28 | ] |
||||||
| 29 | ], |
||||||
| 30 | 'location' => [ |
||||||
| 31 | [ |
||||||
| 32 | [ |
||||||
| 33 | 'param' => 'post_type', |
||||||
| 34 | 'operator' => '!=', |
||||||
| 35 | 'value' => 'post' |
||||||
| 36 | ] |
||||||
| 37 | ] |
||||||
| 38 | ] |
||||||
| 39 | ]); |
||||||
| 40 | }); |
||||||
| 41 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths