Skip to content

Commit

Permalink
WPCS Nags
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Dec 18, 2023
1 parent 35488ec commit 1e0077f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function data_external_html5lib_tests() {
* @param string $html Given test HTML.
* @return string|null Tree structure of parsed HTML, if supported, else null.
*/
static function build_html5_treelike_string( $fragment_context, $html ) {
public static function build_html5_treelike_string( $fragment_context, $html ) {
$p = WP_HTML_Processor::create_fragment( $html, "<{$fragment_context}>" );
if ( null === $p ) {
return null;
Expand Down Expand Up @@ -104,7 +104,7 @@ static function build_html5_treelike_string( $fragment_context, $html ) {
* @return array|Generator Test triplets of HTML fragment context element,
* HTML, and the DOM structure it represents.
*/
static function parse_html5_dat_testfile( $filename ) {
public static function parse_html5_dat_testfile( $filename ) {
$handle = fopen( $filename, 'r', false );

/**
Expand Down Expand Up @@ -195,4 +195,3 @@ static function parse_html5_dat_testfile( $filename ) {
return array( $line_number, $test_context_element, $test_html, $test_dom );
}
}

0 comments on commit 1e0077f

Please sign in to comment.