Skip to content
Snippets Groups Projects
Unverified Commit 1ca313df authored by Mathias Reker ⚡️'s avatar Mathias Reker ⚡️ Committed by GitHub
Browse files

Single blank line at eof (#330)

A PHP file without end tag must always end with a single empty line feed.
parent cf5908bb
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 20 deletions
......@@ -88,4 +88,4 @@ class MessageIDParser extends Parser
$this->warnings[EmailTooLong::CODE] = new EmailTooLong();
}
}
}
\ No newline at end of file
}
......@@ -101,4 +101,4 @@ class Comment extends PartParser
return true;
}
}
}
\ No newline at end of file
}
......@@ -15,4 +15,4 @@ interface CommentStrategy
public function endOfLoopValidations(EmailLexer $lexer) : Result;
public function getWarnings() : array;
}
\ No newline at end of file
}
......@@ -34,4 +34,4 @@ class DomainComment implements CommentStrategy
{
return [];
}
}
\ No newline at end of file
}
......@@ -34,4 +34,4 @@ class LocalComment implements CommentStrategy
{
return $this->warnings;
}
}
\ No newline at end of file
}
......@@ -208,4 +208,4 @@ class DomainLiteral extends PartParser
}
}
}
\ No newline at end of file
}
......@@ -84,4 +84,4 @@ class DoubleQuote extends PartParser
return new ValidEmail();
}
}
\ No newline at end of file
}
......@@ -83,4 +83,4 @@ class FoldingWhiteSpace extends PartParser
return in_array($this->lexer->token['type'], self::FWS_TYPES);
}
}
\ No newline at end of file
}
......@@ -12,4 +12,4 @@ class IDLeftPart extends LocalPart
{
return new InvalidEmail(new CommentsInIDRight(), $this->lexer->token['value']);
}
}
\ No newline at end of file
}
......@@ -26,4 +26,4 @@ class IDRightPart extends DomainPart
}
return new ValidEmail();
}
}
\ No newline at end of file
}
......@@ -162,4 +162,4 @@ class LocalPart extends PartParser
return new ValidEmail();
}
}
\ No newline at end of file
}
......@@ -60,4 +60,4 @@ abstract class PartParser
&&
$this->lexer->token['type'] !== EmailLexer::GENERIC;
}
}
\ No newline at end of file
}
......@@ -43,4 +43,4 @@ class InvalidEmail implements Result
return $this->reason;
}
}
\ No newline at end of file
}
......@@ -13,4 +13,4 @@ class AtextAfterCFWS implements Reason
{
return 'ATEXT found after CFWS';
}
}
\ No newline at end of file
}
......@@ -13,4 +13,4 @@ class CharNotAllowed implements Reason
{
return "Character not allowed";
}
}
\ No newline at end of file
}
......@@ -13,4 +13,4 @@ class CommaInDomain implements Reason
{
return "Comma ',' is not allowed in domain part";
}
}
\ No newline at end of file
}
......@@ -13,4 +13,4 @@ class CommentsInIDRight implements Reason
{
return 'Comments are not allowed in IDRight for message-id';
}
}
\ No newline at end of file
}
......@@ -10,4 +10,4 @@ abstract class DetailedReason implements Reason
{
$this->detailedDescription = $details;
}
}
\ No newline at end of file
}
......@@ -13,4 +13,4 @@ class DomainAcceptsNoMail implements Reason
{
return 'Domain accepts no mail (Null MX, RFC7505)';
}
}
\ No newline at end of file
}
......@@ -23,4 +23,4 @@ class ExceptionFound implements Reason
{
return $this->exception->getMessage();
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment