From ff3d3792ba19f3ece16b2da4daf04eb6d61e8e35 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Wed, 7 Jan 2015 23:55:08 +1100 Subject: [PATCH] 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 --- src/lint/linter/ArcanistXMLLinter.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lint/linter/ArcanistXMLLinter.php b/src/lint/linter/ArcanistXMLLinter.php index 2410c0cc..a1274861 100644 --- a/src/lint/linter/ArcanistXMLLinter.php +++ b/src/lint/linter/ArcanistXMLLinter.php @@ -40,13 +40,13 @@ final class ArcanistXMLLinter extends ArcanistLinter { } foreach (libxml_get_errors() as $error) { - $message = new ArcanistLintMessage(); - $message->setPath($path); - $message->setLine($error->line); - $message->setChar($error->column ? $error->column : null); - $message->setCode($this->getLintMessageFullCode($error->code)); - $message->setName('LibXML Error'); - $message->setDescription(trim($error->message)); + $message = id(new ArcanistLintMessage()) + ->setPath($path) + ->setLine($error->line) + ->setChar($error->column ? $error->column : null) + ->setCode($this->getLintMessageFullCode($error->code)) + ->setName('LibXML Error') + ->setDescription(trim($error->message)); switch ($error->level) { case LIBXML_ERR_NONE: