From 8be1dae097317e722e32821f696906ff5bde10f6 Mon Sep 17 00:00:00 2001 From: Eduardo Gulias Davis <791806+egulias@users.noreply.github.com> Date: Tue, 31 Dec 2024 15:39:18 +0100 Subject: [PATCH] Polish (#400) * Polish * polish * improve workflow * Fix action usage * polish * polish --- README.md | 6 +++--- src/Result/Result.php | 12 ++++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1d61f60..eed19d0 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ This library aims to support RFCs: * [Spoofchecking](/src/Validation/Extra/SpoofCheckValidation.php) and [DNSCheckValidation](/src/Validation/DNSCheckValidation.php) validation requires that your PHP system has the -[PHP Internationalization Libraries](https://php.net/manual/en/book.intl.php) +[PHP Internationalization Libraries](https://php.net/manual/en/book.intl.php) (also known as PHP Intl) **Note**: `PHP version upgrades will happen to accomodate to the pace of major @@ -109,7 +109,6 @@ Validations not present in the RFCs 1. [SpoofCheckValidation](/src/Validation/Extra/SpoofCheckValidation.php): Will check for multi-utf-8 chars that can signal an erroneous email name. - ### How to extend It's easy! You just need to implement @@ -126,7 +125,8 @@ Is short and simple and will help a lot. (You can find current contributors [here](/~https://github.com/egulias/EmailValidator/graphs/contributors)) -As this is a port from another library and work, here are other people related to the previous one: +As this is a port from another library and work, here are other people related +to the previous one: * Ricard Clau [@ricardclau](/~https://github.com/ricardclau): Performance against PHP built-in filter_var (v2 and earlier) diff --git a/src/Result/Result.php b/src/Result/Result.php index fd13e6c..0e50fc5 100644 --- a/src/Result/Result.php +++ b/src/Result/Result.php @@ -6,22 +6,26 @@ interface Result { /** * Is validation result valid? + * */ - public function isValid() : bool; + public function isValid(): bool; /** * Is validation result invalid? * Usually the inverse of isValid() + * */ - public function isInvalid() : bool; + public function isInvalid(): bool; /** * Short description of the result, human readable. + * */ - public function description() : string; + public function description(): string; /** * Code for user land to act upon. + * */ - public function code() : int; + public function code(): int; }