Skip to content

Commit 46c717c

Browse files
committed
lints
1 parent 481644e commit 46c717c

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

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

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -688,24 +688,24 @@ public function test_special_element_content_placeholder_behavior( string $templ
688688
public static function data_atomic_element_content_placeholders() {
689689
return array(
690690
// RAWTEXT elements (SCRIPT, STYLE): Content is truly skipped, placeholders preserved literally.
691-
'SCRIPT content placeholder preserved' => array(
691+
'SCRIPT content placeholder preserved' => array(
692692
'<script>var x = "</%name>";</script>',
693693
'<script>var x = "</%name>";</script>',
694694
),
695695

696-
'STYLE content placeholder preserved' => array(
696+
'STYLE content placeholder preserved' => array(
697697
'<style>.foo { content: "</%content>"; }</style>',
698698
'<style>.foo { content: "</%content>"; }</style>',
699699
),
700700

701701
// RCDATA elements (TITLE, TEXTAREA): Content is processed but placeholder
702702
// patterns are not recognized - they're treated as literal text and escaped.
703-
'TITLE content placeholder escaped' => array(
703+
'TITLE content placeholder escaped' => array(
704704
'<title>Hello </%name></title>',
705705
'<title>Hello &lt;/%name&gt;</title>',
706706
),
707707

708-
'TEXTAREA content placeholder escaped' => array(
708+
'TEXTAREA content placeholder escaped' => array(
709709
'<textarea></%placeholder></textarea>',
710710
'<textarea>&lt;/%placeholder&gt;</textarea>',
711711
),
@@ -735,21 +735,21 @@ public function test_pre_element_leading_newline_behavior( string $template_stri
735735

736736
public static function data_pre_element_leading_newline() {
737737
return array(
738-
'PRE without newline' => array(
739-
"<pre></%code></pre>",
740-
array( 'code' => "line1\nline2"),
738+
'PRE without newline' => array(
739+
'<pre></%code></pre>',
740+
array( 'code' => "line1\nline2" ),
741741
"<pre>line1\nline2</pre>",
742742
),
743743

744-
'PRE with newline' => array(
744+
'PRE with newline' => array(
745745
"<pre>\n</%code></pre>",
746-
array( 'code' => "line1\nline2"),
746+
array( 'code' => "line1\nline2" ),
747747
"<pre>line1\nline2</pre>",
748748
),
749749

750-
'PRE with newline in replacement' => array(
750+
'PRE with newline in replacement' => array(
751751
"<pre>\n</%code></pre>",
752-
array( 'code' => "line1\nline2"),
752+
array( 'code' => "line1\nline2" ),
753753
"<pre>line1\nline2</pre>",
754754
),
755755

@@ -792,7 +792,12 @@ public function test_bind_warns_on_missing_key() {
792792
*/
793793
public function test_bind_warns_on_unused_key() {
794794
$template = T::from( '<p></%name></p>' );
795-
$template->bind( array( 'name' => 'Alice', 'extra' => 'ignored' ) );
795+
$template->bind(
796+
array(
797+
'name' => 'Alice',
798+
'extra' => 'ignored',
799+
)
800+
);
796801
}
797802

798803
/**

0 commit comments

Comments
 (0)