Make WordPress Core

Changeset 60808

Timestamp:
09/29/2025 10:11:26 AM (11 days ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/compat-utf8.php

    r60794 r60808  
    4444 */
    4545function _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++ ) {
Note: See TracChangeset for help on using the changeset viewer.