Make WordPress Core


Ignore:
Timestamp:
07/09/2023 09:23:34 PM (21 months ago)
Author:
audrasjb
Message:

Docs: Replace multiple single line comments with multi-line comments.

This changeset updates various comments as per WordPress PHP Inline Documentation Standards.
See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments.

Follow-up to [56174], [56175], [56176], [56177].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-text-diff-renderer-table.php

    r55276 r56178  
    286286                    // Length of all text between <ins> or <del>.
    287287                    $stripped_matches = strlen( strip_tags( implode( ' ', $diff_matches[0] ) ) );
    288                     // Since we count length of text between <ins> or <del> (instead of picking just one),
    289                     // we double the length of chars not in those tags.
     288                    /*
     289                     * Since we count length of text between <ins> or <del> (instead of picking just one),
     290                     * we double the length of chars not in those tags.
     291                     */
    290292                    $stripped_diff = strlen( strip_tags( $diff ) ) * 2 - $stripped_matches;
    291293                    $diff_ratio    = $stripped_matches / $stripped_diff;
     
    417419        $final_rows     = array_keys( $final_matches );
    418420
    419         // Interleaves rows with blanks to keep matches aligned.
    420         // We may end up with some extraneous blank rows, but we'll just ignore them later.
     421        /*
     422         * Interleaves rows with blanks to keep matches aligned.
     423         * We may end up with some extraneous blank rows, but we'll just ignore them later.
     424         */
    421425        foreach ( $orig_rows_copy as $orig_row ) {
    422426            $final_pos = array_search( $orig_matches[ $orig_row ], $final_rows, true );
Note: See TracChangeset for help on using the changeset viewer.