Skip to content

Commit 93e136b

Browse files
committed
moved method to function
1 parent 0829b79 commit 93e136b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Symfony/Bridge/Twig/Extension/FormExtension.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function getTests()
106106
{
107107
return array(
108108
new TwigTest('selectedchoice', 'Symfony\Bridge\Twig\Extension\twig_is_selected_choice'),
109-
new TwigTest('rootform', array($this, 'isRootForm')),
109+
new TwigTest('rootform', 'Symfony\Bridge\Twig\Extension\twig_is_root_form'),
110110
);
111111
}
112112

@@ -166,14 +166,6 @@ public function __unset($name)
166166
unset($this->$name);
167167
}
168168

169-
/**
170-
* @internal
171-
*/
172-
public function isRootForm(FormView $formView)
173-
{
174-
return null === $formView->parent;
175-
}
176-
177169
/**
178170
* {@inheritdoc}
179171
*/
@@ -202,3 +194,11 @@ function twig_is_selected_choice(ChoiceView $choice, $selectedValue)
202194

203195
return $choice->value === $selectedValue;
204196
}
197+
198+
/**
199+
* @internal
200+
*/
201+
function twig_is_root_form(FormView $formView)
202+
{
203+
return null === $formView->parent;
204+
}

0 commit comments

Comments
 (0)