From 1101b3d0cc7a74716832c321af86c44ec848d8b0 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Tue, 16 Jan 2024 15:08:26 +0100 Subject: [PATCH] Fix lint --- tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php b/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php index 8b59a7f57acd4..8dade0a06af68 100644 --- a/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php +++ b/tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php @@ -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 ); }