X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=maintenance%2Flanguage%2Fdigit2html.php;h=5bdc8a7894e55f3abc049d21dd75573199131612;hb=adae996840b9e782f6e14b21c433a83e37c3a74e;hp=eddfa261ae85f8a80d53e4b8362387c9165fd36e;hpb=7489189d7c13448114963520fb383cb2c7765b1e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/language/digit2html.php b/maintenance/language/digit2html.php index eddfa261ae..5bdc8a7894 100644 --- a/maintenance/language/digit2html.php +++ b/maintenance/language/digit2html.php @@ -32,12 +32,12 @@ class Digit2Html extends Maintenance { # A list of unicode numerals is available at: # http://www.fileformat.info/info/unicode/category/Nd/list.htm - private $mLangs = array( + private $mLangs = [ 'Ar', 'As', 'Bh', 'Bo', 'Dz', 'Fa', 'Gu', 'Hi', 'Km', 'Kn', 'Ks', 'Lo', 'Ml', 'Mr', 'Ne', 'New', 'Or', 'Pa', 'Pi', 'Sa' - ); + ]; public function __construct() { parent::__construct(); @@ -55,12 +55,12 @@ class Digit2Html extends Maintenance { 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" ); } } }