mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-12 01:16:19 +00:00
8de8d80cde
Use `DOMCompat::getBody( ... )` as a nicer getter than `->getElementsByTagName( 'body' )->item( 0 )`. Remove overly defensive checks and redundant annotations on its return value. Since we're dealing with HTML documents throughout, the document body is guaranteed to exist. We previously needed some of them to convince Phan when it thought the body may be null, but this seems to no longer be needed. Change-Id: If7aee7b6adbfa78269c7ba28b26a6eaa21fe935b |
||
---|---|---|
.. | ||
Actions | ||
Hooks | ||
Notifications | ||
ApiDiscussionTools.php | ||
ApiDiscussionToolsEdit.php | ||
ApiDiscussionToolsSubscribe.php | ||
CommentFormatter.php | ||
CommentItem.php | ||
CommentModifier.php | ||
CommentParser.php | ||
CommentUtils.php | ||
Data.php | ||
HeadingItem.php | ||
ImmutableRange.php | ||
NodeFilter.php | ||
ServiceWiring.php | ||
SubscriptionItem.php | ||
SubscriptionStore.php | ||
ThreadItem.php | ||
TreeWalker.php |