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:
parent
7ed687ff15
commit
3b6fc0a4d9
@ -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'],
|
||||
);
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user