Skip to content

Commit eac8e90

Browse files
Apply suggestions/improvements from code review.
Co-Authored-By: ricknox <ricardo@43.nl>
1 parent 535d3a9 commit eac8e90

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

event_dispatcher/before_after_filters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ event listeners, you can learn more about them at :doc:`/event_dispatcher`::
154154
{
155155
return [
156156
KernelEvents::CONTROLLER => 'onKernelController',
157-
);
157+
];
158158
}
159159
}
160160

form/disabling_validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ these cases you can set the ``validation_groups`` option to ``false``::
1313
{
1414
$resolver->setDefaults([
1515
'validation_groups' => false,
16-
] );
16+
]);
1717
}
1818

1919
Note that when you do that, the form will still run basic integrity checks,

form/without_class.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ but here's a short example::
8989
$builder
9090
->add('firstName', TextType::class, [
9191
'constraints' => new Length(['min' => 3]),
92-
))
92+
])
9393
->add('lastName', TextType::class, [
9494
'constraints' => [
9595
new NotBlank(),

logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ one of the messages reaches an ``action_level``. Take this example:
249249
'level' => 'error',
250250
],
251251
),
252-
));
252+
]);
253253
254254
Now, if even one log entry has an ``error`` level or higher, then *all* log entries
255255
for that request are saved to a file via the ``file_log`` handler. That means that

reference/forms/types/options/label_attr.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ template:
2121
echo $view['form']->label(
2222
$form['name'],
2323
'Your name',
24-
['label_attr' => [['class' => 'CUSTOM_LABEL_CLASS']]
24+
['label_attr' => ['class' => 'CUSTOM_LABEL_CLASS']]
2525
);

reference/forms/types/options/preferred_choices.rst.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ you can list the most popular on top, like Bork Bork and Pirate::
1111
// ...
1212

1313
$builder->add('language', ChoiceType::class, [
14-
'choices' => [
14+
'choices' => [
1515
'English' => 'en',
1616
'Spanish' => 'es',
1717
'Bork' => 'muppets',

validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ of the form fields::
487487
$builder
488488
->add('myField', TextType::class, [
489489
'required' => true,
490-
'constraints' => [new Length(['min' => 3]))
490+
'constraints' => [new Length(['min' => 3])]
491491
))
492492
;
493493
}

0 commit comments

Comments
 (0)