Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix lints
  • Loading branch information
sirreal committed Dec 19, 2023
commit 795abba0072acba9f0a7ac66e57c7b80ed784630
6 changes: 3 additions & 3 deletions tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ public function data_external_html5lib_tests() {

$handle = opendir( $test_dir );
while ( false !== ( $entry = readdir( $handle ) ) ) {
if ( !stripos( $entry, '.dat' ) ) {
if ( ! stripos( $entry, '.dat' ) ) {
continue;
}

foreach (self::parse_html5_dat_testfile($test_dir . $entry) as $k => $test) {
foreach ( self::parse_html5_dat_testfile( $test_dir . $entry ) as $k => $test ) {
yield "{$entry}/case {$k}" => $test;
}
}
Expand All @@ -51,7 +51,7 @@ static function build_html5_treelike_string( $html ) {
$output = "<html>\n <head>\n <body>\n";
while ( $p->next_tag() ) {
// breadcrumbs include our tag, so skip 1 nesting level
foreach ( $p->get_breadcrumbs() as $index => $_) {
foreach ( $p->get_breadcrumbs() as $index => $_ ) {
if ( $index ) {
$output .= ' ';
}
Expand Down