From 226dda495d2b7f6919fa1614947e7a5b9cbc81f6 Mon Sep 17 00:00:00 2001 From: Milwad Khosravi Date: Sat, 8 Jun 2024 16:37:17 +0330 Subject: [PATCH 01/27] Create CountryPhoneValidator.php --- src/Utils/CountryPhoneValidator/CountryPhoneValidator.php | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/Utils/CountryPhoneValidator/CountryPhoneValidator.php diff --git a/src/Utils/CountryPhoneValidator/CountryPhoneValidator.php b/src/Utils/CountryPhoneValidator/CountryPhoneValidator.php new file mode 100644 index 0000000..6700da2 --- /dev/null +++ b/src/Utils/CountryPhoneValidator/CountryPhoneValidator.php @@ -0,0 +1,8 @@ + Date: Sat, 8 Jun 2024 16:38:16 +0330 Subject: [PATCH 02/27] add IRPhoneValidator --- src/Utils/CountryPhoneCallback.php | 12 +----------- .../CountryPhoneValidator/IRPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/IRPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index 8834e2e..fd85608 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -10,17 +10,7 @@ class CountryPhoneCallback public function __construct(private mixed $value, private string $code, ?string $attribute = null) { } - - // TODO: Add a feature to add validate method for your own country! - - /** - * Validate Iran phone number. - */ - protected function validateIR(): false|int - { - return preg_match('/^(\+98|0)?9\d{9}$/', $this->value); - } - + /** * Validate Iran phone number. */ diff --git a/src/Utils/CountryPhoneValidator/IRPhoneValidator.php b/src/Utils/CountryPhoneValidator/IRPhoneValidator.php new file mode 100644 index 0000000..0889e6f --- /dev/null +++ b/src/Utils/CountryPhoneValidator/IRPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:40:47 +0330 Subject: [PATCH 03/27] Update CountryPhoneCallback.php --- src/Utils/CountryPhoneCallback.php | 41 +++++++++++++++++------------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index fd85608..741b049 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -2,15 +2,24 @@ namespace Milwad\LaravelValidate\Utils; +use Milwad\LaravelValidate\Utils\CountryPhoneValidator\CountryPhoneValidator; + class CountryPhoneCallback { + /** + * Country Validate classes. + * + * @var array + */ + protected $validators = []; + /** * Create a new phone validator instance. */ public function __construct(private mixed $value, private string $code, ?string $attribute = null) { } - + /** * Validate Iran phone number. */ @@ -140,26 +149,22 @@ protected function validateZH(): false|int } /** - * Call the phone validator method for each country code and return the results. - * - * @throws \BadMethodCallException if the validator method for a country code does not exist. + * Add new country validator */ - public function callPhoneValidator(): array + public function addValidator(string $code, CountryPhoneValidator $validator): void { - $results = []; - $codes = explode(',', $this->code); - $codes = array_map('strtoupper', $codes); - - foreach ($codes as $code) { - $methodName = 'validate'.$code; + $this->validators[$code] = $validator; + } - if (method_exists($this, $methodName)) { - $results[$code] = $this->{$methodName}(); - } else { - throw new \BadMethodCallException("Validator method '{$methodName}' does not exist."); - } + /** + * Call country validate class. + */ + public function callPhoneValidator(string $code, $value) + { + if (isset($this->validators[$code])) { + return $this->validators[$code]->validate($value); + } else { + throw new \BadMethodCallException("Validator method for '$code' does not exist."); } - - return $results; } } From 0f012ccfd63096f3fe594ea106ce9933423fa8db Mon Sep 17 00:00:00 2001 From: Milwad Khosravi Date: Sat, 8 Jun 2024 16:44:50 +0330 Subject: [PATCH 04/27] add `ENPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 8 -------- .../CountryPhoneValidator/ENPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/ENPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index 741b049..a0e3070 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -20,14 +20,6 @@ public function __construct(private mixed $value, private string $code, ?string { } - /** - * Validate Iran phone number. - */ - protected function validateEN(): false|int - { - return preg_match('/^(?:\+44|0)7\d{9}$/', $this->value); - } - /** * Validate Nigeria phone number. */ diff --git a/src/Utils/CountryPhoneValidator/ENPhoneValidator.php b/src/Utils/CountryPhoneValidator/ENPhoneValidator.php new file mode 100644 index 0000000..6868af1 --- /dev/null +++ b/src/Utils/CountryPhoneValidator/ENPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:45:40 +0330 Subject: [PATCH 05/27] add NEPhoneValidator --- src/Utils/CountryPhoneCallback.php | 8 -------- .../CountryPhoneValidator/NEPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/NEPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index a0e3070..a3d6aa8 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -20,14 +20,6 @@ public function __construct(private mixed $value, private string $code, ?string { } - /** - * Validate Nigeria phone number. - */ - protected function validateNE(): false|int - { - return preg_match('/^(\+227|00227|227)?\d{8}$/', $this->value); - } - /** * Validate Saudi Arabia phone number. */ diff --git a/src/Utils/CountryPhoneValidator/NEPhoneValidator.php b/src/Utils/CountryPhoneValidator/NEPhoneValidator.php new file mode 100644 index 0000000..54442b5 --- /dev/null +++ b/src/Utils/CountryPhoneValidator/NEPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:46:10 +0330 Subject: [PATCH 06/27] add `SAPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 8 -------- .../CountryPhoneValidator/SAPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/SAPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index a3d6aa8..cb48659 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -20,14 +20,6 @@ public function __construct(private mixed $value, private string $code, ?string { } - /** - * Validate Saudi Arabia phone number. - */ - protected function validateSA(): false|int - { - return preg_match('/^((\+966)|0)?5\d{8}$/', $this->value); - } - /** * Validate Germany phone number. */ diff --git a/src/Utils/CountryPhoneValidator/SAPhoneValidator.php b/src/Utils/CountryPhoneValidator/SAPhoneValidator.php new file mode 100644 index 0000000..b796044 --- /dev/null +++ b/src/Utils/CountryPhoneValidator/SAPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:46:45 +0330 Subject: [PATCH 07/27] add `DEPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 8 -------- .../CountryPhoneValidator/DEPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/DEPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index cb48659..7efb036 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -20,14 +20,6 @@ public function __construct(private mixed $value, private string $code, ?string { } - /** - * Validate Germany phone number. - */ - protected function validateDE(): false|int - { - return preg_match('/^((\+49)|(0))(1|15|16|17|19|30|31|32|33|34|40|41|42|43|44|49|151|152|153|155|156|157|159|160|162|163|180|181|182|183|184|185|186|187|188|170|171|172|173|174|175|176|177|178|179)\d{7,8}$/', $this->value); - } - /** * Validate Greece phone number. */ diff --git a/src/Utils/CountryPhoneValidator/DEPhoneValidator.php b/src/Utils/CountryPhoneValidator/DEPhoneValidator.php new file mode 100644 index 0000000..986f3ac --- /dev/null +++ b/src/Utils/CountryPhoneValidator/DEPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:46:51 +0330 Subject: [PATCH 08/27] Update CountryPhoneCallback.php --- src/Utils/CountryPhoneCallback.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index 7efb036..e36e30c 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -11,14 +11,7 @@ class CountryPhoneCallback * * @var array */ - protected $validators = []; - - /** - * Create a new phone validator instance. - */ - public function __construct(private mixed $value, private string $code, ?string $attribute = null) - { - } + protected array $validators = []; /** * Validate Greece phone number. From c71530af5535376981444fe35779c90c3e4fe009 Mon Sep 17 00:00:00 2001 From: Milwad Khosravi Date: Sat, 8 Jun 2024 16:47:30 +0330 Subject: [PATCH 09/27] add `GRPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 4 ++-- .../CountryPhoneValidator/GRPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/GRPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index e36e30c..7555f13 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -14,11 +14,11 @@ class CountryPhoneCallback protected array $validators = []; /** - * Validate Greece phone number. + * Validate phone number. */ protected function validateGR(): false|int { - return preg_match('/^\+30[2-9]\d{2}\d{3}\d{4}$/', $this->value); + return preg_match(, $this->value); } /** diff --git a/src/Utils/CountryPhoneValidator/GRPhoneValidator.php b/src/Utils/CountryPhoneValidator/GRPhoneValidator.php new file mode 100644 index 0000000..c4087ac --- /dev/null +++ b/src/Utils/CountryPhoneValidator/GRPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:48:00 +0330 Subject: [PATCH 10/27] add `ESPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 4 ++-- .../CountryPhoneValidator/ESPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/ESPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index 7555f13..865bf47 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -22,11 +22,11 @@ protected function validateGR(): false|int } /** - * Validate Spain phone number. + * Validate phone number. */ protected function validateES(): false|int { - return preg_match('/^(?:\+34|0034|34)?[6789]\d{8}$/', $this->value); + return preg_match(, $this->value); } /** diff --git a/src/Utils/CountryPhoneValidator/ESPhoneValidator.php b/src/Utils/CountryPhoneValidator/ESPhoneValidator.php new file mode 100644 index 0000000..69bd015 --- /dev/null +++ b/src/Utils/CountryPhoneValidator/ESPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:48:35 +0330 Subject: [PATCH 11/27] add `FRPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 4 ++-- .../CountryPhoneValidator/FRPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/FRPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index 865bf47..f500990 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -30,11 +30,11 @@ protected function validateES(): false|int } /** - * Validate France phone number. + * Validate phone number. */ protected function validateFR(): false|int { - return preg_match('/^(?:\+33|0033|0)(?:[1-9](?:\d{2}){4}|[67]\d{8})$/', $this->value); + return preg_match(, $this->value); } /** diff --git a/src/Utils/CountryPhoneValidator/FRPhoneValidator.php b/src/Utils/CountryPhoneValidator/FRPhoneValidator.php new file mode 100644 index 0000000..0ffeb70 --- /dev/null +++ b/src/Utils/CountryPhoneValidator/FRPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:49:16 +0330 Subject: [PATCH 12/27] add `ZHPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 4 ++-- .../CountryPhoneValidator/ZHPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/ZHPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index f500990..237b26b 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -102,11 +102,11 @@ protected function validateTR(): false|int } /** - * Validate Chinese phone number. + * Validate phone number. */ protected function validateZH(): false|int { - return preg_match('/^(?:\+86)?1[3-9]\d{9}$/', $this->value); + return preg_match(, $this->value); } /** diff --git a/src/Utils/CountryPhoneValidator/ZHPhoneValidator.php b/src/Utils/CountryPhoneValidator/ZHPhoneValidator.php new file mode 100644 index 0000000..b412ba3 --- /dev/null +++ b/src/Utils/CountryPhoneValidator/ZHPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:49:51 +0330 Subject: [PATCH 13/27] add `TRPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 4 ++-- .../CountryPhoneValidator/TRPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/TRPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index 237b26b..75c94a8 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -94,11 +94,11 @@ protected function validateSE(): false|int } /** - * Validate Turkey phone number. + * Validate phone number. */ protected function validateTR(): false|int { - return preg_match('/^(?:\+90|0)(?:\s?[1-9]\d{2}\s?\d{3}\s?\d{2}\s?\d{2}|[1-9]\d{2}-?\d{3}-?\d{2}-?\d{2})$/', $this->value); + return preg_match(, $this->value); } /** diff --git a/src/Utils/CountryPhoneValidator/TRPhoneValidator.php b/src/Utils/CountryPhoneValidator/TRPhoneValidator.php new file mode 100644 index 0000000..a5ab451 --- /dev/null +++ b/src/Utils/CountryPhoneValidator/TRPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:50:26 +0330 Subject: [PATCH 14/27] add `SEPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 4 ++-- .../CountryPhoneValidator/SEPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/SEPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index 75c94a8..9e9ee5e 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -86,11 +86,11 @@ protected function validateRU(): false|int } /** - * Validate Sweden phone number. + * Validate phone number. */ protected function validateSE(): false|int { - return preg_match('/^(?:\+46|0) ?(?:[1-9]\d{1,2}-?\d{2}(?:\s?\d{2}){2}|7\d{2}-?\d{2}(?:\s?\d{2}){2})$/', $this->value); + return preg_match(, $this->value); } /** diff --git a/src/Utils/CountryPhoneValidator/SEPhoneValidator.php b/src/Utils/CountryPhoneValidator/SEPhoneValidator.php new file mode 100644 index 0000000..ac419ac --- /dev/null +++ b/src/Utils/CountryPhoneValidator/SEPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:50:55 +0330 Subject: [PATCH 15/27] add `RUPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 4 ++-- .../CountryPhoneValidator/RUPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/RUPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index 9e9ee5e..d6b2f90 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -78,11 +78,11 @@ protected function validateKO(): false|int } /** - * Validate Russian phone number. + * Validate phone number. */ protected function validateRU(): false|int { - return preg_match('/^(?:\+7|8)(?:\s?\(?\d{3}\)?\s?\d{3}(?:-?\d{2}){2}|\s?\d{2}(?:\s?\d{2}){3})$/', $this->value); + return preg_match(, $this->value); } /** diff --git a/src/Utils/CountryPhoneValidator/RUPhoneValidator.php b/src/Utils/CountryPhoneValidator/RUPhoneValidator.php new file mode 100644 index 0000000..9390a0f --- /dev/null +++ b/src/Utils/CountryPhoneValidator/RUPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:51:23 +0330 Subject: [PATCH 16/27] add `KOPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 4 ++-- .../CountryPhoneValidator/KOPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/KOPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index d6b2f90..f74211b 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -70,11 +70,11 @@ protected function validateJA(): false|int } /** - * Validate Korean phone number. + * Validate phone number. */ protected function validateKO(): false|int { - return preg_match('/^(?:\+82|0)(?:10|1[1-9])-?\d{3,4}-?\d{4}$/', $this->value); + return preg_match(, $this->value); } /** diff --git a/src/Utils/CountryPhoneValidator/KOPhoneValidator.php b/src/Utils/CountryPhoneValidator/KOPhoneValidator.php new file mode 100644 index 0000000..8d8889b --- /dev/null +++ b/src/Utils/CountryPhoneValidator/KOPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:51:53 +0330 Subject: [PATCH 17/27] add `JAPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 4 ++-- .../CountryPhoneValidator/JAPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/JAPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index f74211b..47dfd95 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -62,11 +62,11 @@ protected function validateIT(): false|int } /** - * Validate Japanese phone number. + * Validate phone number. */ protected function validateJA(): false|int { - return preg_match('/(\d{2,3})-?(\d{3,4})-?(\d{4})/', $this->value); + return preg_match(, $this->value); } /** diff --git a/src/Utils/CountryPhoneValidator/JAPhoneValidator.php b/src/Utils/CountryPhoneValidator/JAPhoneValidator.php new file mode 100644 index 0000000..ebb3642 --- /dev/null +++ b/src/Utils/CountryPhoneValidator/JAPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:52:14 +0330 Subject: [PATCH 18/27] add `ITPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 4 ++-- .../CountryPhoneValidator/ITPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/ITPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index 47dfd95..e3f9859 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -54,11 +54,11 @@ protected function validateID(): false|int } /** - * Validate Italy phone number. + * Validate phone number. */ protected function validateIT(): false|int { - return preg_match('/^\+39\d{8,10}$/', $this->value); + return preg_match(, $this->value); } /** diff --git a/src/Utils/CountryPhoneValidator/ITPhoneValidator.php b/src/Utils/CountryPhoneValidator/ITPhoneValidator.php new file mode 100644 index 0000000..405543c --- /dev/null +++ b/src/Utils/CountryPhoneValidator/ITPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:52:46 +0330 Subject: [PATCH 19/27] add `IDPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 4 ++-- .../CountryPhoneValidator/IDPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/IDPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index e3f9859..7f04e4d 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -46,11 +46,11 @@ protected function validateIN(): false|int } /** - * Validate Indonesia phone number. + * Validate phone number. */ protected function validateID(): false|int { - return preg_match('/^(?:\+62|0)(?:\d{2,3}\s?){1,2}\d{4,8}$/', $this->value); + return preg_match(, $this->value); } /** diff --git a/src/Utils/CountryPhoneValidator/IDPhoneValidator.php b/src/Utils/CountryPhoneValidator/IDPhoneValidator.php new file mode 100644 index 0000000..ac958f8 --- /dev/null +++ b/src/Utils/CountryPhoneValidator/IDPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:53:14 +0330 Subject: [PATCH 20/27] add `INPhoneValidator` --- src/Utils/CountryPhoneCallback.php | 4 ++-- .../CountryPhoneValidator/INPhoneValidator.php | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/Utils/CountryPhoneValidator/INPhoneValidator.php diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index 7f04e4d..f53324f 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -38,11 +38,11 @@ protected function validateFR(): false|int } /** - * Validate India phone number. + * Validate phone number. */ protected function validateIN(): false|int { - return preg_match('/^(?:(?:\+|0{0,2})91(\s|-)?)?[6789]\d{9}$/', $this->value); + return preg_match(, $this->value); } /** diff --git a/src/Utils/CountryPhoneValidator/INPhoneValidator.php b/src/Utils/CountryPhoneValidator/INPhoneValidator.php new file mode 100644 index 0000000..9e5c773 --- /dev/null +++ b/src/Utils/CountryPhoneValidator/INPhoneValidator.php @@ -0,0 +1,14 @@ + Date: Sat, 8 Jun 2024 16:53:29 +0330 Subject: [PATCH 21/27] Update CountryPhoneCallback.php --- src/Utils/CountryPhoneCallback.php | 96 ------------------------------ 1 file changed, 96 deletions(-) diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index f53324f..f8dfba9 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -13,102 +13,6 @@ class CountryPhoneCallback */ protected array $validators = []; - /** - * Validate phone number. - */ - protected function validateGR(): false|int - { - return preg_match(, $this->value); - } - - /** - * Validate phone number. - */ - protected function validateES(): false|int - { - return preg_match(, $this->value); - } - - /** - * Validate phone number. - */ - protected function validateFR(): false|int - { - return preg_match(, $this->value); - } - - /** - * Validate phone number. - */ - protected function validateIN(): false|int - { - return preg_match(, $this->value); - } - - /** - * Validate phone number. - */ - protected function validateID(): false|int - { - return preg_match(, $this->value); - } - - /** - * Validate phone number. - */ - protected function validateIT(): false|int - { - return preg_match(, $this->value); - } - - /** - * Validate phone number. - */ - protected function validateJA(): false|int - { - return preg_match(, $this->value); - } - - /** - * Validate phone number. - */ - protected function validateKO(): false|int - { - return preg_match(, $this->value); - } - - /** - * Validate phone number. - */ - protected function validateRU(): false|int - { - return preg_match(, $this->value); - } - - /** - * Validate phone number. - */ - protected function validateSE(): false|int - { - return preg_match(, $this->value); - } - - /** - * Validate phone number. - */ - protected function validateTR(): false|int - { - return preg_match(, $this->value); - } - - /** - * Validate phone number. - */ - protected function validateZH(): false|int - { - return preg_match(, $this->value); - } - /** * Add new country validator */ From 8b909396b90f8e5a08d0f28e07b22448a2c58be6 Mon Sep 17 00:00:00 2001 From: Milwad Khosravi Date: Sat, 8 Jun 2024 16:55:15 +0330 Subject: [PATCH 22/27] Update CountryPhoneCallback.php --- src/Utils/CountryPhoneCallback.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index f8dfba9..adc7b72 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -27,7 +27,7 @@ public function addValidator(string $code, CountryPhoneValidator $validator): vo public function callPhoneValidator(string $code, $value) { if (isset($this->validators[$code])) { - return $this->validators[$code]->validate($value); + return (new $this->validators[$code])->validate($value); } else { throw new \BadMethodCallException("Validator method for '$code' does not exist."); } From 3cfcaa9840f6f3575ee70e2f911edcfdaba87ac6 Mon Sep 17 00:00:00 2001 From: Milwad Khosravi Date: Sat, 8 Jun 2024 17:00:26 +0330 Subject: [PATCH 23/27] Update laravel-validate.php --- config/laravel-validate.php | 41 +++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/config/laravel-validate.php b/config/laravel-validate.php index 286de02..a3b6e80 100644 --- a/config/laravel-validate.php +++ b/config/laravel-validate.php @@ -1,12 +1,41 @@ [ - 'base-64' => [ - 'name' => 'base64', - 'class' => ValidBase64::class, - ], + 'phone-country' => [ + 'DE' => DEPhoneValidator::class, + 'EN' => ENPhoneValidator::class, + 'ES' => ESPhoneValidator::class, + 'FR' => FRPhoneValidator::class, + 'GR' => GRPhoneValidator::class, + 'ID' => IDPhoneValidator::class, + 'IN' => INPhoneValidator::class, + 'IR' => IRPhoneValidator::class, + 'IT' => ITPhoneValidator::class, + 'JA' => JAPhoneValidator::class, + 'KO' => KOPhoneValidator::class, + 'NE' => NEPhoneValidator::class, + 'RU' => RUPhoneValidator::class, + 'SA' => SAPhoneValidator::class, + 'SE' => SEPhoneValidator::class, + 'TR' => TRPhoneValidator::class, + 'ZH' => ZHPhoneValidator::class, ], ]; From 31bad65125db11366c648fc0ba7f2dffab7fb996 Mon Sep 17 00:00:00 2001 From: Milwad Khosravi Date: Sat, 8 Jun 2024 17:03:39 +0330 Subject: [PATCH 24/27] wip --- src/LaravelValidateServiceProvider.php | 13 +++++++++++++ src/Utils/CountryPhoneCallback.php | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/LaravelValidateServiceProvider.php b/src/LaravelValidateServiceProvider.php index f61aad6..b981fd2 100644 --- a/src/LaravelValidateServiceProvider.php +++ b/src/LaravelValidateServiceProvider.php @@ -3,6 +3,7 @@ namespace Milwad\LaravelValidate; use Illuminate\Support\ServiceProvider; +use Milwad\LaravelValidate\Utils\CountryPhoneCallback; class LaravelValidateServiceProvider extends ServiceProvider { @@ -73,4 +74,16 @@ private function publishConfigFile(): void __DIR__.'/../config/laravel-validate.php' => config_path('laravel-validate.php'), ], 'laravel-validate-config'); } + + /** + * Boot applications. + */ + public function boot(): void + { + $countries = config('laravel-validate.phone-country', []); + + foreach ($countries as $code => $country) { + CountryPhoneCallback::addValidator($code, $country); + } + } } diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index adc7b72..7a335c8 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -11,14 +11,14 @@ class CountryPhoneCallback * * @var array */ - protected array $validators = []; + protected static array $validators = []; /** * Add new country validator */ - public function addValidator(string $code, CountryPhoneValidator $validator): void + public static function addValidator(string $code, CountryPhoneValidator $validator): void { - $this->validators[$code] = $validator; + self::$validators[$code] = $validator; } /** From 64d6470161ee1284a0f7ce169568d2a9e05ffbc0 Mon Sep 17 00:00:00 2001 From: Milwad Khosravi Date: Sat, 8 Jun 2024 17:17:17 +0330 Subject: [PATCH 25/27] fix --- .phpunit.cache/test-results | 2 +- src/LaravelValidateServiceProvider.php | 2 +- src/Rules/ValidPhoneNumber.php | 2 +- src/Utils/Country.php | 2 +- src/Utils/CountryPhoneCallback.php | 17 ++++++++++++----- tests/Rules/ValidPhoneNumberTest.php | 4 ++-- 6 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results index ec8f7ad..03a3f76 100644 --- a/.phpunit.cache/test-results +++ b/.phpunit.cache/test-results @@ -1 +1 @@ -{"version":1,"defects":{"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct_with_different_default_character":8},"times":{"Milwad\\LaravelValidate\\Tests\\BaseTest::success":0.037,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::all_lang_folders_publish_successfully":0.35,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::config_file_publish_successful":0.148,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_valid":0.014,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_not_valid":0.003,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::cart_number_iran_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_valid":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_even":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_not_even":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_hashtag":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_no_hashtag":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_valid_hex_code":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_not_valid_hex_code":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_without_country":0.008,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_a_country":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_multiple_countries":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_without_country":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_a_country":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_multiple_countries":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_string":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct_with_different_default_character":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct_with_different_default_character":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_odd":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_not_odd":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::all_phone_number_is_valid_by_specific_code":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::if_phone_number_validate_method_is_not_exists":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_strong":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_not_strong":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_nor_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vat_is_to_long_valid":0.001}} \ No newline at end of file +{"version":1,"defects":{"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct_with_different_default_character":8,"Milwad\\LaravelValidate\\Tests\\BaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::success":8,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::all_lang_folders_publish_successfully":8,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::config_file_publish_successful":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::cart_number_iran_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_even":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_not_even":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_hashtag":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_no_hashtag":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_valid_hex_code":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_not_valid_hex_code":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_without_country":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_a_country":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_multiple_countries":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_without_country":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_a_country":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_multiple_countries":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_string":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct_with_different_default_character":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_odd":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_not_odd":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_not_valid":7,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::all_phone_number_is_valid_by_specific_code":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::if_phone_number_validate_method_is_not_exists":7,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_strong":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_not_strong":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_nor_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vat_is_to_long_valid":8},"times":{"Milwad\\LaravelValidate\\Tests\\BaseTest::success":0.037,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::all_lang_folders_publish_successfully":0.35,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::config_file_publish_successful":0.148,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_valid":0.014,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_not_valid":0.003,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::cart_number_iran_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_valid":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_even":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_not_even":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_hashtag":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_no_hashtag":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_valid_hex_code":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_not_valid_hex_code":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_without_country":0.008,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_a_country":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_multiple_countries":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_without_country":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_a_country":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_multiple_countries":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_string":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct_with_different_default_character":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct_with_different_default_character":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_odd":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_not_odd":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::success":0.085,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_valid":0.03,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_not_valid":0.008,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::all_phone_number_is_valid_by_specific_code":0.003,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::if_phone_number_validate_method_is_not_exists":0.004,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_strong":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_not_strong":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_nor_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vat_is_to_long_valid":0.001}} \ No newline at end of file diff --git a/src/LaravelValidateServiceProvider.php b/src/LaravelValidateServiceProvider.php index b981fd2..6fa1852 100644 --- a/src/LaravelValidateServiceProvider.php +++ b/src/LaravelValidateServiceProvider.php @@ -81,7 +81,7 @@ private function publishConfigFile(): void public function boot(): void { $countries = config('laravel-validate.phone-country', []); - + foreach ($countries as $code => $country) { CountryPhoneCallback::addValidator($code, $country); } diff --git a/src/Rules/ValidPhoneNumber.php b/src/Rules/ValidPhoneNumber.php index 5732ec9..3df2a85 100644 --- a/src/Rules/ValidPhoneNumber.php +++ b/src/Rules/ValidPhoneNumber.php @@ -17,7 +17,7 @@ public function __construct(protected ?string $code = null) public function passes($attribute, $value): bool { if (is_string($this->code)) { - $passes = (new CountryPhoneCallback($value, $this->code))->callPhoneValidator(); + $passes = CountryPhoneCallback::callPhoneValidator($this->code, $value); return collect($passes)->some(fn ($passe) => $passe); } diff --git a/src/Utils/Country.php b/src/Utils/Country.php index f2ac976..6539bef 100644 --- a/src/Utils/Country.php +++ b/src/Utils/Country.php @@ -42,7 +42,7 @@ class Country public const CHAD = 'TD'; - public const CHINA = 'zh'; + public const CHINA = 'ZH'; public const COMOROS = 'KM'; diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index 7a335c8..8f9bcb4 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -3,6 +3,7 @@ namespace Milwad\LaravelValidate\Utils; use Milwad\LaravelValidate\Utils\CountryPhoneValidator\CountryPhoneValidator; +use RuntimeException; class CountryPhoneCallback { @@ -14,20 +15,26 @@ class CountryPhoneCallback protected static array $validators = []; /** - * Add new country validator + * Add new country validator. + * + * @throws \Throwable */ - public static function addValidator(string $code, CountryPhoneValidator $validator): void + public static function addValidator(string $code, string $validator): void { + if (! new $validator instanceof CountryPhoneValidator) { + throw new RuntimeException('The validator is not instance of CountryPhoneValidator'); + } + self::$validators[$code] = $validator; } /** * Call country validate class. */ - public function callPhoneValidator(string $code, $value) + public static function callPhoneValidator(string $code, $value) { - if (isset($this->validators[$code])) { - return (new $this->validators[$code])->validate($value); + if (isset(self::$validators[$code])) { + return (new self::$validators[$code])->validate($value); } else { throw new \BadMethodCallException("Validator method for '$code' does not exist."); } diff --git a/tests/Rules/ValidPhoneNumberTest.php b/tests/Rules/ValidPhoneNumberTest.php index e7ddeef..9ddcdef 100644 --- a/tests/Rules/ValidPhoneNumberTest.php +++ b/tests/Rules/ValidPhoneNumberTest.php @@ -46,7 +46,7 @@ public function phone_number_is_valid() public function phone_number_is_not_valid() { $rules = [ - 'phone_number' => [new ValidPhoneNumber()], + 'phone_number' => [new ValidPhoneNumber], 'phone_bj' => [new ValidPhoneNumber(Country::IRAN)], ]; $data = [ @@ -120,7 +120,7 @@ public function all_phone_number_is_valid_by_specific_code() public function if_phone_number_validate_method_is_not_exists() { $this->expectException(BadMethodCallException::class); - $this->expectExceptionMessage("Validator method 'validateAZ' does not exist."); + $this->expectExceptionMessage("Validator method for 'AZ' does not exist."); $rules = ['phone' => [new ValidPhoneNumber(Country::AZERBAIJAN)]]; $data = ['phone' => '+62812345678']; From 489bde3dfd4cd921fb1e7fb066fff7a3642e1d2f Mon Sep 17 00:00:00 2001 From: Milwad Khosravi Date: Sat, 8 Jun 2024 18:01:36 +0330 Subject: [PATCH 26/27] wip --- .gitignore | 1 + .phpunit.cache/test-results | 2 +- src/LaravelValidateServiceProvider.php | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7c4b9e9..800185f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ composer.lock .phpunit.result.cache phpunit.xml coverage +.phpunit.cache diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results index 03a3f76..c217eb9 100644 --- a/.phpunit.cache/test-results +++ b/.phpunit.cache/test-results @@ -1 +1 @@ -{"version":1,"defects":{"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct_with_different_default_character":8,"Milwad\\LaravelValidate\\Tests\\BaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::success":8,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::all_lang_folders_publish_successfully":8,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::config_file_publish_successful":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::cart_number_iran_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_even":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_not_even":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_hashtag":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_no_hashtag":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_valid_hex_code":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_not_valid_hex_code":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_without_country":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_a_country":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_multiple_countries":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_without_country":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_a_country":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_multiple_countries":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_string":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct_with_different_default_character":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_odd":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_not_odd":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_not_valid":7,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::all_phone_number_is_valid_by_specific_code":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::if_phone_number_validate_method_is_not_exists":7,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_strong":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_not_strong":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_nor_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vat_is_to_long_valid":8},"times":{"Milwad\\LaravelValidate\\Tests\\BaseTest::success":0.037,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::all_lang_folders_publish_successfully":0.35,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::config_file_publish_successful":0.148,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_valid":0.014,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_not_valid":0.003,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::cart_number_iran_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_valid":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_even":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_not_even":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_hashtag":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_no_hashtag":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_valid_hex_code":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_not_valid_hex_code":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_without_country":0.008,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_a_country":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_multiple_countries":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_without_country":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_a_country":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_multiple_countries":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_string":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct_with_different_default_character":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct_with_different_default_character":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_odd":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_not_odd":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::success":0.085,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_valid":0.03,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_not_valid":0.008,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::all_phone_number_is_valid_by_specific_code":0.003,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::if_phone_number_validate_method_is_not_exists":0.004,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_strong":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_not_strong":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_nor_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vat_is_to_long_valid":0.001}} \ No newline at end of file +{"version":1,"defects":{"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct_with_different_default_character":8,"Milwad\\LaravelValidate\\Tests\\BaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::success":8,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::all_lang_folders_publish_successfully":8,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::config_file_publish_successful":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::cart_number_iran_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_even":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_not_even":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_hashtag":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_no_hashtag":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_valid_hex_code":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_not_valid_hex_code":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_without_country":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_a_country":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_multiple_countries":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_without_country":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_a_country":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_multiple_countries":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_string":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct_with_different_default_character":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_odd":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_not_odd":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_not_valid":7,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::all_phone_number_is_valid_by_specific_code":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::if_phone_number_validate_method_is_not_exists":7,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_strong":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_not_strong":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_nor_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::success":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_not_valid":8,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vat_is_to_long_valid":8},"times":{"Milwad\\LaravelValidate\\Tests\\BaseTest::success":0.037,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::all_lang_folders_publish_successfully":0.35,"Milwad\\LaravelValidate\\Tests\\LaravelValidateServiceProviderTest::config_file_publish_successful":0.148,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_valid":0.014,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBase64Test::base64_is_not_valid":0.003,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidBitcoinAddressTest::bitcoin_address_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCamelCaseTest::camel_case_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCapitalCharWithNumberTest::capital_char_with_number_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCarNumberTest::car_number_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCartNumberIranTest::cart_number_iran_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidCreditCardTest::credit_card_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDiscordUsernameTest::discord_username_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDomainTest::domain_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::success":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateCharacterTest::duplicate_characters_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_number_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_valid":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidDuplicateTest::duplicate_string_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_even":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidEvenNumberTest::check_number_is_not_even":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_hashtag":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHashtagTest::text_has_no_hashtag":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_valid_hex_code":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHexColorTest::text_is_not_valid_hex_code":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidHtmlTagTest::html_tag_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_without_country":0.008,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_a_country":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_valid_with_multiple_countries":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_without_country":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_a_country":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIbanTest::iban_is_not_valid_with_multiple_countries":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidImeiTest::imei_is_not_valid":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV4Test::ipv4_address_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIpAddressIPV6Test::ipv6_address_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidIranPostalCodeTest::postal_code_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_string":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_correct_with_different_default_character":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJalaliDateTest::jalali_date_is_not_correct_with_different_default_character":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidJwtTest::jwt_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidKebabCaseTest::kebab_case_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNameDaysWeekTest::name_day_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidNationalCardTest::national_code_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_odd":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidOddNumberTest::number_is_not_odd":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPascalCaseTest::pascal_case_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPatternTest::pattern_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::success":0.106,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_valid":0.023,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::phone_number_is_not_valid":0.003,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::all_phone_number_is_valid_by_specific_code":0.002,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPhoneNumberTest::if_phone_number_validate_method_is_not_exists":0.014,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidPortTest::port_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlashEndOfStringTest::slash_end_of_string_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSlugTest::slug_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidSnakeCaseTest::snake_case_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_strong":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidStrongPasswordTest::password_is_not_strong":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUlidTest::ulid_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUrlTest::url_is_nor_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUsernameTest::username_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidUuidTest::uuid_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::success":0,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vatid_is_not_valid":0.001,"Milwad\\LaravelValidate\\Tests\\Rules\\ValidVatIdTest::vat_is_to_long_valid":0.001}} \ No newline at end of file diff --git a/src/LaravelValidateServiceProvider.php b/src/LaravelValidateServiceProvider.php index 6fa1852..ac55735 100644 --- a/src/LaravelValidateServiceProvider.php +++ b/src/LaravelValidateServiceProvider.php @@ -77,6 +77,8 @@ private function publishConfigFile(): void /** * Boot applications. + * + * @throws \Throwable */ public function boot(): void { From 0fb27866b65c600d979efffdf62ac0e49e5ad7be Mon Sep 17 00:00:00 2001 From: milwad-dev Date: Sun, 9 Jun 2024 07:14:48 +0000 Subject: [PATCH 27/27] Fix styling --- src/Utils/CountryPhoneCallback.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Utils/CountryPhoneCallback.php b/src/Utils/CountryPhoneCallback.php index 8f9bcb4..b73d152 100644 --- a/src/Utils/CountryPhoneCallback.php +++ b/src/Utils/CountryPhoneCallback.php @@ -9,8 +9,6 @@ class CountryPhoneCallback { /** * Country Validate classes. - * - * @var array */ protected static array $validators = [];