61 Commits

Author SHA1 Message Date
Márk Magyar 27be0e7157 code refactor (#364)
* use spread syntax instead of array_merge()

* use type cast instead of function cast

* removed redundant returns

* removed redundant phpdoc - type is already inferred

* removed invalid phpdoc - type is already inferred

The PHPDoc return type hint was incomplete, it should have been `InvalidEmail|null`, however, it can be removed altogether as the return type is already inferred from the code.

* changed warnEscaping()'s return value from bool to void

This is not a breaking change as the method is private,  and it's only used at one place, where the return value was not used anyway.

* made private class property local

`private $parser` was used in only one place, hence it can be local, there is no reason to put it into the class' scope.

* removed unnecessary type casting

Concatenation already casts `static::CODE` from `int` to `string`, no reason to do it explicitly.

* removed redundant initializers - constructor overwrites them immediately

* removed redundant else block

* simplified if-else statement

* wrapped if body in brackets to comply with PSR12

* fixed README formatting

- fixed numbering at the `Available validations` section
- fixed overall formatting

* Revert "removed redundant phpdoc - type is already inferred"

This reverts commit 68a9ae20bd.

* don't wrap long lines

* make properties typed

Also using constructor property promotion, see more info about it [here](https://php.watch/versions/8.0/constructor-property-promotion).
2023-06-07 16:47:52 +02:00
Eduardo Gulias Davis 97c28cd611 Badges and Scrutinezr config (#366)
* Codacy badges and removing Scrutinizr config
2023-05-23 22:25:38 +02:00
Eduardo Gulias Davis db4c31490b V4 readme updates (#353)
* README for v4
2023-01-07 12:14:40 +01:00
Eduardo Gulias Davis 28e911fa56 Resolve conflicts for v4 first commit 2023-01-02 19:00:18 +01:00
Dries Vints b531a23117 GitHub Actions (#348)
* Add GitHub Actions workflow

* Ignore composer.lock

* Separate static analysis build

* Use ramsey/composer-install

* Add 7.2 and 7.3

* Remove coveralls
2023-01-02 18:26:14 +01:00
Bastien Wermeille d25d60679b Fix readme + clean composer.json 2022-12-28 23:06:42 +01:00
Bastien Wermeille 0841364b8d Upgrade to doctrine/lexer 3.x 2022-12-18 21:51:37 +01:00
Daniel Winzen 312b65911f Fixed Spoofchecking link (#314) 2022-02-18 16:25:29 +01:00
Denis Gurov d51b279b5f Typos (#313)
A few typos in README
2022-02-11 18:09:16 +01:00
Eduardo Gulias Davis 4cccb8186b Update badges 2021-10-11 17:52:58 +02:00
Eduardo Gulias Davis 62c3b73c58 Update README.md 2021-03-07 15:33:28 +01:00
Eduardo Gulias Davis de0fb24141 Typo & correct RFC 2021-01-27 17:48:19 +01:00
Eduardo Gulias Davis 17e0e0f683 Add internet domains rfc to the list 2020-12-30 12:10:38 +01:00
Eduardo Gulias Davis 3a80c1b2c4 Adding release version 2020-12-30 11:46:34 +01:00
Eduardo Gulias Davis 4254b5c77a Badges update 2020-12-29 16:55:55 +01:00
Eduardo Gulias Davis 9b0483cfa3 PHP version policy 2020-12-29 15:57:20 +01:00
Eduardo Gulias Davis d0ea847f77 polish 2020-12-29 15:47:34 +01:00
Eduardo Gulias Davis 61f858a16f Adding supported versions 2020-12-28 23:46:39 +01:00
Eduardo Gulias Davis cf3467be77 Documentation 2020-12-28 11:54:02 +01:00
Eduardo Gulias Davis 35c9db913f Port of comma in domain and README improvement. 2020-11-08 15:57:58 +01:00
Eduardo Gulias Davis e2e234c4d8 merging from master, folder structure change 2020-08-30 15:59:42 +02:00
Eduardo Gulias Davis e3710e7c12 Fixed handling of errors and null type hint 2020-08-15 16:46:45 +02:00
Viktor Szépe 5568c52464 Fix links and formatting in README (#252) 2020-07-23 23:49:55 +02:00
Victor Bocharsky a09af2de87 Minor: Use SVG format for some bad looking badges in README (#197) 2019-05-07 22:08:52 +02:00
Victor Bocharsky c802f106b3 Simplify installation command in README (#198)
Composer will automatically use BC constraint, like `^2.1.7`
2019-05-07 22:08:00 +02:00
Eduardo Gulias Davis e68c26e065 Update supported RFCs (#186)
solves #186
2018-12-03 11:33:36 +01:00
nikitos569 0043eab0c5 Update README.md (#180) 2018-10-19 00:14:56 +02:00
Tom Sommer 9dde0df1e3 DNSCheckValidation requires the Intl extension (#175)
* DNSCheckValidation requires the Intl extension as well

* Check for Intl extension in DNSCheckValidation
2018-08-13 14:43:24 +02:00
Robbert 74c0f07434 Clarification fix (#162)
You implement an interface.
2018-01-05 23:40:27 +01:00
Rotzbua ad1a0e9773 Update README.md (#157)
changed links from http to https if supported
2017-11-23 01:15:37 +01:00
Santiago Castro 3abad65421 Fix broken Markdown headings (#149) 2017-04-18 23:06:35 +02:00
gjenjoying 181a2fc726 update readme (#135)
* update readme

use Egulias\EmailValidator\Validation\RFCValidation  is required.
2016-12-15 20:18:15 +01:00
Alf Eaton a1e85fa9fb Fix NoRFCWarningsValidation name in README (#134) 2016-11-10 20:04:43 +01:00
Eduardo Gulias Davis 5d56347ddf Typo 2016-08-07 23:26:30 +02:00
Eduardo Gulias Davis 80ad87acdd Update composer instructions 2016-08-07 23:25:34 +02:00
Eduardo Gulias Davis cbb8b9e152 PHPStorm help and composer suggestion 2016-08-07 23:16:06 +02:00
Brady 9160e26b13 List and links
Turned requirements into an unordered list. Removed the PHPstorm logo as it doesn't exist and could not find one to replace it.
2016-07-19 06:49:04 +02:00
Brady eb036b7d1c Correct PHP example. Add a requirements section.
Corrected PHP example for missing semi-colons. Added a new requirements section that explains the need for composer and the need of the PHP Intl library to use the spoof validation.
2016-07-18 11:55:21 +02:00
Pedro Maia e9c46eed92 Fix typo (#112) 2016-05-19 00:20:10 +02:00
Eduardo Gulias Davis 87dc3c477e Update README.md for v2 (#106)
* Update README.md
2016-05-10 01:13:51 +02:00
Chris McCafferty 0afaa6a3b6 Replaces dos-type line endings. Fixes issue #69. 2015-05-17 16:37:57 -04:00
Christian Flothmann 773fe5f4a3 fix readme markup
Before, the character would have been rendered as is instead of being
treated as the final character of the headline.
2015-03-05 20:05:56 +01:00
Eduardo Gulias Davis add559b99c Add PhpStorm logo
Thanks for supporting!
2015-01-04 17:03:09 +01:00
Rafael Dohms 3d94cc6487 Update README.md
Updated composer installation instructions.
It now follows the recommendation of using the "require" command and letting Composer auto-define the latest version.
2014-10-22 14:29:38 +02:00
Rafael Antonio 57f8ae443b Fix namespace 2014-10-21 09:28:45 +02:00
Christophe Coevoet 41cb75ec00 Fixed the SensioLabsInsight project id
Closes #23
2014-09-17 14:12:41 +02:00
thewilkybarkid 887605ad1b Fix typo 2014-09-17 09:06:33 +01:00
thewilkybarkid 43e1825cd8 Improve suggested constraint 2014-09-17 09:06:22 +01:00
Eduardo Gulias Davis 2f44d7b1e1 #23 - SensioLabsInsight errors 2014-09-16 23:20:11 +02:00
Maxime Horcholle 9be8eb420a typo 2014-09-16 19:07:39 +02:00