Skip to content

Commit

Permalink
rename namespace to Validator
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuval Herziger committed Feb 28, 2017
1 parent 516c4ab commit 5b2e42d
Show file tree
Hide file tree
Showing 24 changed files with 46 additions and 46 deletions.
10 changes: 5 additions & 5 deletions src/FloatParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
10 changes: 5 additions & 5 deletions src/IntParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions src/StringParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/TypeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace MPScholten\RequestParser;

use MPScholten\RequestParser\ValidationParser\OneOfParser;
use MPScholten\RequestParser\Validator\OneOfParser;

class TypeParser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

use MPScholten\RequestParser\AbstractValueParser;
use MPScholten\RequestParser\Config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

use MPScholten\RequestParser\AbstractValueParser;
use MPScholten\RequestParser\Config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

use MPScholten\RequestParser\AbstractValueParser;
use MPScholten\RequestParser\Config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

use MPScholten\RequestParser\AbstractValueParser;
use MPScholten\RequestParser\Config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

use MPScholten\RequestParser\AbstractValueParser;
use MPScholten\RequestParser\Config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

use MPScholten\RequestParser\AbstractValueParser;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

class FloatBetweenParser extends AbstractBetweenParser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

class FloatLargerThanOrEqualToParser extends AbstractLargerThanOrEqualToParser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

class FloatLargerThanParser extends AbstractLargerThanParser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

class FloatSmallerThanOrEqualToParser extends AbstractSmallerThanOrEqualToParser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

class FloatSmallerThanParser extends AbstractSmallerThanParser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

class IntBetweenParser extends AbstractBetweenParser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

class IntLargerThanOrEqualToParser extends AbstractLargerThanOrEqualToParser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

class IntLargerThanParser extends AbstractLargerThanParser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

class IntSmallerThanOrEqualToParser extends AbstractSmallerThanOrEqualToParser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

class IntSmallerThanParser extends AbstractSmallerThanParser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

use MPScholten\RequestParser\AbstractValueParser;
use MPScholten\RequestParser\Config;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace MPScholten\RequestParser\ValidationParser;
namespace MPScholten\RequestParser\Validator;

use MPScholten\RequestParser\AbstractValueParser;

Expand Down
6 changes: 3 additions & 3 deletions tests/ParserSpecTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
use MPScholten\RequestParser\BooleanParser;
use MPScholten\RequestParser\JsonParser;
use MPScholten\RequestParser\NotFoundException;
use MPScholten\RequestParser\ValidationParser\OneOfParser;
use MPScholten\RequestParser\Validator\OneOfParser;
use MPScholten\RequestParser\StringParser;
use MPScholten\RequestParser\ValidationParser\EmailParser;
use MPScholten\RequestParser\ValidationParser\UrlParser;
use MPScholten\RequestParser\Validator\EmailParser;
use MPScholten\RequestParser\Validator\UrlParser;
use MPScholten\RequestParser\TrimParser;

class ParserSpecTest extends \PHPUnit_Framework_TestCase
Expand Down
24 changes: 12 additions & 12 deletions tests/TypeSpecTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@
use MPScholten\RequestParser\CommaSeparatedYesNoBooleanParser;
use MPScholten\RequestParser\Config;
use MPScholten\RequestParser\DateTimeParser;
use MPScholten\RequestParser\ValidationParser\EmailParser;
use MPScholten\RequestParser\ValidationParser\FloatBetweenParser;
use MPScholten\RequestParser\ValidationParser\IntBetweenParser;
use MPScholten\RequestParser\Validator\EmailParser;
use MPScholten\RequestParser\Validator\FloatBetweenParser;
use MPScholten\RequestParser\Validator\IntBetweenParser;
use MPScholten\RequestParser\IntParser;
use MPScholten\RequestParser\FloatParser;
use MPScholten\RequestParser\TrimParser;
use MPScholten\RequestParser\ValidationParser\UrlParser;
use MPScholten\RequestParser\ValidationParser\FloatLargerThanOrEqualToParser;
use MPScholten\RequestParser\ValidationParser\FloatLargerThanParser;
use MPScholten\RequestParser\ValidationParser\FloatSmallerThanOrEqualToParser;
use MPScholten\RequestParser\ValidationParser\FloatSmallerThanParser;
use MPScholten\RequestParser\ValidationParser\IntLargerThanParser;
use MPScholten\RequestParser\ValidationParser\IntSmallerThanOrEqualToParser;
use MPScholten\RequestParser\ValidationParser\IntSmallerThanParser;
use MPScholten\RequestParser\Validator\UrlParser;
use MPScholten\RequestParser\Validator\FloatLargerThanOrEqualToParser;
use MPScholten\RequestParser\Validator\FloatLargerThanParser;
use MPScholten\RequestParser\Validator\FloatSmallerThanOrEqualToParser;
use MPScholten\RequestParser\Validator\FloatSmallerThanParser;
use MPScholten\RequestParser\Validator\IntLargerThanParser;
use MPScholten\RequestParser\Validator\IntSmallerThanOrEqualToParser;
use MPScholten\RequestParser\Validator\IntSmallerThanParser;
use MPScholten\RequestParser\YesNoBooleanParser;
use MPScholten\RequestParser\BooleanParser;
use MPScholten\RequestParser\JsonParser;
use MPScholten\RequestParser\ValidationParser\OneOfParser;
use MPScholten\RequestParser\Validator\OneOfParser;
use MPScholten\RequestParser\StringParser;
use MPScholten\RequestParser\TypeParser;

Expand Down

0 comments on commit 5b2e42d

Please sign in to comment.