Browse Source

Update spacings/code-format of PHP bundle.

test-gpt-generated
Roman Axelrod 3 years ago
parent
commit
6626ecff2a
  1. 4
      .editorconfig
  2. 2
      platforms/wordpress/templates/Template_Component.php

4
.editorconfig

@ -18,6 +18,10 @@ indent_size = 2
indent_style = tab
indent_size = 4
[*.php]
indent_style = tab
indent_size = 4
[*.md]
trim_trailing_whitespace = false

2
platforms/wordpress/templates/Template_Component.php

@ -24,7 +24,6 @@ class <%= blockClassModel %>_Component extends \Core\Component {
wp_enqueue_script( 'script-block-<%= blockFilename %>' );
}<% } %>
<% if (include_elementor_widget) { %>function register_custom_logic(): void {
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() {
register_block_type( __DIR__ . '/templates/gutenberg-block/block.json' );<% if (include_script) { %>

Loading…
Cancel
Save