summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/Translate/ffs/DtdFFS.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/extensions/Translate/ffs/DtdFFS.php')
-rw-r--r--www/wiki/extensions/Translate/ffs/DtdFFS.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/www/wiki/extensions/Translate/ffs/DtdFFS.php b/www/wiki/extensions/Translate/ffs/DtdFFS.php
index cab36efd..aed82fca 100644
--- a/www/wiki/extensions/Translate/ffs/DtdFFS.php
+++ b/www/wiki/extensions/Translate/ffs/DtdFFS.php
@@ -7,7 +7,7 @@
* @author Niklas Laxström
* @author Siebrand Mazeland
* @copyright Copyright © 2009-2010, Guillaume Duhamel, Niklas Laxström, Siebrand Mazeland
- * @license GPL-2.0+
+ * @license GPL-2.0-or-later
*/
/**
@@ -17,16 +17,16 @@
*/
class DtdFFS extends SimpleFFS {
public function getFileExtensions() {
- return array( '.dtd' );
+ return [ '.dtd' ];
}
/**
- * @param $data string
+ * @param string $data
* @return array Parsed data.
*/
public function readFromVariable( $data ) {
preg_match_all( ',# Author: ([^\n]+)\n,', $data, $matches );
- $authors = array();
+ $authors = [];
$count = count( $matches[1] );
for ( $i = 0; $i < $count; $i++ ) {
@@ -38,22 +38,22 @@ class DtdFFS extends SimpleFFS {
$keys = $matches[1];
$values = $matches[2];
- $messages = array();
+ $messages = [];
$count = count( $matches[1] );
for ( $i = 0; $i < $count; $i++ ) {
$messages[$keys[$i]] = str_replace(
- array( '&quot;', '&#34;', '&#39;' ),
- array( '"', '"', "'" ),
+ [ '&quot;', '&#34;', '&#39;' ],
+ [ '"', '"', "'" ],
$values[$i] );
}
$messages = $this->group->getMangler()->mangle( $messages );
- return array(
+ return [
'AUTHORS' => $authors,
'MESSAGES' => $messages,
- );
+ ];
}
protected function writeReal( MessageCollection $collection ) {