[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
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

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