X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/maintenance/language/digit2html.php diff --git a/maintenance/language/digit2html.php b/maintenance/language/digit2html.php index a80ac014..bb1f3d24 100644 --- a/maintenance/language/digit2html.php +++ b/maintenance/language/digit2html.php @@ -1,5 +1,7 @@ mDescription = "Check digit transformation"; + $this->addDescription( 'Check digit transformation' ); } public function execute() { @@ -41,21 +49,21 @@ class Digit2Html extends Maintenance { $filename = Language::getMessagesFileName( $code ); $this->output( "Loading language [$code] ... " ); unset( $digitTransformTable ); - require_once( $filename ); + require_once $filename; if ( !isset( $digitTransformTable ) ) { $this->error( "\$digitTransformTable not found for lang: $code" ); continue; } - $this->output( "OK\n\$digitTransformTable = array(\n" ); + $this->output( "OK\n\$digitTransformTable = [\n" ); foreach ( $digitTransformTable as $latin => $translation ) { $htmlent = utf8ToHexSequence( $translation ); $this->output( "'$latin' => '$translation', # &#x$htmlent;\n" ); } - $this->output( ");\n" ); + $this->output( "];\n" ); } } } $maintClass = "Digit2Html"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;