Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13967843
D11263.id27068.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
989 B
Referenced Files
None
Subscribers
None
D11263.id27068.diff
View Options
diff --git a/src/lint/linter/ArcanistXMLLinter.php b/src/lint/linter/ArcanistXMLLinter.php
--- a/src/lint/linter/ArcanistXMLLinter.php
+++ b/src/lint/linter/ArcanistXMLLinter.php
@@ -40,13 +40,13 @@
}
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:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 17, 4:25 PM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6722700
Default Alt Text
D11263.id27068.diff (989 B)
Attached To
Mode
D11263: Minor tidying of the `ArcanistXMLLinter` class
Attached
Detach File
Event Timeline
Log In to Comment