* @ingroup MaintenanceLanguage
*/
-require_once( __DIR__ . '/../Maintenance.php' );
+require_once __DIR__ . '/../Maintenance.php';
/**
* Maintenance script that tests various language time and date functions.
public function __construct() {
parent::__construct();
- $this->mDescription = "Test various language time and date functions";
+ $this->addDescription( 'Test various language time and date functions' );
}
public function execute() {
global $IP;
foreach ( glob( "$IP/languages/messages/Messages*.php" ) as $filename ) {
$base = basename( $filename );
- $m = array();
+ $m = [];
if ( !preg_match( '/Messages(.*)\.php$/', $base, $m ) ) {
continue;
}
$lang = Language::factory( $code );
$prefs = $lang->getDatePreferences();
if ( !$prefs ) {
- $prefs = array( 'default' );
+ $prefs = [ 'default' ];
}
$this->output( "date: " );
foreach ( $prefs as $index => $pref ) {