Changeset 47219 for trunk/src/wp-includes/pomo/plural-forms.php
- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pomo/plural-forms.php
r47122 r47219 126 126 while ( ! empty( $stack ) ) { 127 127 $o2 = $stack[ count( $stack ) - 1 ]; 128 if ( $o2 !== '(') {128 if ( '(' !== $o2 ) { 129 129 $output[] = array( 'op', array_pop( $stack ) ); 130 130 continue; … … 163 163 164 164 // Ternary is right-associative in C. 165 if ( $operator === '?:' || $operator === '?') {165 if ( '?:' === $operator || '?' === $operator ) { 166 166 if ( self::$op_precedence[ $operator ] >= self::$op_precedence[ $o2 ] ) { 167 167 break; … … 184 184 while ( $s_pos >= 0 ) { 185 185 $o2 = $stack[ $s_pos ]; 186 if ( $o2 !== '?') {186 if ( '?' !== $o2 ) { 187 187 $output[] = array( 'op', array_pop( $stack ) ); 188 188 $s_pos--; … … 217 217 while ( ! empty( $stack ) ) { 218 218 $o2 = array_pop( $stack ); 219 if ( $o2 === '(' || $o2 === ')') {219 if ( '(' === $o2 || ')' === $o2 ) { 220 220 throw new Exception( 'Mismatched parentheses' ); 221 221 } … … 260 260 $next = $this->tokens[ $i ]; 261 261 $i++; 262 if ( $next[0] === 'var') {262 if ( 'var' === $next[0] ) { 263 263 $stack[] = $n; 264 264 continue; 265 } elseif ( $next[0] === 'value') {265 } elseif ( 'value' === $next[0] ) { 266 266 $stack[] = $next[1]; 267 267 continue;
Note: See TracChangeset
for help on using the changeset viewer.