fixed CS
This commit is contained in:
parent
3d72fae38e
commit
812c72ad8c
@ -153,8 +153,7 @@ class DelegatingValidator implements FormValidatorInterface
|
|||||||
|
|
||||||
private function buildFormPathMapping(FormInterface $form, array &$mapping, $formPath = 'children', $namePath = '')
|
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;
|
$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 = '')
|
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;
|
$mapping['/^'.preg_quote($dataPath.'.'.$nestedDataPath).'(?!\w)/'] = $namePath.'.'.$nestedNamePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user