Skip to content

Commit 976966b

Browse files
committed
[CS] Remove unused variables passed to closures
1 parent 984cda4 commit 976966b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Tests/Fixtures/AlternatingRowType.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ class AlternatingRowType extends AbstractType
1111
{
1212
public function buildForm(FormBuilderInterface $builder, array $options)
1313
{
14-
$formFactory = $builder->getFormFactory();
15-
16-
$builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($formFactory) {
14+
$builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
1715
$form = $event->getForm();
1816
$type = 0 === $form->getName() % 2
1917
? 'Symfony\Component\Form\Extension\Core\Type\TextType'

0 commit comments

Comments
 (0)