Use short array syntax (#135)

This commit is contained in:
Simon Schaufelberger
2018-02-10 19:05:19 +01:00
committed by Kevin Papst
parent 4c6158c1ea
commit 5527f29caf
14 changed files with 33 additions and 34 deletions

View File

@@ -29,7 +29,7 @@ class UserPreferencesForm extends AbstractType
{
$builder->add('preferences', CollectionType::class, [
'entry_type' => UserPreferenceType::class,
'entry_options' => array('label' => false),
'entry_options' => ['label' => false],
'allow_add' => false,
'allow_delete' => false,
'label' => false,
@@ -46,7 +46,6 @@ class UserPreferencesForm extends AbstractType
'csrf_protection' => true,
'csrf_field_name' => '_token',
'csrf_token_id' => 'edit_user_preferences',
]);
}
}