Skip to content

Commit 7e35f62

Browse files
authored
Fix PHPCS errors in Behat test files (#545)
1 parent 0a41471 commit 7e35f62

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎features/plugin-activate.feature‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Feature: Activate WordPress plugins
4848
function ( $all_plugins ) {
4949
unset( $all_plugins['site-secrets/site-secrets.php'] );
5050
return $all_plugins;
51-
}
51+
}
5252
);
5353
"""
5454

@@ -73,8 +73,8 @@ Feature: Activate WordPress plugins
7373
<?php
7474
// Plugin Name: Example Plugin
7575
function example_plugin_activate( bool $network_wide = false ) {
76-
// Doesn't matter what we do here, we just need a function definition to check the type
77-
return;
76+
// Doesn't matter what we do here, we just need a function definition to check the type
77+
return;
7878
}
7979
register_activation_hook( __FILE__, 'example_plugin_activate' );
8080
"""
@@ -191,8 +191,8 @@ Feature: Activate WordPress plugins
191191
register_activation_hook(
192192
__FILE__,
193193
function () {
194-
@file_put_contents( WP_CONTENT_DIR . '/activation-test.txt', 'Activation hook was run' );
195-
}
194+
@file_put_contents( WP_CONTENT_DIR . '/activation-test.txt', 'Activation hook was run' );
195+
}
196196
);
197197
"""
198198

‎features/plugin-deactivate.feature‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Feature: Deactivate WordPress plugins
5151
function ( $all_plugins ) {
5252
unset( $all_plugins['akismet/akismet.php'] );
5353
return $all_plugins;
54-
}
54+
}
5555
);
5656
"""
5757

‎features/plugin.feature‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ Feature: Manage WordPress plugins
704704
function ( $all_plugins ) {
705705
unset( $all_plugins['site-secrets/site-secrets.php'] );
706706
return $all_plugins;
707-
}
707+
}
708708
);
709709
"""
710710

0 commit comments

Comments
 (0)