We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 226-230 (lines=5) @@ | ||
| 223 | * @return \DOMText|null Null if $node is a block-level element or no text sibling exists. |
|
| 224 | */ |
|
| 225 | private static function get_adjacent_textnode( callable $iterate, callable $get_adjacent_parent, \DOMNode $node = null ) { |
|
| 226 | if ( ! isset( $node ) ) { |
|
| 227 | return null; |
|
| 228 | } elseif ( $node instanceof \DOMElement && isset( self::$block_tags[ $node->tagName ] ) ) { |
|
| 229 | return null; |
|
| 230 | } |
|
| 231 | ||
| 232 | /** |
|
| 233 | * The result node. |
|
| @@ 309-316 (lines=8) @@ | ||
| 306 | return null; |
|
| 307 | } |
|
| 308 | ||
| 309 | if ( $node instanceof \DOMText ) { |
|
| 310 | return $node; |
|
| 311 | } elseif ( ! $node instanceof \DOMElement ) { |
|
| 312 | // Return null if $node is neither \DOMText nor \DOMElement. |
|
| 313 | return null; |
|
| 314 | } elseif ( $recursive && isset( self::$block_tags[ $node->tagName ] ) ) { |
|
| 315 | return null; |
|
| 316 | } |
|
| 317 | ||
| 318 | $edge_textnode = null; |
|
| 319 | ||