From 937e74671cc1e9e7028656b6e54acc225a20a6d3 Mon Sep 17 00:00:00 2001 From: Robin Krahnen Date: Wed, 19 Aug 2020 13:56:55 +0200 Subject: [PATCH] code style --- Classes/Validation/Validator/SettingsValidator.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Classes/Validation/Validator/SettingsValidator.php b/Classes/Validation/Validator/SettingsValidator.php index 0cdd08c..8b825d8 100644 --- a/Classes/Validation/Validator/SettingsValidator.php +++ b/Classes/Validation/Validator/SettingsValidator.php @@ -142,13 +142,11 @@ class SettingsValidator extends AbstractValidator */ protected function doesValidationGroupsMatch(array $validatorConfig): bool { - return - !isset($validatorConfig['options']['validationGroups']) + return !isset($validatorConfig['options']['validationGroups']) || \array_intersect( $validatorConfig['options']['validationGroups'], $this->options['validationGroups'] - ) !== [] - ; + ) !== []; } /**