X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Flanguage%2Fdate-formats.php;h=f93c506a36e6989c07312ebbe7684ad5e4fb7115;hb=faf7cc4a09848c538320bd2b9067b1a77c0a0183;hp=146341855ebf8c0ece2c0e81a23068bc8d186290;hpb=5c5fb511c70346a660cb6aa388cc677e11d3bdab;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/language/date-formats.php b/maintenance/language/date-formats.php index 146341855e..f93c506a36 100644 --- a/maintenance/language/date-formats.php +++ b/maintenance/language/date-formats.php @@ -34,14 +34,14 @@ class DateFormats extends Maintenance { 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; } @@ -50,7 +50,7 @@ class DateFormats extends Maintenance { $lang = Language::factory( $code ); $prefs = $lang->getDatePreferences(); if ( !$prefs ) { - $prefs = array( 'default' ); + $prefs = [ 'default' ]; } $this->output( "date: " ); foreach ( $prefs as $index => $pref ) { @@ -78,5 +78,5 @@ class DateFormats extends Maintenance { } } -$maintClass = "DateFormats"; +$maintClass = DateFormats::class; require_once RUN_MAINTENANCE_IF_MAIN;