Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Jan 16, 2024
1 parent 4fdc37b commit 1101b3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ public function data_external_html5lib_tests() {

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

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

0 comments on commit 1101b3d

Please sign in to comment.