Completed
Pull Request — development (#860)
by
unknown
01:08
created
htdocs_symfony/src/Form/UserRegistrationForm.php 1 patch
Indentation   +81 added lines, -81 removed lines patch added patch discarded remove patch
@@ -27,102 +27,102 @@  discard block
 block discarded – undo
27 27
         $builder
28 28
             ->add(
29 29
                 'username', null, [
30
-                              'attr' => [
31
-                                  'autofocus' => 'autofocus',
32
-                                  'size' => '10%',
33
-                                  'pattern' => '[a-zA-Z0-9_-]{3,60}',
34
-                                  'style' => 'width: 250px;'
35
-                              ],
36
-                              'required' => true,
37
-                              'disabled' => false,
38
-                              'label' => false,
39
-                              'trim' => true
40
-                          ]
30
+                                'attr' => [
31
+                                    'autofocus' => 'autofocus',
32
+                                    'size' => '10%',
33
+                                    'pattern' => '[a-zA-Z0-9_-]{3,60}',
34
+                                    'style' => 'width: 250px;'
35
+                                ],
36
+                                'required' => true,
37
+                                'disabled' => false,
38
+                                'label' => false,
39
+                                'trim' => true
40
+                            ]
41 41
             )
42 42
             ->add(
43 43
                 'firstname', null, [
44
-                               'attr' => [
45
-                                   'size' => '10%',
46
-                                   'minlength' => '3',
47
-                                   'maxlength' => '100',
48
-                                   'style' => 'width: 250px;'
49
-                               ],
50
-                               'required' => false,
51
-                               'disabled' => false,
52
-                               'label' => false,
53
-                               'trim' => true
54
-                           ]
44
+                                'attr' => [
45
+                                    'size' => '10%',
46
+                                    'minlength' => '3',
47
+                                    'maxlength' => '100',
48
+                                    'style' => 'width: 250px;'
49
+                                ],
50
+                                'required' => false,
51
+                                'disabled' => false,
52
+                                'label' => false,
53
+                                'trim' => true
54
+                            ]
55 55
             )
56 56
             ->add(
57 57
                 'lastname', null, [
58
-                              'attr' => [
59
-                                  'size' => '10%',
60
-                                  'minlength' => '3',
61
-                                  'maxlength' => '100',
62
-                                  'style' => 'width: 250px;'
63
-                              ],
64
-                              'required' => false,
65
-                              'disabled' => false,
66
-                              'label' => false,
67
-                              'trim' => true
68
-                          ]
58
+                                'attr' => [
59
+                                    'size' => '10%',
60
+                                    'minlength' => '3',
61
+                                    'maxlength' => '100',
62
+                                    'style' => 'width: 250px;'
63
+                                ],
64
+                                'required' => false,
65
+                                'disabled' => false,
66
+                                'label' => false,
67
+                                'trim' => true
68
+                            ]
69 69
             )
70 70
             ->add(
71 71
                 'country', ChoiceType::Class, [
72
-                             'attr' => [
73
-                                 'expanded' => false,
74
-                                 'multiple' => false,
75
-                                 'style' => 'width: 250px;'
76
-                             ],
77
-                             'choices' => $options['countryList'],
78
-                             'required' => false,
79
-                             'disabled' => false,
80
-                             'label' => false,
81
-                         ]
72
+                                'attr' => [
73
+                                    'expanded' => false,
74
+                                    'multiple' => false,
75
+                                    'style' => 'width: 250px;'
76
+                                ],
77
+                                'choices' => $options['countryList'],
78
+                                'required' => false,
79
+                                'disabled' => false,
80
+                                'label' => false,
81
+                            ]
82 82
             )
83 83
             ->add(
84 84
                 'email', EmailType::Class, [
85
-                           'attr' => [
86
-                               'size' => '10%',
87
-                               'minlength' => '3',
88
-                               'maxlength' => '100',
89
-                               'style' => 'width: 250px;'
90
-                           ],
91
-                           'required' => true,
92
-                           'disabled' => false,
93
-                           'label' => false,
94
-                           'trim' => true
95
-                       ]
85
+                            'attr' => [
86
+                                'size' => '10%',
87
+                                'minlength' => '3',
88
+                                'maxlength' => '100',
89
+                                'style' => 'width: 250px;'
90
+                            ],
91
+                            'required' => true,
92
+                            'disabled' => false,
93
+                            'label' => false,
94
+                            'trim' => true
95
+                        ]
96 96
             )
97 97
             ->add(
98 98
                 'plainPassword', RepeatedType::Class, [
99
-                                   'options' => [
100
-                                       'attr' => [
101
-                                           'size' => '10%',
102
-                                           'minlength' => '8',
103
-                                           'maxlength' => '60',
104
-                                           // TODO: pattern anpassen. Aktuell: Minimum eight characters, at least one letter, one number and one special character.
105
-                                           'pattern' => '^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$',
106
-                                           'style' => 'width: 250px;'
107
-                                       ]
108
-                                   ],
109
-                                   'first_options' => ['label' => false, 'error_bubbling' => true],
110
-                                   'second_options' => ['label' => false],
111
-                                   'required' => true,
112
-                                   'disabled' => false,
113
-                                   'trim' => true,
114
-                                   'type' => PasswordType::class,
115
-                                   'invalid_message' => 'Your passwords do not match.',
116
-                                   'mapped' => false,
117
-                               ]
99
+                                    'options' => [
100
+                                        'attr' => [
101
+                                            'size' => '10%',
102
+                                            'minlength' => '8',
103
+                                            'maxlength' => '60',
104
+                                            // TODO: pattern anpassen. Aktuell: Minimum eight characters, at least one letter, one number and one special character.
105
+                                            'pattern' => '^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$',
106
+                                            'style' => 'width: 250px;'
107
+                                        ]
108
+                                    ],
109
+                                    'first_options' => ['label' => false, 'error_bubbling' => true],
110
+                                    'second_options' => ['label' => false],
111
+                                    'required' => true,
112
+                                    'disabled' => false,
113
+                                    'trim' => true,
114
+                                    'type' => PasswordType::class,
115
+                                    'invalid_message' => 'Your passwords do not match.',
116
+                                    'mapped' => false,
117
+                                ]
118 118
             )
119 119
             ->add(
120 120
                 'tos', CheckboxType::class, [
121
-                         'attr' => [],
122
-                         'label' => false,
123
-                         'mapped' => false,
124
-                         'required' => true,
125
-                     ]
121
+                            'attr' => [],
122
+                            'label' => false,
123
+                            'mapped' => false,
124
+                            'required' => true,
125
+                        ]
126 126
             )
127 127
             ->add(
128 128
                 'submit', SubmitType::class, [
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
     public function configureOptions(OptionsResolver $resolver)
141 141
     : void {
142 142
         $resolver->setDefaults([
143
-                                   'countryList' => [],
144
-                                   'data_class' => UserEntity::class,
145
-                               ]);
143
+                                    'countryList' => [],
144
+                                    'data_class' => UserEntity::class,
145
+                                ]);
146 146
     }
147 147
 }
Please login to merge, or discard this patch.