mediawiki-extensions-Discus.../includes
Bartosz Dziewoński 8de8d80cde Deal with document body consistently
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
2021-08-03 15:12:55 +02:00
..
Actions
Hooks
Notifications Deal with document body consistently 2021-08-03 15:12:55 +02:00
ApiDiscussionTools.php Deal with document body consistently 2021-08-03 15:12:55 +02:00
ApiDiscussionToolsEdit.php Deal with document body consistently 2021-08-03 15:12:55 +02:00
ApiDiscussionToolsSubscribe.php
CommentFormatter.php Deal with document body consistently 2021-08-03 15:12:55 +02:00
CommentItem.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00
CommentModifier.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00
CommentParser.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00
CommentUtils.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00
Data.php
HeadingItem.php
ImmutableRange.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00
NodeFilter.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00
ServiceWiring.php
SubscriptionItem.php
SubscriptionStore.php
ThreadItem.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00
TreeWalker.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00