From a85b9f0a0a3a866cf564ddd84b6ff2c4d011de90 Mon Sep 17 00:00:00 2001 From: Davide Pastore Date: Sun, 3 May 2020 20:38:38 +0200 Subject: [PATCH] Use a proper PSR-4 namespace Related to #42 --- composer.json | 7 ++++++- src/{CodiceFiscale => }/AbstractCalculator.php | 0 src/{CodiceFiscale => }/Calculator.php | 0 src/{CodiceFiscale => }/Checker.php | 0 src/{CodiceFiscale => }/InverseCalculator.php | 0 src/{CodiceFiscale => }/Subject.php | 0 src/{CodiceFiscale => }/Validator.php | 0 test/{CodiceFiscale => }/CalculatorTest.php | 0 test/{CodiceFiscale => }/CheckerTest.php | 0 test/{CodiceFiscale => }/InverseCalculatorTest.php | 0 test/{CodiceFiscale => }/SubjectTest.php | 0 test/{CodiceFiscale => }/ValidatorTest.php | 0 12 files changed, 6 insertions(+), 1 deletion(-) rename src/{CodiceFiscale => }/AbstractCalculator.php (100%) rename src/{CodiceFiscale => }/Calculator.php (100%) rename src/{CodiceFiscale => }/Checker.php (100%) rename src/{CodiceFiscale => }/InverseCalculator.php (100%) rename src/{CodiceFiscale => }/Subject.php (100%) rename src/{CodiceFiscale => }/Validator.php (100%) rename test/{CodiceFiscale => }/CalculatorTest.php (100%) rename test/{CodiceFiscale => }/CheckerTest.php (100%) rename test/{CodiceFiscale => }/InverseCalculatorTest.php (100%) rename test/{CodiceFiscale => }/SubjectTest.php (100%) rename test/{CodiceFiscale => }/ValidatorTest.php (100%) diff --git a/composer.json b/composer.json index d4551ff..86dcb06 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,12 @@ ], "autoload" : { "psr-4" : { - "" : "src/" + "CodiceFiscale\\" : "src/" + } + }, + "autoload-dev" : { + "psr-4" : { + "CodiceFiscale\\" : "test/" } }, "require": { diff --git a/src/CodiceFiscale/AbstractCalculator.php b/src/AbstractCalculator.php similarity index 100% rename from src/CodiceFiscale/AbstractCalculator.php rename to src/AbstractCalculator.php diff --git a/src/CodiceFiscale/Calculator.php b/src/Calculator.php similarity index 100% rename from src/CodiceFiscale/Calculator.php rename to src/Calculator.php diff --git a/src/CodiceFiscale/Checker.php b/src/Checker.php similarity index 100% rename from src/CodiceFiscale/Checker.php rename to src/Checker.php diff --git a/src/CodiceFiscale/InverseCalculator.php b/src/InverseCalculator.php similarity index 100% rename from src/CodiceFiscale/InverseCalculator.php rename to src/InverseCalculator.php diff --git a/src/CodiceFiscale/Subject.php b/src/Subject.php similarity index 100% rename from src/CodiceFiscale/Subject.php rename to src/Subject.php diff --git a/src/CodiceFiscale/Validator.php b/src/Validator.php similarity index 100% rename from src/CodiceFiscale/Validator.php rename to src/Validator.php diff --git a/test/CodiceFiscale/CalculatorTest.php b/test/CalculatorTest.php similarity index 100% rename from test/CodiceFiscale/CalculatorTest.php rename to test/CalculatorTest.php diff --git a/test/CodiceFiscale/CheckerTest.php b/test/CheckerTest.php similarity index 100% rename from test/CodiceFiscale/CheckerTest.php rename to test/CheckerTest.php diff --git a/test/CodiceFiscale/InverseCalculatorTest.php b/test/InverseCalculatorTest.php similarity index 100% rename from test/CodiceFiscale/InverseCalculatorTest.php rename to test/InverseCalculatorTest.php diff --git a/test/CodiceFiscale/SubjectTest.php b/test/SubjectTest.php similarity index 100% rename from test/CodiceFiscale/SubjectTest.php rename to test/SubjectTest.php diff --git a/test/CodiceFiscale/ValidatorTest.php b/test/ValidatorTest.php similarity index 100% rename from test/CodiceFiscale/ValidatorTest.php rename to test/ValidatorTest.php