Skip to content

Commit

Permalink
Polish (#400)
Browse files Browse the repository at this point in the history
* Polish

* polish

* improve workflow

* Fix action usage

* polish

* polish
  • Loading branch information
egulias authored Dec 31, 2024
1 parent dcf8f79 commit 8be1dae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down
12 changes: 8 additions & 4 deletions src/Result/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 8be1dae

Please sign in to comment.