Update spacings/code-format of PHP bundle.
This commit is contained in:
@@ -18,6 +18,10 @@ indent_size = 2
|
|||||||
indent_style = tab
|
indent_style = tab
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.php]
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ class <%= blockClassModel %>_Component extends \Core\Component {
|
|||||||
|
|
||||||
wp_enqueue_script( 'script-block-<%= blockFilename %>' );
|
wp_enqueue_script( 'script-block-<%= blockFilename %>' );
|
||||||
}<% } %>
|
}<% } %>
|
||||||
|
|
||||||
<% if (include_elementor_widget) { %>function register_custom_logic(): void {
|
<% if (include_elementor_widget) { %>function register_custom_logic(): void {
|
||||||
add_action( 'elementor/widgets/widgets_registered', [ $this, 'register_elementor_widget' ] );
|
add_action( 'elementor/widgets/widgets_registered', [ $this, 'register_elementor_widget' ] );
|
||||||
}
|
}
|
||||||
@@ -49,7 +48,6 @@ class <%= blockClassModel %>_Component extends \Core\Component {
|
|||||||
]
|
]
|
||||||
] );
|
] );
|
||||||
}
|
}
|
||||||
|
|
||||||
<% } %><% if (include_native_gutenberg_block) { %> function register_native_gutenberg_block() {
|
<% } %><% if (include_native_gutenberg_block) { %> function register_native_gutenberg_block() {
|
||||||
register_block_type( __DIR__ . '/templates/gutenberg-block/block.json' );<% if (include_script) { %>
|
register_block_type( __DIR__ . '/templates/gutenberg-block/block.json' );<% if (include_script) { %>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user