Changeset 41723
- Timestamp:
- 10/04/2017 02:11:27 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pomo/plural-forms.php
r41722 r41723 70 70 * @var array $cache Map of $n => $result 71 71 */ 72 protected $cache = [];72 protected $cache = array(); 73 73 74 74 /** … … 112 112 // Variable (n) 113 113 case 'n': 114 $output[] = [ 'var' ];114 $output[] = array( 'var' ); 115 115 $pos++; 116 116 break; … … 127 127 $o2 = $stack[ count( $stack ) - 1 ]; 128 128 if ( $o2 !== '(' ) { 129 $output[] = [ 'op', array_pop( $stack ) ];129 $output[] = array( 'op', array_pop( $stack ) ); 130 130 continue; 131 131 } … … 171 171 } 172 172 173 $output[] = [ 'op', array_pop( $stack ) ];173 $output[] = array( 'op', array_pop( $stack ) ); 174 174 } 175 175 $stack[] = $operator; … … 185 185 $o2 = $stack[ $s_pos ]; 186 186 if ( $o2 !== '?' ) { 187 $output[] = [ 'op', array_pop( $stack ) ];187 $output[] = array( 'op', array_pop( $stack ) ); 188 188 $s_pos--; 189 189 continue; … … 206 206 if ( $next >= '0' && $next <= '9' ) { 207 207 $span = strspn( $str, self::NUM_CHARS, $pos ); 208 $output[] = [ 'value', intval( substr( $str, $pos, $span ) ) ];208 $output[] = array( 'value', intval( substr( $str, $pos, $span ) ) ); 209 209 $pos += $span; 210 210 continue; … … 221 221 } 222 222 223 $output[] = [ 'op', $o2 ];223 $output[] = array( 'op', $o2 ); 224 224 } 225 225
Note: See TracChangeset
for help on using the changeset viewer.