Use short form array syntax everywhere

- Add short form array syntax to po2php.php generation
This commit is contained in:
Hypolite Petovan 2018-01-15 08:05:12 -05:00
commit e36f2bb1fb
212 changed files with 5160 additions and 5160 deletions

View file

@ -45,7 +45,7 @@ function theme_admin_post(App $a) {
/// @TODO $a is no longer used
function clean_form(App $a, &$colorset, $user) {
$colorset = array(
$colorset = [
'default' =>t('default'),
'greenzero' =>t('greenzero'),
'purplezero' =>t('purplezero'),
@ -53,7 +53,7 @@ function clean_form(App $a, &$colorset, $user) {
'darkzero' =>t('darkzero'),
'comix' =>t('comix'),
'slackr' =>t('slackr'),
);
];
if ($user) {
$color = PConfig::get(local_user(), 'duepuntozero', 'colorset');
@ -63,12 +63,12 @@ function clean_form(App $a, &$colorset, $user) {
$t = get_markup_template("theme_settings.tpl" );
/// @TODO No need for adding string here, $o is not defined
$o .= replace_macros($t, array(
$o .= replace_macros($t, [
'$submit' => t('Submit'),
'$baseurl' => System::baseUrl(),
'$title' => t("Theme settings"),
'$colorset' => array('duepuntozero_colorset', t('Variations'), $color, '', $colorset),
));
'$colorset' => ['duepuntozero_colorset', t('Variations'), $color, '', $colorset],
]);
return $o;
}