Index: trunk/phase3/includes/SpecialVersion.php |
— | — | @@ -235,12 +235,12 @@ |
236 | 236 | function listToText( $list ) { |
237 | 237 | $cnt = count( $list ); |
238 | 238 | |
239 | | - if ( $cnt == 1 ) |
| 239 | + if ( $cnt == 1 ) { |
240 | 240 | // Enforce always returning a string |
241 | 241 | return (string)$this->arrayToString( $list[0] ); |
242 | | - elseif ( $cnt == 0 ) |
| 242 | + } elseif ( $cnt == 0 ) { |
243 | 243 | return ''; |
244 | | - else { |
| 244 | + } else { |
245 | 245 | $t = array_slice( $list, 0, $cnt - 1 ); |
246 | 246 | $one = array_map( array( &$this, 'arrayToString' ), $t ); |
247 | 247 | $two = $this->arrayToString( $list[$cnt - 1] ); |
— | — | @@ -257,9 +257,9 @@ |
258 | 258 | * @return mixed |
259 | 259 | */ |
260 | 260 | function arrayToString( $list ) { |
261 | | - if ( ! is_array( $list ) ) |
| 261 | + if ( ! is_array( $list ) ) { |
262 | 262 | return $list; |
263 | | - else { |
| 263 | + } else { |
264 | 264 | $class = get_class( $list[0] ); |
265 | 265 | return "($class, {$list[1]})"; |
266 | 266 | } |