We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 232-234 (lines=3) @@ | ||
| 229 | $previous_length = $strlen( $previous_character ); |
|
| 230 | $next_length = $strlen( $next_character ); |
|
| 231 | ||
| 232 | if ( $previous_length > 0 && $previous_character !== $substr( $node_data, $previous_length ) ) { |
|
| 233 | $previous_length = self::calc_adjacent_length( $previous_length, $node_data, $quotes, $substr, $strlen, false ); |
|
| 234 | } |
|
| 235 | if ( $next_length > 0 && $next_character !== $substr( $node_data, -$next_length ) ) { |
|
| 236 | $next_length = self::calc_adjacent_length( $next_length, $node_data, $quotes, $substr, $strlen, true ); |
|
| 237 | } |
|
| @@ 235-237 (lines=3) @@ | ||
| 232 | if ( $previous_length > 0 && $previous_character !== $substr( $node_data, $previous_length ) ) { |
|
| 233 | $previous_length = self::calc_adjacent_length( $previous_length, $node_data, $quotes, $substr, $strlen, false ); |
|
| 234 | } |
|
| 235 | if ( $next_length > 0 && $next_character !== $substr( $node_data, -$next_length ) ) { |
|
| 236 | $next_length = self::calc_adjacent_length( $next_length, $node_data, $quotes, $substr, $strlen, true ); |
|
| 237 | } |
|
| 238 | ||
| 239 | // If we have adjacent characters, remove them from the text. |
|
| 240 | $node_data = self::remove_adjacent_characters( $node_data, $previous_length, $next_length ); |
|