flyntwp /
flynt
| 1 | <?php |
||||||
| 2 | |||||||
| 3 | namespace Flynt\Components\BlockWysiwyg; |
||||||
| 4 | |||||||
| 5 | use Flynt\FieldVariables; |
||||||
|
0 ignored issues
–
show
|
|||||||
| 6 | |||||||
| 7 | function getACFLayout() |
||||||
| 8 | { |
||||||
| 9 | return [ |
||||||
| 10 | 'name' => 'blockWysiwyg', |
||||||
| 11 | 'label' => 'Block: Wysiwyg', |
||||||
| 12 | 'sub_fields' => [ |
||||||
| 13 | [ |
||||||
| 14 | 'label' => __('General', 'flynt'), |
||||||
| 15 | 'name' => 'generalTab', |
||||||
| 16 | 'type' => 'tab', |
||||||
| 17 | 'placement' => 'top', |
||||||
| 18 | 'endpoint' => 0, |
||||||
| 19 | ], |
||||||
| 20 | [ |
||||||
| 21 | 'label' => __('Text Alignment', 'flynt'), |
||||||
| 22 | 'name' => 'textAlignment', |
||||||
| 23 | 'type' => 'button_group', |
||||||
| 24 | 'choices' => [ |
||||||
| 25 | 'textLeft' => '<i class=\'dashicons dashicons-editor-alignleft\' title=\'Align text left\'></i>', |
||||||
| 26 | 'textCenter' => '<i class=\'dashicons dashicons-editor-aligncenter\' title=\'Align text center\'></i>' |
||||||
| 27 | ] |
||||||
| 28 | ], |
||||||
| 29 | [ |
||||||
| 30 | 'label' => __('Content', 'flynt'), |
||||||
| 31 | 'name' => 'contentHtml', |
||||||
| 32 | 'type' => 'wysiwyg', |
||||||
| 33 | 'delay' => 1, |
||||||
| 34 | 'media_upload' => 0, |
||||||
| 35 | 'required' => 1, |
||||||
| 36 | ], |
||||||
| 37 | [ |
||||||
| 38 | 'label' => __('Options', 'flynt'), |
||||||
| 39 | 'name' => 'optionsTab', |
||||||
| 40 | 'type' => 'tab', |
||||||
| 41 | 'placement' => 'top', |
||||||
| 42 | 'endpoint' => 0 |
||||||
| 43 | ], |
||||||
| 44 | [ |
||||||
| 45 | 'label' => '', |
||||||
| 46 | 'name' => 'options', |
||||||
| 47 | 'type' => 'group', |
||||||
| 48 | 'layout' => 'row', |
||||||
| 49 | 'sub_fields' => [ |
||||||
| 50 | 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
Loading history...
|
|||||||
| 51 | ] |
||||||
| 52 | ] |
||||||
| 53 | ] |
||||||
| 54 | ]; |
||||||
| 55 | } |
||||||
| 56 |
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