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
WPCS Nags
  • Loading branch information
dmsnell authored and sirreal committed Dec 19, 2023
commit f42cc84e1a6332502b42dc0227adc5cc272a3c4e
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 );
}
}