Skip to content

Commit

Permalink
fix: package name
Browse files Browse the repository at this point in the history
  • Loading branch information
byawitz committed Sep 5, 2024
1 parent a39565c commit 3130662
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Http/Validator/AllOf.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Ensure all of the validators from a list passed the check
*
* @package Utopia\Validator
* @package Utopia\Http\Validator
*/
class AllOf extends Validator
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Validator/AnyOf.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Ensure at least one validator from a list passed the check
*
* @package Utopia\Validator
* @package Utopia\Http\Validator
*/
class AnyOf extends Validator
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Validator/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* Validate that an variable is a valid domain address
*
* @package Utopia\Validator
* @package Utopia\Http\Validator
*/
class Domain extends Validator
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Validator/Host.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* Validate that a host is allowed from given whitelisted hosts list
*
* @package Utopia\Validator
* @package Utopia\Http\Validator
*/
class Host extends Validator
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Validator/IP.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* Validate that an variable is a valid IP address
*
* @package Utopia\Validator
* @package Utopia\Http\Validator
*/
class IP extends Validator
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Validator/Multiple.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*
* Multiple validator is a container of multiple validations each acting as a rule.
*
* @package Utopia\Validator
* @package Utopia\Http\Validator
*/
class Multiple extends Validator
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Validator/NoneOf.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Ensure no validators from a list passed the check
*
* @package Utopia\Validator
* @package Utopia\Http\Validator
*/
class NoneOf extends Validator
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Validator/MultipleOfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public function testRules()
$this->assertFalse($vaidator->isValid($invalidTextInvalidUrl));

$this->assertCount(2, $vaidator->getValidators());
$this->assertEquals("Utopia\Validator\Text", \get_class($vaidator->getValidators()[0]));
$this->assertEquals("Utopia\Validator\URL", \get_class($vaidator->getValidators()[1]));
$this->assertEquals("Utopia\Http\Validator\Text", \get_class($vaidator->getValidators()[0]));
$this->assertEquals("Utopia\Http\Validator\URL", \get_class($vaidator->getValidators()[1]));

$vaidator = new NoneOf([new Text(20), new URL()], Validator::TYPE_STRING);
$this->assertFalse($vaidator->isValid($validTextValidUrl));
Expand Down

0 comments on commit 3130662

Please sign in to comment.