Skip to content

Commit c99e63d

Browse files
authored
Fix PHPCS errors in Behat test files (#106)
1 parent 32076f7 commit c99e63d

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎features/server.feature‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Feature: Serve WordPress locally
2222
Given a WP install
2323
And a mem.php file:
2424
"""
25-
<?php echo ini_get('memory_limit'); ?>
25+
<?php echo ini_get( 'memory_limit' );
2626
"""
2727
And I launch in the background `wp server --host=localhost --port=8182 -- -dmemory_limit=256M`
2828

@@ -36,7 +36,7 @@ Feature: Serve WordPress locally
3636
Given a WP install
3737
And a mem.php file:
3838
"""
39-
<?php echo ini_get('memory_limit'); ?>
39+
<?php echo ini_get( 'memory_limit' );
4040
"""
4141
And a custom.ini file:
4242
"""
@@ -76,7 +76,12 @@ Feature: Serve WordPress locally
7676
Given a WP install
7777
And a wp-content/mu-plugins/test-https-url.php file:
7878
"""
79-
<?php add_filter( 'wp_head', function() { echo '<meta name="test-https" content="https://localhost:8184/wp-content/uploads/test.jpg">'; } );
79+
<?php add_filter(
80+
'wp_head',
81+
function () {
82+
echo '<meta name="test-https" content="https://localhost:8184/wp-content/uploads/test.jpg">';
83+
}
84+
);
8085
"""
8186
And I run `wp option update home https://localhost:8184`
8287
And I run `wp option update siteurl https://localhost:8184`

0 commit comments

Comments
 (0)