Single blank line at eof (#330)

A PHP file without end tag must always end with a single empty line feed.
This commit is contained in:
Mathias Reker ⚡️
2022-07-13 16:51:51 +02:00
committed by GitHub
parent cf5908bb1a
commit 1ca313dfcd
32 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -88,4 +88,4 @@ class MessageIDParser extends Parser
$this->warnings[EmailTooLong::CODE] = new EmailTooLong();
}
}
}
}
+1 -1
View File
@@ -101,4 +101,4 @@ class Comment extends PartParser
return true;
}
}
}
}
@@ -15,4 +15,4 @@ interface CommentStrategy
public function endOfLoopValidations(EmailLexer $lexer) : Result;
public function getWarnings() : array;
}
}
+1 -1
View File
@@ -34,4 +34,4 @@ class DomainComment implements CommentStrategy
{
return [];
}
}
}
+1 -1
View File
@@ -34,4 +34,4 @@ class LocalComment implements CommentStrategy
{
return $this->warnings;
}
}
}
+1 -1
View File
@@ -208,4 +208,4 @@ class DomainLiteral extends PartParser
}
}
}
}
+1 -1
View File
@@ -84,4 +84,4 @@ class DoubleQuote extends PartParser
return new ValidEmail();
}
}
}
+1 -1
View File
@@ -83,4 +83,4 @@ class FoldingWhiteSpace extends PartParser
return in_array($this->lexer->token['type'], self::FWS_TYPES);
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ class IDLeftPart extends LocalPart
{
return new InvalidEmail(new CommentsInIDRight(), $this->lexer->token['value']);
}
}
}
+1 -1
View File
@@ -26,4 +26,4 @@ class IDRightPart extends DomainPart
}
return new ValidEmail();
}
}
}
+1 -1
View File
@@ -162,4 +162,4 @@ class LocalPart extends PartParser
return new ValidEmail();
}
}
}
+1 -1
View File
@@ -60,4 +60,4 @@ abstract class PartParser
&&
$this->lexer->token['type'] !== EmailLexer::GENERIC;
}
}
}
+1 -1
View File
@@ -43,4 +43,4 @@ class InvalidEmail implements Result
return $this->reason;
}
}
}
+1 -1
View File
@@ -13,4 +13,4 @@ class AtextAfterCFWS implements Reason
{
return 'ATEXT found after CFWS';
}
}
}
+1 -1
View File
@@ -13,4 +13,4 @@ class CharNotAllowed implements Reason
{
return "Character not allowed";
}
}
}
+1 -1
View File
@@ -13,4 +13,4 @@ class CommaInDomain implements Reason
{
return "Comma ',' is not allowed in domain part";
}
}
}
+1 -1
View File
@@ -13,4 +13,4 @@ class CommentsInIDRight implements Reason
{
return 'Comments are not allowed in IDRight for message-id';
}
}
}
+1 -1
View File
@@ -10,4 +10,4 @@ abstract class DetailedReason implements Reason
{
$this->detailedDescription = $details;
}
}
}
+1 -1
View File
@@ -13,4 +13,4 @@ class DomainAcceptsNoMail implements Reason
{
return 'Domain accepts no mail (Null MX, RFC7505)';
}
}
}
+1 -1
View File
@@ -23,4 +23,4 @@ class ExceptionFound implements Reason
{
return $this->exception->getMessage();
}
}
}
@@ -13,4 +13,4 @@ class ExpectingDomainLiteralClose implements Reason
{
return "Closing bracket ']' for domain literal not found";
}
}
}
+1 -1
View File
@@ -13,4 +13,4 @@ class LocalOrReservedDomain implements Reason
{
return 'Local, mDNS or reserved domain (RFC2606, RFC6762)';
}
}
}
+1 -1
View File
@@ -13,4 +13,4 @@ class NoDNSRecord implements Reason
{
return 'No MX or A DSN record was found for this email';
}
}
}
+1 -1
View File
@@ -13,4 +13,4 @@ interface Reason
* Short description of the result, human readable.
*/
public function description() : string;
}
}
+1 -1
View File
@@ -13,4 +13,4 @@ class UnOpenedComment implements Reason
{
return 'Missing opening comment parentheses - https://tools.ietf.org/html/rfc5322#section-3.2.2';
}
}
}
+1 -1
View File
@@ -23,4 +23,4 @@ class UnusualElements implements Reason
{
return 'Unusual element found, wourld render invalid in majority of cases. Element found: ' . $this->element;
}
}
}
+1 -1
View File
@@ -24,4 +24,4 @@ interface Result
* Code for user land to act upon.
*/
public function code() : int;
}
}
+1 -1
View File
@@ -10,4 +10,4 @@ class SpoofEmail extends InvalidEmail
$this->reason = new ReasonSpoofEmail();
parent::__construct($this->reason, '');
}
}
}
+1 -1
View File
@@ -24,4 +24,4 @@ class ValidEmail implements Result
return 0;
}
}
}
+1 -1
View File
@@ -188,4 +188,4 @@ class DNSCheckValidation implements EmailValidation
return true;
}
}
}
+1 -1
View File
@@ -25,4 +25,4 @@ class DNSGetRecordWrapper
restore_error_handler();
}
}
}
}
+1 -1
View File
@@ -32,4 +32,4 @@ class DNSRecords
}
}
}