build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0 and make pass
[lhc/web/wiklou.git] / includes / specials / pagers / UsersPager.php
index fbf179d..d08eb89 100644 (file)
@@ -43,13 +43,13 @@ class UsersPager extends AlphabeticPager {
         * @param bool|null $including Whether this page is being transcluded in
         * another page
         */
-       function __construct( IContextSource $context = null, $par = null, $including = null ) {
+       public function __construct( IContextSource $context = null, $par = null, $including = null ) {
                if ( $context ) {
                        $this->setContext( $context );
                }
 
                $request = $this->getRequest();
-               $par = ( $par !== null ) ? $par : '';
+               $par = $par ?? '';
                $parms = explode( '/', $par );
                $symsForAll = [ '*', 'user' ];
 
@@ -178,7 +178,9 @@ class UsersPager extends AlphabeticPager {
                $ulinks .= Linker::userToolLinksRedContribs(
                        $row->user_id,
                        $userName,
-                       (int)$row->edits
+                       (int)$row->edits,
+                       // don't render parentheses in HTML markup (CSS will provide)
+                       false
                );
 
                $lang = $this->getLanguage();
@@ -225,7 +227,7 @@ class UsersPager extends AlphabeticPager {
                return Html::rawElement( 'li', [], "{$item}{$edits}{$created}{$blocked}" );
        }
 
-       function doBatchLookups() {
+       protected function doBatchLookups() {
                $batch = new LinkBatch();
                $userIds = [];
                # Give some pointers to make user links