Skip to content

Commit ff6c5fa

Browse files
Coding Standards: Correct alignment in _wp_scan_utf8().
This resolves a WPCS warning: {{{ Equals sign not aligned with surrounding statements }}} so that the output of `composer format` is clean. Follow-up to [60768]. Props paulbonneau. See #63168. git-svn-id: https://develop.svn.wordpress.org/trunk@60808 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 53d116d commit ff6c5fa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/wp-includes/compat-utf8.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
* @return int How many code points were successfully scanned.
4444
*/
4545
function _wp_scan_utf8( string $bytes, int &$at, int &$invalid_length, ?int $max_bytes = null, ?int $max_code_points = null ): int {
46-
$byte_length = strlen( $bytes );
47-
$end = min( $byte_length, $at + ( $max_bytes ?? PHP_INT_MAX ) );
48-
$invalid_length = 0;
49-
$count = 0;
50-
$max_count = $max_code_points ?? PHP_INT_MAX;
46+
$byte_length = strlen( $bytes );
47+
$end = min( $byte_length, $at + ( $max_bytes ?? PHP_INT_MAX ) );
48+
$invalid_length = 0;
49+
$count = 0;
50+
$max_count = $max_code_points ?? PHP_INT_MAX;
5151

5252
for ( $i = $at; $i < $end && $count <= $max_count; $i++ ) {
5353
/*

0 commit comments

Comments
 (0)