Skip to content

Commit 309fa21

Browse files
authored
Fix PHPCS errors in Behat test files (#19)
1 parent 9579680 commit 309fa21

1 file changed

Lines changed: 24 additions & 12 deletions

File tree

‎features/block-style.feature‎

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,18 @@ Feature: Block style commands
4040
And a wp-content/themes/test-theme/functions.php file:
4141
"""
4242
<?php
43-
add_action( 'init', function() {
44-
register_block_style( 'core/paragraph', array(
45-
'name' => 'fancy-quote',
46-
'label' => 'Fancy Quote',
47-
) );
48-
} );
43+
add_action(
44+
'init',
45+
function () {
46+
register_block_style(
47+
'core/paragraph',
48+
array(
49+
'name' => 'fancy-quote',
50+
'label' => 'Fancy Quote',
51+
)
52+
);
53+
}
54+
);
4955
"""
5056

5157
When I run `wp theme activate test-theme`
@@ -122,12 +128,18 @@ Feature: Block style commands
122128
And a wp-content/themes/format-test-theme/functions.php file:
123129
"""
124130
<?php
125-
add_action( 'init', function() {
126-
register_block_style( 'core/paragraph', array(
127-
'name' => 'format-test-style',
128-
'label' => 'Format Test Style',
129-
) );
130-
} );
131+
add_action(
132+
'init',
133+
function () {
134+
register_block_style(
135+
'core/paragraph',
136+
array(
137+
'name' => 'format-test-style',
138+
'label' => 'Format Test Style',
139+
)
140+
);
141+
}
142+
);
131143
"""
132144

133145
When I run `wp theme activate format-test-theme`

0 commit comments

Comments
 (0)