Skip to content

Commit 9a57bdb

Browse files
authored
Fix PHPCS errors in Behat test files (#244)
1 parent f5db9c5 commit 9a57bdb

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

‎features/search-replace.feature‎

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,18 +1201,21 @@ Feature: Do global search/replace
12011201
And a search-replace-case-insensitive-dictionary.php file:
12021202
"""
12031203
<?php
1204-
WP_CLI::add_hook( 'search_replace_unserialize_options', function() {
1205-
return [ 'allowed_classes' => [ 'stdClass', 'WpOrg\Requests\Utility\CaseInsensitiveDictionary' ] ];
1206-
} );
1204+
WP_CLI::add_hook(
1205+
'search_replace_unserialize_options',
1206+
function () {
1207+
return [ 'allowed_classes' => [ 'stdClass', 'WpOrg\Requests\Utility\CaseInsensitiveDictionary' ] ];
1208+
}
1209+
);
12071210
$replacer = new \WP_CLI\SearchReplacer( 'old.example.com', 'new.example.com', true );
12081211
echo $replacer->run(
1209-
serialize(
1210-
new \WpOrg\Requests\Utility\CaseInsensitiveDictionary(
1211-
[
1212-
'date' => 'https://old.example.com/feed',
1213-
]
1212+
serialize(
1213+
new \WpOrg\Requests\Utility\CaseInsensitiveDictionary(
1214+
[
1215+
'date' => 'https://old.example.com/feed',
1216+
]
1217+
)
12141218
)
1215-
)
12161219
);
12171220
"""
12181221

@@ -1236,11 +1239,14 @@ Feature: Do global search/replace
12361239
"""
12371240
<?php
12381241
class MyClass {
1239-
public $foo = '';
1242+
public $foo = '';
12401243
}
1241-
WP_CLI::add_hook( 'search_replace_unserialize_options', function() {
1242-
return [ 'allowed_classes' => [ 'stdClass', 'MyClass' ] ];
1243-
} );
1244+
WP_CLI::add_hook(
1245+
'search_replace_unserialize_options',
1246+
function () {
1247+
return [ 'allowed_classes' => [ 'stdClass', 'MyClass' ] ];
1248+
}
1249+
);
12441250
"""
12451251

12461252
When I try `wp search-replace cereal_marker cereal_replaced`

0 commit comments

Comments
 (0)