/**
* Compatibility functions
*
- * We support PHP 5.3.2 and up.
+ * We support PHP 5.3.3 and up.
* Re-implementations of newer functions or functions in non-standard
* PHP extensions may be included here.
*/
// Figure out which clusters need to be checked
$lbs = array();
if ( $cluster === '*' ) {
- wfGetLBFactory()->forEachLB( function( LoadBalancer $lb ) use ( &$lbs ) {
+ wfGetLBFactory()->forEachLB( function ( LoadBalancer $lb ) use ( &$lbs ) {
$lbs[] = $lb;
} );
} elseif ( $cluster !== false ) {
if ( $channel === 'wfLogDBError' ) {
// wfLogDBError messages are emitted if a database log location is
// specfied.
- $shouldEmit = (bool) $wgDBerrorLog;
+ $shouldEmit = (bool)$wgDBerrorLog;
} elseif ( $channel === 'wfErrorLog' ) {
// All messages on the wfErrorLog channel should be emitted.
}
// Workaround for https://bugs.php.net/bug.php?id=52063
- // Can be removed when min PHP > 5.3.2
+ // Can be removed when min PHP > 5.3.6
if ( $cachedTimezone === null ) {
$d = date_create( 'now' );
} else {