reformat code

This commit is contained in:
Robin Krahnen 2020-05-04 22:23:54 +02:00
parent 362b37b6d6
commit 72904639a4

View file

@ -47,7 +47,7 @@ class SettingsValidator extends AbstractValidator
['Default'], ['Default'],
'Same as "Validation Groups" of Flow Framework. Defines the groups to execute.', 'Same as "Validation Groups" of Flow Framework. Defines the groups to execute.',
'array', 'array',
false false,
], ],
]; ];
@ -147,6 +147,7 @@ class SettingsValidator extends AbstractValidator
} }
} }
} }
return $config; return $config;
} }
@ -158,7 +159,15 @@ class SettingsValidator extends AbstractValidator
*/ */
protected function doesValidationGroupsMatch(array $validatorConfig) protected function doesValidationGroupsMatch(array $validatorConfig)
{ {
if (isset($validatorConfig['options']['validationGroups']) && empty(array_intersect($validatorConfig['options']['validationGroups'], $this->options['validationGroups']))) { if (
isset($validatorConfig['options']['validationGroups'])
&& empty(
array_intersect(
$validatorConfig['options']['validationGroups'],
$this->options['validationGroups']
)
)
) {
return false; return false;
} }