$first--;
}
# Get net change
- $charDifference = $this->formatCharacterDifference( $block[$first], $block[$last] );
+ $charDifference = $this->formatCharacterDifference( $block[$first], $block[$last] ) ?: false;
}
$numberofWatchingusers = $this->numberofWatchingusers( $block[0]->numberofWatchingusers );
) {
$classes[] = 'mw-enhanced-watched';
}
- $classes = array_merge( $classes, $this->getHTMLClassesForFilters( $rcObj ) );
+ $classes = array_merge( $classes, $this->getHTMLClasses( $rcObj, $rcObj->watched ) );
$separator = ' <span class="mw-changeslist-separator">. .</span> ';
$sinceLast = 0;
$unvisitedOldid = null;
- /** @var $rcObj RCCacheEntry */
+ /** @var RCCacheEntry $rcObj */
foreach ( $block as $rcObj ) {
// Same logic as below inside main foreach
if ( $rcObj->watched && $rcObj->mAttribs['rc_timestamp'] >= $rcObj->watched ) {
# Total change link
$links = [];
- /** @var $block0 RecentChange */
+ /** @var RecentChange $block0 */
$block0 = $block[0];
$last = $block[count( $block ) - 1];
if ( !$allLogs ) {