From 93fa97e81773d3e5c06548a43bf6d238b80cdb79 Mon Sep 17 00:00:00 2001 From: Ferdinand Kuhl Date: Fri, 2 Jun 2017 21:18:27 +0200 Subject: [PATCH] TASK: Migrate to PSR-4 --- Classes/{DigiComp/SettingValidator => }/Package.php | 0 .../Validation/Validator/SettingsValidator.php | 3 +-- composer.json | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) rename Classes/{DigiComp/SettingValidator => }/Package.php (100%) rename Classes/{DigiComp/SettingValidator => }/Validation/Validator/SettingsValidator.php (98%) diff --git a/Classes/DigiComp/SettingValidator/Package.php b/Classes/Package.php similarity index 100% rename from Classes/DigiComp/SettingValidator/Package.php rename to Classes/Package.php diff --git a/Classes/DigiComp/SettingValidator/Validation/Validator/SettingsValidator.php b/Classes/Validation/Validator/SettingsValidator.php similarity index 98% rename from Classes/DigiComp/SettingValidator/Validation/Validator/SettingsValidator.php rename to Classes/Validation/Validator/SettingsValidator.php index 7132f62..112bdc4 100644 --- a/Classes/DigiComp/SettingValidator/Validation/Validator/SettingsValidator.php +++ b/Classes/Validation/Validator/SettingsValidator.php @@ -93,8 +93,7 @@ class SettingsValidator extends AbstractValidator $this->result->forProperty($validatorConfig['property'])->merge( $validator->validate(ObjectAccess::getPropertyPath($value, $validatorConfig['property'])) ); - } - else { + } else { $this->result->merge($validator->validate($value)); } } diff --git a/composer.json b/composer.json index f8551f2..20f8488 100644 --- a/composer.json +++ b/composer.json @@ -21,8 +21,8 @@ "neos/flow": "~4.1" }, "autoload": { - "psr-0": { - "DigiComp\\SettingValidator": "Classes" + "psr-4": { + "DigiComp\\SettingValidator\\": "Classes" } }, "extra": {