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