Skip to content

Commit 80f9280

Browse files
author
Jeremy BENOIST
committed
CS
1 parent 1357564 commit 80f9280

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/form/sfForm.class.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,8 @@ public function setValidators(array $validators)
610610
*/
611611
public function setValidator($name, sfValidatorBase $validator)
612612
{
613-
if (isset($this->embeddedForms[$name])) {
613+
if (isset($this->embeddedForms[$name]))
614+
{
614615
throw new LogicException('You cannot set a validator for an embedded form.');
615616
}
616617

@@ -635,7 +636,8 @@ public function getValidator($name)
635636
throw new InvalidArgumentException(sprintf('The validator "%s" does not exist.', $name));
636637
}
637638

638-
if (isset($this->embeddedForms[$name])) {
639+
if (isset($this->embeddedForms[$name]))
640+
{
639641
return $this->embeddedForms[$name]->getValidatorSchema();
640642
}
641643

0 commit comments

Comments
 (0)