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