Minor polish

This commit is contained in:
Eduardo Gulias Davis
2020-09-12 16:02:00 +02:00
parent 781b1c8509
commit 5faf182cca
+2 -7
View File
@@ -115,11 +115,8 @@ class DomainPart extends Parser
{
$commentParser = new Comment($this->lexer, new DomainComment());
$result = $commentParser->parse('remove');
if($result->isInvalid()) {
return $result;
}
$this->warnings = array_merge($this->warnings, $commentParser->getWarnings());
return $result;
}
@@ -186,7 +183,7 @@ class DomainPart extends Parser
}
/**
* @return string|false
* @return Result
*/
protected function parseDomainLiteral() : Result
{
@@ -201,8 +198,6 @@ class DomainPart extends Parser
$result = $domainLiteralParser->parse('remove');
$this->warnings = array_merge($this->warnings, $domainLiteralParser->getWarnings());
return $result;
//return $this->doParseDomainLiteral();
}
protected function checkDomainPartExceptions(array $prev)