From 1ca313dfcdeea4a171483c12b3921b1efd1a959b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Reker=20=E2=9A=A1=EF=B8=8F?= Date: Wed, 13 Jul 2022 16:51:51 +0200 Subject: [PATCH] Single blank line at eof (#330) A PHP file without end tag must always end with a single empty line feed. --- src/MessageIDParser.php | 2 +- src/Parser/Comment.php | 2 +- src/Parser/CommentStrategy/CommentStrategy.php | 2 +- src/Parser/CommentStrategy/DomainComment.php | 2 +- src/Parser/CommentStrategy/LocalComment.php | 2 +- src/Parser/DomainLiteral.php | 2 +- src/Parser/DoubleQuote.php | 2 +- src/Parser/FoldingWhiteSpace.php | 2 +- src/Parser/IDLeftPart.php | 2 +- src/Parser/IDRightPart.php | 2 +- src/Parser/LocalPart.php | 2 +- src/Parser/PartParser.php | 2 +- src/Result/InvalidEmail.php | 2 +- src/Result/Reason/AtextAfterCFWS.php | 2 +- src/Result/Reason/CharNotAllowed.php | 2 +- src/Result/Reason/CommaInDomain.php | 2 +- src/Result/Reason/CommentsInIDRight.php | 2 +- src/Result/Reason/DetailedReason.php | 2 +- src/Result/Reason/DomainAcceptsNoMail.php | 2 +- src/Result/Reason/ExceptionFound.php | 2 +- src/Result/Reason/ExpectingDomainLiteralClose.php | 2 +- src/Result/Reason/LocalOrReservedDomain.php | 2 +- src/Result/Reason/NoDNSRecord.php | 2 +- src/Result/Reason/Reason.php | 2 +- src/Result/Reason/UnOpenedComment.php | 2 +- src/Result/Reason/UnusualElements.php | 2 +- src/Result/Result.php | 2 +- src/Result/SpoofEmail.php | 2 +- src/Result/ValidEmail.php | 2 +- src/Validation/DNSCheckValidation.php | 2 +- src/Validation/DNSGetRecordWrapper.php | 2 +- src/Validation/DNSRecords.php | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) diff --git a/src/MessageIDParser.php b/src/MessageIDParser.php index be8cbb0..52e4a82 100644 --- a/src/MessageIDParser.php +++ b/src/MessageIDParser.php @@ -88,4 +88,4 @@ class MessageIDParser extends Parser $this->warnings[EmailTooLong::CODE] = new EmailTooLong(); } } -} \ No newline at end of file +} diff --git a/src/Parser/Comment.php b/src/Parser/Comment.php index 284f1e8..d6f3032 100644 --- a/src/Parser/Comment.php +++ b/src/Parser/Comment.php @@ -101,4 +101,4 @@ class Comment extends PartParser return true; } } -} \ No newline at end of file +} diff --git a/src/Parser/CommentStrategy/CommentStrategy.php b/src/Parser/CommentStrategy/CommentStrategy.php index c388efd..410032f 100644 --- a/src/Parser/CommentStrategy/CommentStrategy.php +++ b/src/Parser/CommentStrategy/CommentStrategy.php @@ -15,4 +15,4 @@ interface CommentStrategy public function endOfLoopValidations(EmailLexer $lexer) : Result; public function getWarnings() : array; -} \ No newline at end of file +} diff --git a/src/Parser/CommentStrategy/DomainComment.php b/src/Parser/CommentStrategy/DomainComment.php index b34ce29..cbbe3f2 100644 --- a/src/Parser/CommentStrategy/DomainComment.php +++ b/src/Parser/CommentStrategy/DomainComment.php @@ -34,4 +34,4 @@ class DomainComment implements CommentStrategy { return []; } -} \ No newline at end of file +} diff --git a/src/Parser/CommentStrategy/LocalComment.php b/src/Parser/CommentStrategy/LocalComment.php index 73bc7b2..e72319a 100644 --- a/src/Parser/CommentStrategy/LocalComment.php +++ b/src/Parser/CommentStrategy/LocalComment.php @@ -34,4 +34,4 @@ class LocalComment implements CommentStrategy { return $this->warnings; } -} \ No newline at end of file +} diff --git a/src/Parser/DomainLiteral.php b/src/Parser/DomainLiteral.php index 4e5b8bf..c668bf2 100644 --- a/src/Parser/DomainLiteral.php +++ b/src/Parser/DomainLiteral.php @@ -208,4 +208,4 @@ class DomainLiteral extends PartParser } } -} \ No newline at end of file +} diff --git a/src/Parser/DoubleQuote.php b/src/Parser/DoubleQuote.php index 1049a35..b32e2b6 100644 --- a/src/Parser/DoubleQuote.php +++ b/src/Parser/DoubleQuote.php @@ -84,4 +84,4 @@ class DoubleQuote extends PartParser return new ValidEmail(); } -} \ No newline at end of file +} diff --git a/src/Parser/FoldingWhiteSpace.php b/src/Parser/FoldingWhiteSpace.php index da17d43..a332963 100644 --- a/src/Parser/FoldingWhiteSpace.php +++ b/src/Parser/FoldingWhiteSpace.php @@ -83,4 +83,4 @@ class FoldingWhiteSpace extends PartParser return in_array($this->lexer->token['type'], self::FWS_TYPES); } -} \ No newline at end of file +} diff --git a/src/Parser/IDLeftPart.php b/src/Parser/IDLeftPart.php index c85f888..5fd9cdf 100644 --- a/src/Parser/IDLeftPart.php +++ b/src/Parser/IDLeftPart.php @@ -12,4 +12,4 @@ class IDLeftPart extends LocalPart { return new InvalidEmail(new CommentsInIDRight(), $this->lexer->token['value']); } -} \ No newline at end of file +} diff --git a/src/Parser/IDRightPart.php b/src/Parser/IDRightPart.php index 2432562..1a1268f 100644 --- a/src/Parser/IDRightPart.php +++ b/src/Parser/IDRightPart.php @@ -26,4 +26,4 @@ class IDRightPart extends DomainPart } return new ValidEmail(); } -} \ No newline at end of file +} diff --git a/src/Parser/LocalPart.php b/src/Parser/LocalPart.php index 90f01a5..5ed395c 100644 --- a/src/Parser/LocalPart.php +++ b/src/Parser/LocalPart.php @@ -162,4 +162,4 @@ class LocalPart extends PartParser return new ValidEmail(); } -} \ No newline at end of file +} diff --git a/src/Parser/PartParser.php b/src/Parser/PartParser.php index fd65fc5..a75a172 100644 --- a/src/Parser/PartParser.php +++ b/src/Parser/PartParser.php @@ -60,4 +60,4 @@ abstract class PartParser && $this->lexer->token['type'] !== EmailLexer::GENERIC; } -} \ No newline at end of file +} diff --git a/src/Result/InvalidEmail.php b/src/Result/InvalidEmail.php index 3d85e15..858bae4 100644 --- a/src/Result/InvalidEmail.php +++ b/src/Result/InvalidEmail.php @@ -43,4 +43,4 @@ class InvalidEmail implements Result return $this->reason; } -} \ No newline at end of file +} diff --git a/src/Result/Reason/AtextAfterCFWS.php b/src/Result/Reason/AtextAfterCFWS.php index 76015a2..96e2284 100644 --- a/src/Result/Reason/AtextAfterCFWS.php +++ b/src/Result/Reason/AtextAfterCFWS.php @@ -13,4 +13,4 @@ class AtextAfterCFWS implements Reason { return 'ATEXT found after CFWS'; } -} \ No newline at end of file +} diff --git a/src/Result/Reason/CharNotAllowed.php b/src/Result/Reason/CharNotAllowed.php index 45999b3..7840cc7 100644 --- a/src/Result/Reason/CharNotAllowed.php +++ b/src/Result/Reason/CharNotAllowed.php @@ -13,4 +13,4 @@ class CharNotAllowed implements Reason { return "Character not allowed"; } -} \ No newline at end of file +} diff --git a/src/Result/Reason/CommaInDomain.php b/src/Result/Reason/CommaInDomain.php index 93d3b56..055f145 100644 --- a/src/Result/Reason/CommaInDomain.php +++ b/src/Result/Reason/CommaInDomain.php @@ -13,4 +13,4 @@ class CommaInDomain implements Reason { return "Comma ',' is not allowed in domain part"; } -} \ No newline at end of file +} diff --git a/src/Result/Reason/CommentsInIDRight.php b/src/Result/Reason/CommentsInIDRight.php index 43a7cf7..6567a11 100644 --- a/src/Result/Reason/CommentsInIDRight.php +++ b/src/Result/Reason/CommentsInIDRight.php @@ -13,4 +13,4 @@ class CommentsInIDRight implements Reason { return 'Comments are not allowed in IDRight for message-id'; } -} \ No newline at end of file +} diff --git a/src/Result/Reason/DetailedReason.php b/src/Result/Reason/DetailedReason.php index 1751987..8541c92 100644 --- a/src/Result/Reason/DetailedReason.php +++ b/src/Result/Reason/DetailedReason.php @@ -10,4 +10,4 @@ abstract class DetailedReason implements Reason { $this->detailedDescription = $details; } -} \ No newline at end of file +} diff --git a/src/Result/Reason/DomainAcceptsNoMail.php b/src/Result/Reason/DomainAcceptsNoMail.php index 55f44bb..bcaefb6 100644 --- a/src/Result/Reason/DomainAcceptsNoMail.php +++ b/src/Result/Reason/DomainAcceptsNoMail.php @@ -13,4 +13,4 @@ class DomainAcceptsNoMail implements Reason { return 'Domain accepts no mail (Null MX, RFC7505)'; } -} \ No newline at end of file +} diff --git a/src/Result/Reason/ExceptionFound.php b/src/Result/Reason/ExceptionFound.php index 8b1135d..ffed86c 100644 --- a/src/Result/Reason/ExceptionFound.php +++ b/src/Result/Reason/ExceptionFound.php @@ -23,4 +23,4 @@ class ExceptionFound implements Reason { return $this->exception->getMessage(); } -} \ No newline at end of file +} diff --git a/src/Result/Reason/ExpectingDomainLiteralClose.php b/src/Result/Reason/ExpectingDomainLiteralClose.php index 7deffca..525e7ac 100644 --- a/src/Result/Reason/ExpectingDomainLiteralClose.php +++ b/src/Result/Reason/ExpectingDomainLiteralClose.php @@ -13,4 +13,4 @@ class ExpectingDomainLiteralClose implements Reason { return "Closing bracket ']' for domain literal not found"; } -} \ No newline at end of file +} diff --git a/src/Result/Reason/LocalOrReservedDomain.php b/src/Result/Reason/LocalOrReservedDomain.php index bc7c5d5..c464767 100644 --- a/src/Result/Reason/LocalOrReservedDomain.php +++ b/src/Result/Reason/LocalOrReservedDomain.php @@ -13,4 +13,4 @@ class LocalOrReservedDomain implements Reason { return 'Local, mDNS or reserved domain (RFC2606, RFC6762)'; } -} \ No newline at end of file +} diff --git a/src/Result/Reason/NoDNSRecord.php b/src/Result/Reason/NoDNSRecord.php index e217d02..2c966c2 100644 --- a/src/Result/Reason/NoDNSRecord.php +++ b/src/Result/Reason/NoDNSRecord.php @@ -13,4 +13,4 @@ class NoDNSRecord implements Reason { return 'No MX or A DSN record was found for this email'; } -} \ No newline at end of file +} diff --git a/src/Result/Reason/Reason.php b/src/Result/Reason/Reason.php index e6810b9..786eb9b 100644 --- a/src/Result/Reason/Reason.php +++ b/src/Result/Reason/Reason.php @@ -13,4 +13,4 @@ interface Reason * Short description of the result, human readable. */ public function description() : string; -} \ No newline at end of file +} diff --git a/src/Result/Reason/UnOpenedComment.php b/src/Result/Reason/UnOpenedComment.php index c76a584..b0a4316 100644 --- a/src/Result/Reason/UnOpenedComment.php +++ b/src/Result/Reason/UnOpenedComment.php @@ -13,4 +13,4 @@ class UnOpenedComment implements Reason { return 'Missing opening comment parentheses - https://tools.ietf.org/html/rfc5322#section-3.2.2'; } -} \ No newline at end of file +} diff --git a/src/Result/Reason/UnusualElements.php b/src/Result/Reason/UnusualElements.php index 03873dc..861f3bc 100644 --- a/src/Result/Reason/UnusualElements.php +++ b/src/Result/Reason/UnusualElements.php @@ -23,4 +23,4 @@ class UnusualElements implements Reason { return 'Unusual element found, wourld render invalid in majority of cases. Element found: ' . $this->element; } -} \ No newline at end of file +} diff --git a/src/Result/Result.php b/src/Result/Result.php index 1e16bcc..fd13e6c 100644 --- a/src/Result/Result.php +++ b/src/Result/Result.php @@ -24,4 +24,4 @@ interface Result * Code for user land to act upon. */ public function code() : int; -} \ No newline at end of file +} diff --git a/src/Result/SpoofEmail.php b/src/Result/SpoofEmail.php index e507125..0ad449b 100644 --- a/src/Result/SpoofEmail.php +++ b/src/Result/SpoofEmail.php @@ -10,4 +10,4 @@ class SpoofEmail extends InvalidEmail $this->reason = new ReasonSpoofEmail(); parent::__construct($this->reason, ''); } -} \ No newline at end of file +} diff --git a/src/Result/ValidEmail.php b/src/Result/ValidEmail.php index 4f3693a..fdc882f 100644 --- a/src/Result/ValidEmail.php +++ b/src/Result/ValidEmail.php @@ -24,4 +24,4 @@ class ValidEmail implements Result return 0; } -} \ No newline at end of file +} diff --git a/src/Validation/DNSCheckValidation.php b/src/Validation/DNSCheckValidation.php index d46aaca..b8fd41c 100644 --- a/src/Validation/DNSCheckValidation.php +++ b/src/Validation/DNSCheckValidation.php @@ -188,4 +188,4 @@ class DNSCheckValidation implements EmailValidation return true; } -} \ No newline at end of file +} diff --git a/src/Validation/DNSGetRecordWrapper.php b/src/Validation/DNSGetRecordWrapper.php index ec6fe4b..f493c57 100644 --- a/src/Validation/DNSGetRecordWrapper.php +++ b/src/Validation/DNSGetRecordWrapper.php @@ -25,4 +25,4 @@ class DNSGetRecordWrapper restore_error_handler(); } } -} \ No newline at end of file +} diff --git a/src/Validation/DNSRecords.php b/src/Validation/DNSRecords.php index afda213..b026a2d 100644 --- a/src/Validation/DNSRecords.php +++ b/src/Validation/DNSRecords.php @@ -32,4 +32,4 @@ class DNSRecords } -} \ No newline at end of file +}