Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pomo/plural-forms.php

    r46586 r47122  
    104104
    105105            switch ( $next ) {
    106                 // Ignore whitespace
     106                // Ignore whitespace.
    107107                case ' ':
    108108                case "\t":
     
    110110                    break;
    111111
    112                 // Variable (n)
     112                // Variable (n).
    113113                case 'n':
    114114                    $output[] = array( 'var' );
     
    116116                    break;
    117117
    118                 // Parentheses
     118                // Parentheses.
    119119                case '(':
    120120                    $stack[] = $next;
     
    144144                    break;
    145145
    146                 // Operators
     146                // Operators.
    147147                case '|':
    148148                case '&':
     
    162162                        $o2 = $stack[ count( $stack ) - 1 ];
    163163
    164                         // Ternary is right-associative in C
     164                        // Ternary is right-associative in C.
    165165                        if ( $operator === '?:' || $operator === '?' ) {
    166166                            if ( self::$op_precedence[ $operator ] >= self::$op_precedence[ $o2 ] ) {
     
    178178                    break;
    179179
    180                 // Ternary "else"
     180                // Ternary "else".
    181181                case ':':
    182182                    $found = false;
     
    202202                    break;
    203203
    204                 // Default - number or invalid
     204                // Default - number or invalid.
    205205                default:
    206206                    if ( $next >= '0' && $next <= '9' ) {
Note: See TracChangeset for help on using the changeset viewer.