Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/MessageIDParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ private function addLongEmailWarning(string $localPart, string $parsedDomainPart
$this->warnings[EmailTooLong::CODE] = new EmailTooLong();
}
}
}
}
2 changes: 1 addition & 1 deletion src/Parser/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ private function noClosingParenthesis() : bool
return true;
}
}
}
}
2 changes: 1 addition & 1 deletion src/Parser/CommentStrategy/CommentStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ public function exitCondition(EmailLexer $lexer, int $openedParenthesis) : bool;
public function endOfLoopValidations(EmailLexer $lexer) : Result;

public function getWarnings() : array;
}
}
2 changes: 1 addition & 1 deletion src/Parser/CommentStrategy/DomainComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ public function getWarnings(): array
{
return [];
}
}
}
2 changes: 1 addition & 1 deletion src/Parser/CommentStrategy/LocalComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ public function getWarnings(): array
{
return $this->warnings;
}
}
}
2 changes: 1 addition & 1 deletion src/Parser/DomainLiteral.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,4 @@ private function addTagWarnings() : void
}
}

}
}
2 changes: 1 addition & 1 deletion src/Parser/DoubleQuote.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ protected function checkDQUOTE() : Result
return new ValidEmail();
}

}
}
2 changes: 1 addition & 1 deletion src/Parser/FoldingWhiteSpace.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ protected function isFWS() : bool

return in_array($this->lexer->token['type'], self::FWS_TYPES);
}
}
}
2 changes: 1 addition & 1 deletion src/Parser/IDLeftPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ protected function parseComments(): Result
{
return new InvalidEmail(new CommentsInIDRight(), $this->lexer->token['value']);
}
}
}
2 changes: 1 addition & 1 deletion src/Parser/IDRightPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ protected function validateTokens(bool $hasComments) : Result
}
return new ValidEmail();
}
}
}
2 changes: 1 addition & 1 deletion src/Parser/LocalPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,4 @@ private function validateEscaping() : Result

return new ValidEmail();
}
}
}
2 changes: 1 addition & 1 deletion src/Parser/PartParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ protected function escaped() : bool
&&
$this->lexer->token['type'] !== EmailLexer::GENERIC;
}
}
}
2 changes: 1 addition & 1 deletion src/Result/InvalidEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ public function reason() : Reason
return $this->reason;
}

}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/AtextAfterCFWS.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function description() : string
{
return 'ATEXT found after CFWS';
}
}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/CharNotAllowed.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function description() : string
{
return "Character not allowed";
}
}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/CommaInDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function description() : string
{
return "Comma ',' is not allowed in domain part";
}
}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/CommentsInIDRight.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function description() : string
{
return 'Comments are not allowed in IDRight for message-id';
}
}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/DetailedReason.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ public function __construct(string $details)
{
$this->detailedDescription = $details;
}
}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/DomainAcceptsNoMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function description() : string
{
return 'Domain accepts no mail (Null MX, RFC7505)';
}
}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/ExceptionFound.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ public function description() : string
{
return $this->exception->getMessage();
}
}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/ExpectingDomainLiteralClose.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function description() : string
{
return "Closing bracket ']' for domain literal not found";
}
}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/LocalOrReservedDomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function description() : string
{
return 'Local, mDNS or reserved domain (RFC2606, RFC6762)';
}
}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/NoDNSRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function description() : string
{
return 'No MX or A DSN record was found for this email';
}
}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/Reason.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function code() : int;
* Short description of the result, human readable.
*/
public function description() : string;
}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/UnOpenedComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ public function description(): string
{
return 'Missing opening comment parentheses - https://tools.ietf.org/html/rfc5322#section-3.2.2';
}
}
}
2 changes: 1 addition & 1 deletion src/Result/Reason/UnusualElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ public function description() : string
{
return 'Unusual element found, wourld render invalid in majority of cases. Element found: ' . $this->element;
}
}
}
2 changes: 1 addition & 1 deletion src/Result/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ public function description() : string;
* Code for user land to act upon.
*/
public function code() : int;
}
}
2 changes: 1 addition & 1 deletion src/Result/SpoofEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ public function __construct()
$this->reason = new ReasonSpoofEmail();
parent::__construct($this->reason, '');
}
}
}
2 changes: 1 addition & 1 deletion src/Result/ValidEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ public function code(): int
return 0;
}

}
}
2 changes: 1 addition & 1 deletion src/Validation/DNSCheckValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,4 @@ private function validateMxRecord($dnsRecord) : bool

return true;
}
}
}
2 changes: 1 addition & 1 deletion src/Validation/DNSGetRecordWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ static function (int $errorLevel, string $errorMessage): ?bool {
restore_error_handler();
}
}
}
}
2 changes: 1 addition & 1 deletion src/Validation/DNSRecords.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ public function withError() : bool
}


}
}