We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 272-279 (lines=8) @@ | ||
| 269 | $query_parts[] = '//*[@id=\'' . implode( '\' or @id=\'', $settings['ignoreIDs'] ) . '\']'; |
|
| 270 | } |
|
| 271 | ||
| 272 | if ( ! empty( $query_parts ) ) { |
|
| 273 | $ignore_query = implode( ' | ', $query_parts ); |
|
| 274 | ||
| 275 | $nodelist = $xpath->query( $ignore_query, $initial_node ); |
|
| 276 | if ( false !== $nodelist ) { |
|
| 277 | $elements = DOM::nodelist_to_array( $nodelist ); |
|
| 278 | } |
|
| 279 | } |
|
| 280 | ||
| 281 | return $elements; |
|
| 282 | } |
|
| @@ 306-315 (lines=10) @@ | ||
| 303 | if ( ! empty( $html_fragment ) ) { |
|
| 304 | $imported_fragment = $node->ownerDocument->importNode( $html_fragment, true ); |
|
| 305 | ||
| 306 | if ( ! empty( $imported_fragment ) ) { |
|
| 307 | // Save the children of the imported DOMDocumentFragment before replacement. |
|
| 308 | $children = DOM::nodelist_to_array( $imported_fragment->childNodes ); |
|
| 309 | ||
| 310 | if ( false !== $parent->replaceChild( $imported_fragment, $node ) ) { |
|
| 311 | // Success! We return the saved array of DOMNodes as |
|
| 312 | // $imported_fragment is just an empty DOMDocumentFragment now. |
|
| 313 | $result = $children; |
|
| 314 | } |
|
| 315 | } |
|
| 316 | } |
|
| 317 | ||
| 318 | restore_error_handler(); |
|