We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 299-306 (lines=8) @@ | ||
| 296 | $query_parts[] = '//*[@id=\'' . implode( '\' or @id=\'', $settings['ignoreIDs'] ) . '\']'; |
|
| 297 | } |
|
| 298 | ||
| 299 | if ( ! empty( $query_parts ) ) { |
|
| 300 | $ignore_query = implode( ' | ', $query_parts ); |
|
| 301 | ||
| 302 | $nodelist = $xpath->query( $ignore_query, $initial_node ); |
|
| 303 | if ( false !== $nodelist ) { |
|
| 304 | $elements = DOM::nodelist_to_array( $nodelist ); |
|
| 305 | } |
|
| 306 | } |
|
| 307 | ||
| 308 | return $elements; |
|
| 309 | } |
|
| @@ 333-342 (lines=10) @@ | ||
| 330 | if ( ! empty( $html_fragment ) ) { |
|
| 331 | $imported_fragment = $node->ownerDocument->importNode( $html_fragment, true ); |
|
| 332 | ||
| 333 | if ( ! empty( $imported_fragment ) ) { |
|
| 334 | // Save the children of the imported DOMDocumentFragment before replacement. |
|
| 335 | $children = DOM::nodelist_to_array( $imported_fragment->childNodes ); |
|
| 336 | ||
| 337 | if ( false !== $parent->replaceChild( $imported_fragment, $node ) ) { |
|
| 338 | // Success! We return the saved array of DOMNodes as |
|
| 339 | // $imported_fragment is just an empty DOMDocumentFragment now. |
|
| 340 | $result = $children; |
|
| 341 | } |
|
| 342 | } |
|
| 343 | } |
|
| 344 | ||
| 345 | restore_error_handler(); |
|