mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[ticket/10824] Use short array syntax
PHPBB3-10824
This commit is contained in:
parent
7ed687ff15
commit
3b6fc0a4d9
1 changed files with 3 additions and 3 deletions
|
@ -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'],
|
||||||
);
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue