mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 08:52:39 +01:00
Minor tidying of the ArcanistXMLLinter
class
Summary: Self-explanatory Test Plan: `arc unit` Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11263
This commit is contained in:
parent
a28bf87633
commit
ff3d3792ba
1 changed files with 7 additions and 7 deletions
|
@ -40,13 +40,13 @@ final class ArcanistXMLLinter extends ArcanistLinter {
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (libxml_get_errors() as $error) {
|
foreach (libxml_get_errors() as $error) {
|
||||||
$message = new ArcanistLintMessage();
|
$message = id(new ArcanistLintMessage())
|
||||||
$message->setPath($path);
|
->setPath($path)
|
||||||
$message->setLine($error->line);
|
->setLine($error->line)
|
||||||
$message->setChar($error->column ? $error->column : null);
|
->setChar($error->column ? $error->column : null)
|
||||||
$message->setCode($this->getLintMessageFullCode($error->code));
|
->setCode($this->getLintMessageFullCode($error->code))
|
||||||
$message->setName('LibXML Error');
|
->setName('LibXML Error')
|
||||||
$message->setDescription(trim($error->message));
|
->setDescription(trim($error->message));
|
||||||
|
|
||||||
switch ($error->level) {
|
switch ($error->level) {
|
||||||
case LIBXML_ERR_NONE:
|
case LIBXML_ERR_NONE:
|
||||||
|
|
Loading…
Reference in a new issue