code guideline
This commit is contained in:
parent
272f78f96e
commit
c6e23fdf35
1 changed files with 4 additions and 4 deletions
|
@ -82,7 +82,7 @@ class SettingsValidator extends AbstractValidator
|
||||||
|
|
||||||
if (!$validator) {
|
if (!$validator) {
|
||||||
throw new InvalidValidationConfigurationException(
|
throw new InvalidValidationConfigurationException(
|
||||||
sprintf(
|
\sprintf(
|
||||||
'Validator could not be resolved: "%s" Check your Validation.yaml',
|
'Validator could not be resolved: "%s" Check your Validation.yaml',
|
||||||
$validatorConfig['validator']
|
$validatorConfig['validator']
|
||||||
),
|
),
|
||||||
|
@ -110,7 +110,7 @@ class SettingsValidator extends AbstractValidator
|
||||||
|
|
||||||
if (isset($validation['self'])) {
|
if (isset($validation['self'])) {
|
||||||
foreach ($validation['self'] as $validator => $options) {
|
foreach ($validation['self'] as $validator => $options) {
|
||||||
if (is_null($options)) {
|
if ($options === null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$config[] = [
|
$config[] = [
|
||||||
|
@ -123,7 +123,7 @@ class SettingsValidator extends AbstractValidator
|
||||||
if (isset($validation['properties'])) {
|
if (isset($validation['properties'])) {
|
||||||
foreach ($validation['properties'] as $property => $propertyValidation) {
|
foreach ($validation['properties'] as $property => $propertyValidation) {
|
||||||
foreach ($propertyValidation as $validator => $options) {
|
foreach ($propertyValidation as $validator => $options) {
|
||||||
if (is_null($options)) {
|
if ($options === null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$config[] = [
|
$config[] = [
|
||||||
|
@ -149,7 +149,7 @@ class SettingsValidator extends AbstractValidator
|
||||||
return
|
return
|
||||||
!isset($validatorConfig['options']['validationGroups'])
|
!isset($validatorConfig['options']['validationGroups'])
|
||||||
|| !empty(
|
|| !empty(
|
||||||
array_intersect(
|
\array_intersect(
|
||||||
$validatorConfig['options']['validationGroups'],
|
$validatorConfig['options']['validationGroups'],
|
||||||
$this->options['validationGroups']
|
$this->options['validationGroups']
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue