1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/10824] Use short array syntax

PHPBB3-10824
This commit is contained in:
Marc Alexander
2020-10-30 21:49:20 +01:00
parent 7ed687ff15
commit 3b6fc0a4d9

View File

@@ -88,7 +88,7 @@ class language_file_helper
throw new \DomainException('INVALID_LANGUAGE_PACK');
}
$authors = array();
$authors = [];
if (isset($data['authors']))
{
foreach ($data['authors'] as $author)
@@ -100,13 +100,13 @@ class language_file_helper
}
}
return array(
return [
'iso' => $data['extra']['language-iso'],
'name' => $data['extra']['english-name'],
'local_name' => $data['extra']['local-name'],
'author' => implode(', ', $authors),
'version' => $data['version'],
'phpbb_version' => $data['extra']['phpbb-version'],
);
];
}
}