From 5b2e42da12d1d43c77dd6f53e16e73354758a2c0 Mon Sep 17 00:00:00 2001 From: Yuval Herziger Date: Tue, 28 Feb 2017 10:09:53 +0100 Subject: [PATCH] rename namespace to Validator --- src/FloatParser.php | 10 ++++---- src/IntParser.php | 10 ++++---- src/StringParser.php | 4 ++-- src/TypeParser.php | 2 +- .../AbstractBetweenParser.php | 2 +- .../AbstractLargerThanOrEqualToParser.php | 2 +- .../AbstractLargerThanParser.php | 2 +- .../AbstractSmallerThanOrEqualToParser.php | 2 +- .../AbstractSmallerThanParser.php | 2 +- .../EmailParser.php | 2 +- .../FloatBetweenParser.php | 2 +- .../FloatLargerThanOrEqualToParser.php | 2 +- .../FloatLargerThanParser.php | 2 +- .../FloatSmallerThanOrEqualToParser.php | 2 +- .../FloatSmallerThanParser.php | 2 +- .../IntBetweenParser.php | 2 +- .../IntLargerThanOrEqualToParser.php | 2 +- .../IntLargerThanParser.php | 2 +- .../IntSmallerThanOrEqualToParser.php | 2 +- .../IntSmallerThanParser.php | 2 +- .../OneOfParser.php | 2 +- .../UrlParser.php | 2 +- tests/ParserSpecTest.php | 6 ++--- tests/TypeSpecTest.php | 24 +++++++++---------- 24 files changed, 46 insertions(+), 46 deletions(-) rename src/{ValidationParser => Validator}/AbstractBetweenParser.php (92%) rename src/{ValidationParser => Validator}/AbstractLargerThanOrEqualToParser.php (90%) rename src/{ValidationParser => Validator}/AbstractLargerThanParser.php (90%) rename src/{ValidationParser => Validator}/AbstractSmallerThanOrEqualToParser.php (90%) rename src/{ValidationParser => Validator}/AbstractSmallerThanParser.php (90%) rename src/{ValidationParser => Validator}/EmailParser.php (95%) rename src/{ValidationParser => Validator}/FloatBetweenParser.php (94%) rename src/{ValidationParser => Validator}/FloatLargerThanOrEqualToParser.php (94%) rename src/{ValidationParser => Validator}/FloatLargerThanParser.php (94%) rename src/{ValidationParser => Validator}/FloatSmallerThanOrEqualToParser.php (94%) rename src/{ValidationParser => Validator}/FloatSmallerThanParser.php (94%) rename src/{ValidationParser => Validator}/IntBetweenParser.php (94%) rename src/{ValidationParser => Validator}/IntLargerThanOrEqualToParser.php (94%) rename src/{ValidationParser => Validator}/IntLargerThanParser.php (94%) rename src/{ValidationParser => Validator}/IntSmallerThanOrEqualToParser.php (94%) rename src/{ValidationParser => Validator}/IntSmallerThanParser.php (94%) rename src/{ValidationParser => Validator}/OneOfParser.php (95%) rename src/{ValidationParser => Validator}/UrlParser.php (95%) diff --git a/src/FloatParser.php b/src/FloatParser.php index ad3abe7..2fb8ffd 100644 --- a/src/FloatParser.php +++ b/src/FloatParser.php @@ -2,11 +2,11 @@ namespace MPScholten\RequestParser; -use MPScholten\RequestParser\ValidationParser\FloatBetweenParser; -use MPScholten\RequestParser\ValidationParser\FloatLargerThanOrEqualToParser; -use MPScholten\RequestParser\ValidationParser\FloatLargerThanParser; -use MPScholten\RequestParser\ValidationParser\FloatSmallerThanOrEqualToParser; -use MPScholten\RequestParser\ValidationParser\FloatSmallerThanParser; +use MPScholten\RequestParser\Validator\FloatBetweenParser; +use MPScholten\RequestParser\Validator\FloatLargerThanOrEqualToParser; +use MPScholten\RequestParser\Validator\FloatLargerThanParser; +use MPScholten\RequestParser\Validator\FloatSmallerThanOrEqualToParser; +use MPScholten\RequestParser\Validator\FloatSmallerThanParser; class FloatParser extends AbstractValueParser { diff --git a/src/IntParser.php b/src/IntParser.php index 3dc912e..a011781 100644 --- a/src/IntParser.php +++ b/src/IntParser.php @@ -2,11 +2,11 @@ namespace MPScholten\RequestParser; -use MPScholten\RequestParser\ValidationParser\IntBetweenParser; -use MPScholten\RequestParser\ValidationParser\IntLargerThanOrEqualToParser; -use MPScholten\RequestParser\ValidationParser\IntLargerThanParser; -use MPScholten\RequestParser\ValidationParser\IntSmallerThanOrEqualToParser; -use MPScholten\RequestParser\ValidationParser\IntSmallerThanParser; +use MPScholten\RequestParser\Validator\IntBetweenParser; +use MPScholten\RequestParser\Validator\IntLargerThanOrEqualToParser; +use MPScholten\RequestParser\Validator\IntLargerThanParser; +use MPScholten\RequestParser\Validator\IntSmallerThanOrEqualToParser; +use MPScholten\RequestParser\Validator\IntSmallerThanParser; class IntParser extends AbstractValueParser { diff --git a/src/StringParser.php b/src/StringParser.php index ef50a26..b5aaab2 100644 --- a/src/StringParser.php +++ b/src/StringParser.php @@ -2,8 +2,8 @@ namespace MPScholten\RequestParser; -use MPScholten\RequestParser\ValidationParser\EmailParser; -use MPScholten\RequestParser\ValidationParser\UrlParser; +use MPScholten\RequestParser\Validator\EmailParser; +use MPScholten\RequestParser\Validator\UrlParser; class StringParser extends AbstractValueParser { diff --git a/src/TypeParser.php b/src/TypeParser.php index b603731..884aae8 100644 --- a/src/TypeParser.php +++ b/src/TypeParser.php @@ -2,7 +2,7 @@ namespace MPScholten\RequestParser; -use MPScholten\RequestParser\ValidationParser\OneOfParser; +use MPScholten\RequestParser\Validator\OneOfParser; class TypeParser { diff --git a/src/ValidationParser/AbstractBetweenParser.php b/src/Validator/AbstractBetweenParser.php similarity index 92% rename from src/ValidationParser/AbstractBetweenParser.php rename to src/Validator/AbstractBetweenParser.php index 77ec61e..04fc2ec 100644 --- a/src/ValidationParser/AbstractBetweenParser.php +++ b/src/Validator/AbstractBetweenParser.php @@ -1,6 +1,6 @@