Skip to content

Commit 1101b3d

Browse files
committed
Fix lint
1 parent 4fdc37b commit 1101b3d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ public function data_external_html5lib_tests() {
9494

9595
foreach ( self::parse_html5_dat_testfile( $test_dir . $entry ) as $k => $test ) {
9696
// strip .dat extension from filename
97-
$test_suite = substr( $entry, 0, strlen( $entry ) - 4 );
98-
$line = str_pad( strval( $test[0] ), 4, '0', STR_PAD_LEFT );
97+
$test_suite = substr( $entry, 0, -4 );
98+
$line = str_pad( strval( $test[0] ), 4, '0', STR_PAD_LEFT );
9999

100100
yield "{$test_suite}/line{$line}" => array_slice( $test, 1 );
101101
}

0 commit comments

Comments
 (0)