mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-08-20 17:30:34 +00:00
8e526a57c1
* scafolding for MessageID validation * Improve domain valid tokens * Improved EmailParser to remove leaked logic. User of lexer recorder within parsers. * MessageIDParser passing tests. * change left for right, which is the right one * psaml errors * Better naming * comments are not allowed in IDLeft for message-id * Suppress psalm inheritance over tokens and dependencies * Update src/Parser.php Co-authored-by: Alexander M. Turek <me@derrabus.de> * Update src/Parser.php Co-authored-by: Alexander M. Turek <me@derrabus.de> * improve parser from comments Co-authored-by: Alexander M. Turek <me@derrabus.de>
16 lines
291 B
PHP
16 lines
291 B
PHP
<?php
|
|
|
|
namespace Egulias\EmailValidator\Result\Reason;
|
|
|
|
class CommentsInIDRight implements Reason
|
|
{
|
|
public function code() : int
|
|
{
|
|
return 400;
|
|
}
|
|
|
|
public function description() : string
|
|
{
|
|
return 'Comments are not allowed in IDRight for message-id';
|
|
}
|
|
} |