From 812c72ad8c16c4f34fea8d96a85561069476bdab Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 18 Jan 2012 13:29:06 +0100 Subject: [PATCH] fixed CS --- .../Extension/Validator/Validator/DelegatingValidator.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php b/src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php index d1df51e647..5c906421c7 100644 --- a/src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php +++ b/src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php @@ -153,8 +153,7 @@ class DelegatingValidator implements FormValidatorInterface private function buildFormPathMapping(FormInterface $form, array &$mapping, $formPath = 'children', $namePath = '') { - foreach ($form->getAttribute('error_mapping') as $nestedDataPath => $nestedNamePath) - { + foreach ($form->getAttribute('error_mapping') as $nestedDataPath => $nestedNamePath) { $mapping['/^'.preg_quote($formPath.'.data.'.$nestedDataPath).'(?!\w)/'] = $namePath.'.'.$nestedNamePath; } @@ -188,8 +187,7 @@ class DelegatingValidator implements FormValidatorInterface private function buildDataPathMapping(FormInterface $form, array &$mapping, $dataPath = 'data', $namePath = '') { - foreach ($form->getAttribute('error_mapping') as $nestedDataPath => $nestedNamePath) - { + foreach ($form->getAttribute('error_mapping') as $nestedDataPath => $nestedNamePath) { $mapping['/^'.preg_quote($dataPath.'.'.$nestedDataPath).'(?!\w)/'] = $namePath.'.'.$nestedNamePath; }