X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/6bdbe1c589d50c191e02149bdc078ce1a6b1ee38..6f3158f30f33264488887f5a0c8e271cb7d17747:/Form/SessionType.php diff --git a/Form/SessionType.php b/Form/SessionType.php index ef42649..d6f1ba3 100644 --- a/Form/SessionType.php +++ b/Form/SessionType.php @@ -39,7 +39,7 @@ class SessionType extends AbstractType { * * {@inheritdoc} */ - public function buildForm(FormBuilderInterface $builder, array $options) { + public function buildForm(FormBuilderInterface $builder, array $options): void { //Is admin or user with rainfall >= 2 if (!empty($options['raincancel'])) { //Add raincancel item @@ -104,15 +104,12 @@ class SessionType extends AbstractType { ->add('autoattribute', SubmitType::class, ['label' => 'Auto attribute', 'attr' => ['class' => 'submit']]); } } - - //Return form - return $builder; } /** * {@inheritdoc} */ - public function configureOptions(OptionsResolver $resolver) { + public function configureOptions(OptionsResolver $resolver): void { $resolver->setDefaults(['error_bubbling' => true, 'admin' => false, 'dance_choices' => [], 'dance_default' => null, 'dance_favorites' => [], 'date' => null, 'begin' => null, 'length' => null, 'cancel' => false, 'raincancel' => false, 'modify' => false, 'move' => false, 'attribute' => false, 'user' => null, 'session' => null, 'slot_default' => null]); //Add admin @@ -161,7 +158,7 @@ class SessionType extends AbstractType { /** * {@inheritdoc} */ - public function getName() { - return 'rapsys_air_session_edit'; + public function getName(): string { + return 'rapsysair_session_edit'; } }