From ed31cdc8c6b0140af739493ff9817d49231bee91 Mon Sep 17 00:00:00 2001 From: Paul Robert Date: Sat, 1 Jan 2022 18:41:47 +0100 Subject: [PATCH] Rename repo to Helga. --- .../ExecutionResponse.php | 2 +- Chase/{Validator => Helga}/Executioner.php | 2 +- .../Functions/filevalidator.php | 2 +- .../Functions/include.php | 0 .../Functions/validate.php | 6 ++--- Chase/{Validator => Helga}/RuleParser.php | 2 +- .../{Validator => Helga}/ValidationState.php | 2 +- Chase/{Validator => Helga}/Validator.php | 12 ++++----- README.md | 26 +++++++++---------- Tests/ComparisonTest.php | 2 +- Tests/CustomMessagesTest.php | 2 +- Tests/FilesTest.php | 2 +- Tests/ValuesTest.php | 2 +- composer.json | 4 +-- 14 files changed, 33 insertions(+), 33 deletions(-) rename Chase/{Validator => Helga}/ExecutionResponse.php (91%) rename Chase/{Validator => Helga}/Executioner.php (99%) rename Chase/{Validator => Helga}/Functions/filevalidator.php (99%) rename Chase/{Validator => Helga}/Functions/include.php (100%) rename Chase/{Validator => Helga}/Functions/validate.php (55%) rename Chase/{Validator => Helga}/RuleParser.php (99%) rename Chase/{Validator => Helga}/ValidationState.php (81%) rename Chase/{Validator => Helga}/Validator.php (96%) diff --git a/Chase/Validator/ExecutionResponse.php b/Chase/Helga/ExecutionResponse.php similarity index 91% rename from Chase/Validator/ExecutionResponse.php rename to Chase/Helga/ExecutionResponse.php index c4b67e9..2f7a0d2 100644 --- a/Chase/Validator/ExecutionResponse.php +++ b/Chase/Helga/ExecutionResponse.php @@ -1,6 +1,6 @@ withRules(['required', 'minLen:5', 'maxLen:10']); @@ -35,7 +35,7 @@ if($v->passes()){ ```php withRules(['email']); @@ -50,7 +50,7 @@ For multiple values, pass an associative array like so : ```php '', @@ -92,7 +92,7 @@ By default, it only flattens and returns the first error for each field. Passing ```php 'ab1', @@ -133,7 +133,7 @@ For directives without arguments i.e single directives ```php withRules([ 'integer::It must be a number', @@ -148,7 +148,7 @@ For directives with arguments ```php withRules([ 'minLen:4:Cannot be less than four', diff --git a/Tests/ComparisonTest.php b/Tests/ComparisonTest.php index 23dd43a..184bf28 100644 --- a/Tests/ComparisonTest.php +++ b/Tests/ComparisonTest.php @@ -2,7 +2,7 @@ use PHPUnit\Framework\TestCase; -use function Chase\Validator\validate; +use function Chase\Helga\validate; class ComparisonTest extends TestCase { diff --git a/Tests/CustomMessagesTest.php b/Tests/CustomMessagesTest.php index 9e414e5..2ec8945 100644 --- a/Tests/CustomMessagesTest.php +++ b/Tests/CustomMessagesTest.php @@ -2,7 +2,7 @@ use PHPUnit\Framework\TestCase; -use function Chase\Validator\validate; +use function Chase\Helga\validate; class CustomMessagesTest extends TestCase { diff --git a/Tests/FilesTest.php b/Tests/FilesTest.php index 7cd833e..f954c9e 100644 --- a/Tests/FilesTest.php +++ b/Tests/FilesTest.php @@ -2,7 +2,7 @@ use PHPUnit\Framework\TestCase; -use function Chase\Validator\validate; +use function Chase\Helga\validate; class FilesTest extends TestCase { diff --git a/Tests/ValuesTest.php b/Tests/ValuesTest.php index 0046b2a..188ff0a 100644 --- a/Tests/ValuesTest.php +++ b/Tests/ValuesTest.php @@ -2,7 +2,7 @@ use PHPUnit\Framework\TestCase; -use function Chase\Validator\validate; +use function Chase\Helga\validate; class ValuesTest extends TestCase { diff --git a/composer.json b/composer.json index 095f70b..78f76ff 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "chase/validator", + "name": "chase/helga", "description": "Validation at it's best - variables, forms and files", "type": "library", "keywords": [ @@ -22,7 +22,7 @@ "Chase\\" : "Chase/", "Tests\\" : "Tests/" }, - "files" : ["Chase/Validator/Functions/include.php"] + "files" : ["Chase/Helga/Functions/include.php"] }, "require" : { "php" : ">=7.0.0"