From c6e23fdf35703c58d971dfe2ae430318d0d47a4e Mon Sep 17 00:00:00 2001 From: Robin Krahnen Date: Mon, 4 May 2020 23:07:52 +0200 Subject: [PATCH] code guideline --- Classes/Validation/Validator/SettingsValidator.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Classes/Validation/Validator/SettingsValidator.php b/Classes/Validation/Validator/SettingsValidator.php index 4b927b7..19a6ac3 100644 --- a/Classes/Validation/Validator/SettingsValidator.php +++ b/Classes/Validation/Validator/SettingsValidator.php @@ -82,7 +82,7 @@ class SettingsValidator extends AbstractValidator if (!$validator) { throw new InvalidValidationConfigurationException( - sprintf( + \sprintf( 'Validator could not be resolved: "%s" Check your Validation.yaml', $validatorConfig['validator'] ), @@ -110,7 +110,7 @@ class SettingsValidator extends AbstractValidator if (isset($validation['self'])) { foreach ($validation['self'] as $validator => $options) { - if (is_null($options)) { + if ($options === null) { continue; } $config[] = [ @@ -123,7 +123,7 @@ class SettingsValidator extends AbstractValidator if (isset($validation['properties'])) { foreach ($validation['properties'] as $property => $propertyValidation) { foreach ($propertyValidation as $validator => $options) { - if (is_null($options)) { + if ($options === null) { continue; } $config[] = [ @@ -149,7 +149,7 @@ class SettingsValidator extends AbstractValidator return !isset($validatorConfig['options']['validationGroups']) || !empty( - array_intersect( + \array_intersect( $validatorConfig['options']['validationGroups'], $this->options['validationGroups'] )