Skip to content

Commit b0b4f73

Browse files
committed
Fix coding styles issues
1 parent c355059 commit b0b4f73

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/phpunit/tests/abilities-api/wpAbility.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function () {
6262
}
6363

6464
/**
65-
* Tear down after each test.
65+
* Tear down after each test.
6666
*/
6767
public function tear_down(): void {
6868
// Clean up registered categories.
@@ -74,7 +74,7 @@ public function tear_down(): void {
7474
parent::tear_down();
7575
}
7676

77-
/*
77+
/*
7878
* Tests that getting non-existing metadata item returns default value.
7979
*/
8080
public function test_meta_get_non_existing_item_returns_default() {
@@ -196,7 +196,7 @@ public function test_meta_show_in_rest_defaults_to_false() {
196196
* Tests that `show_in_rest` metadata can be set to true.
197197
*/
198198
public function test_meta_show_in_rest_can_be_set_to_true() {
199-
$args = array_merge(
199+
$args = array_merge(
200200
self::$test_ability_properties,
201201
array(
202202
'meta' => array(
@@ -216,7 +216,7 @@ public function test_meta_show_in_rest_can_be_set_to_true() {
216216
* Tests that `show_in_rest` can be set to false.
217217
*/
218218
public function test_show_in_rest_can_be_set_to_false() {
219-
$args = array_merge(
219+
$args = array_merge(
220220
self::$test_ability_properties,
221221
array(
222222
'meta' => array(
@@ -407,7 +407,7 @@ public function my_instance_execute_callback( string $input ): int {
407407
*/
408408
public function data_execute_callback() {
409409
return array(
410-
'function name string' => array(
410+
'function name string' => array(
411411
'strlen',
412412
),
413413
'closure' => array(
@@ -432,7 +432,7 @@ static function ( string $input ): int {
432432
*
433433
* @dataProvider data_execute_callback
434434
*/
435-
public function test_execute_with_different_callbacks( $execute_callback) {
435+
public function test_execute_with_different_callbacks( $execute_callback ) {
436436
$args = array_merge(
437437
self::$test_ability_properties,
438438
array(

tests/phpunit/tests/abilities-api/wpRegisterAbility.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,14 @@ public function test_register_valid_ability(): void {
156156

157157
$result = wp_register_ability( self::$test_ability_name, self::$test_ability_args );
158158

159-
$expected_annotations = array_merge(
159+
$expected_annotations = array_merge(
160160
self::$test_ability_args['meta']['annotations'],
161161
array(
162162
'instructions' => '',
163163
'idempotent' => false,
164164
),
165165
);
166-
$expected_meta = array_merge(
166+
$expected_meta = array_merge(
167167
self::$test_ability_args['meta'],
168168
array(
169169
'annotations' => $expected_annotations,

0 commit comments

Comments
 (0)