Skip to content

Commit c7e0057

Browse files
committed
lints
1 parent e6e9b87 commit c7e0057

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

tests/phpunit/tests/html-api/wpHtmlTemplate.php

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,12 @@ public function test_nested_templates_in_definition_list() {
557557
*/
558558
public function test_table_row_template_with_placeholders() {
559559
$result = WP_HTML_Template::from( '<tr><td></%cell1></td><td></%cell2></td></tr>' )
560-
->bind( array( 'cell1' => 'Hello', 'cell2' => 'World' ) )
560+
->bind(
561+
array(
562+
'cell1' => 'Hello',
563+
'cell2' => 'World',
564+
)
565+
)
561566
->render();
562567

563568
// Use assertStringContainsString to verify table elements aren't discarded.
@@ -1041,19 +1046,19 @@ public function test_boolean_attribute_handling( string $template, array $replac
10411046

10421047
public static function data_boolean_attribute_handling() {
10431048
return array(
1044-
'true creates boolean attribute' => array(
1049+
'true creates boolean attribute' => array(
10451050
'<input disabled="</%disabled>">',
10461051
array( 'disabled' => true ),
10471052
'<input disabled>',
10481053
),
10491054

1050-
'false removes attribute' => array(
1055+
'false removes attribute' => array(
10511056
'<input disabled="</%disabled>" type="text">',
10521057
array( 'disabled' => false ),
10531058
'<input type="text">',
10541059
),
10551060

1056-
'null removes attribute' => array(
1061+
'null removes attribute' => array(
10571062
'<input class="</%class>" type="text">',
10581063
array( 'class' => null ),
10591064
'<input type="text">',
@@ -1065,7 +1070,7 @@ public static function data_boolean_attribute_handling() {
10651070
'<input value="">',
10661071
),
10671072

1068-
'mixed boolean and string replacements' => array(
1073+
'mixed boolean and string replacements' => array(
10691074
'<input disabled="</%d>" value="</%v>">',
10701075
array(
10711076
'd' => true,
@@ -1074,7 +1079,7 @@ public static function data_boolean_attribute_handling() {
10741079
'<input disabled value="test">',
10751080
),
10761081

1077-
'multiple attributes, one removed' => array(
1082+
'multiple attributes, one removed' => array(
10781083
'<input class="</%c>" id="</%i>" name="field">',
10791084
array(
10801085
'c' => false,
@@ -1083,7 +1088,7 @@ public static function data_boolean_attribute_handling() {
10831088
'<input id="my-id" name="field">',
10841089
),
10851090

1086-
'single-quoted attribute with boolean' => array(
1091+
'single-quoted attribute with boolean' => array(
10871092
"<input disabled='</%disabled>'>",
10881093
array( 'disabled' => true ),
10891094
'<input disabled>',

0 commit comments

Comments
 (0)