1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-14 12:52:08 +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
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');
}
$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'],
);
];
}
}