Skip to content

Commit 9d8c415

Browse files
committed
lints
1 parent 807b7a9 commit 9d8c415

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/wp-includes/html-api/class-wp-html-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public function add_lexical_update( WP_HTML_Text_Replacement $update ): void {
259259
)
260260
)
261261
);
262-
$last_offset = $match_at + $match_length;
262+
$last_offset = $match_at + $match_length;
263263
} elseif ( $replacement instanceof self ) {
264264
_doing_it_wrong(
265265
__METHOD__,

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -167,37 +167,37 @@ public function test_template( string $template_string, array $replacements, str
167167

168168
public static function data_template() {
169169
return array(
170-
'basic template (no placeholders)' => array(
170+
'basic template (no placeholders)' => array(
171171
'<p>Hi!</p>',
172172
array(),
173173
'<p>Hi!</p>',
174174
),
175175

176-
'basic text replacement' => array(
176+
'basic text replacement' => array(
177177
'<p>Hello, </%name>!</p>',
178178
array( 'name' => 'World' ),
179179
'<p>Hello, World!</p>',
180180
),
181181

182-
'escapes special characters in text' => array(
182+
'escapes special characters in text' => array(
183183
'<p>Hello, </%placeholder>!</p>',
184184
array( 'placeholder' => 'Alice & Bob' ),
185185
'<p>Hello, Alice &amp; Bob!</p>',
186186
),
187187

188-
'escapes angle brackets in text' => array(
188+
'escapes angle brackets in text' => array(
189189
'<p>Hello, </%name>!</p>',
190190
array( 'name' => '<little-bobby-tags>' ),
191191
'<p>Hello, &lt;little-bobby-tags&gt;!</p>',
192192
),
193193

194-
'numeric placeholders' => array(
194+
'numeric placeholders' => array(
195195
'<p>Hello, </%0> and </%1>!</p>',
196196
array( 'Alice', 'Bob' ),
197197
'<p>Hello, Alice and Bob!</p>',
198198
),
199199

200-
'repeated placeholders' => array(
200+
'repeated placeholders' => array(
201201
'<p></%0>, </% 0 >, </%name>, & </%name>!</p>',
202202
array(
203203
'Alice',
@@ -206,13 +206,13 @@ public static function data_template() {
206206
'<p>Alice, Alice, Bob, &amp; Bob!</p>',
207207
),
208208

209-
'nested template replacement' => array(
209+
'nested template replacement' => array(
210210
'<p>Hello, </%html>',
211211
array( 'html' => WP_HTML_Template::from( '<i>Alice</i> & <i>Bob</i>' ) ),
212212
'<p>Hello, <i>Alice</i> &amp; <i>Bob</i></p>',
213213
),
214214

215-
'replaces attribute values' => array(
215+
'replaces attribute values' => array(
216216
'<meta name="</%n>" content="</%c>">',
217217
array(
218218
'n' => 'the name',
@@ -221,7 +221,7 @@ public static function data_template() {
221221
'<meta name="the name" content="the content">',
222222
),
223223

224-
'escapes attribute values' => array(
224+
'escapes attribute values' => array(
225225
'<meta content="</%c>">',
226226
array(
227227
'c' => 'the "content" & whatever else',

0 commit comments

Comments
 (0)