Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Dec 18, 2023
1 parent 68734db commit 77cfb12
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 77cfb12

Please sign in to comment.