We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 195-201 (lines=7) @@ | ||
| 192 | * @param Settings $settings The settings to apply. |
|
| 193 | * @param bool $is_title Optional. Default false. |
|
| 194 | */ |
|
| 195 | protected function apply_fixes_to_html_node( \DOMText $textnode, Settings $settings, $is_title = false ) { |
|
| 196 | foreach ( $this->get_registry()->get_node_fixes() as $group => $fixes ) { |
|
| 197 | foreach ( $fixes as $fix ) { |
|
| 198 | $fix->apply( $textnode, $settings, $is_title ); |
|
| 199 | } |
|
| 200 | } |
|
| 201 | } |
|
| 202 | ||
| 203 | /** |
|
| 204 | * Applies typography fixes specific to RSS feeds to a textnode. |
|
| @@ 210-218 (lines=9) @@ | ||
| 207 | * @param Settings $settings The settings to apply. |
|
| 208 | * @param bool $is_title Optional. Default false. |
|
| 209 | */ |
|
| 210 | protected function apply_fixes_to_feed_node( \DOMText $textnode, Settings $settings, $is_title = false ) { |
|
| 211 | foreach ( $this->get_registry()->get_node_fixes() as $group => $fixes ) { |
|
| 212 | foreach ( $fixes as $fix ) { |
|
| 213 | if ( $fix->feed_compatible() ) { |
|
| 214 | $fix->apply( $textnode, $settings, $is_title ); |
|
| 215 | } |
|
| 216 | } |
|
| 217 | } |
|
| 218 | } |
|
| 219 | ||
| 220 | /** |
|
| 221 | * Parse HTML5 fragment while ignoring certain warnings for invalid HTML code (e.g. duplicate IDs). |
|