X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialStatistics.php;h=a60549bf739a85effda8053e9bdefddbd09522b4;hb=4427b84407e03275bdb62ca58a0fde14f3dc7be6;hp=3342c32bbfef5dec7136ec483160f4c93224c1e1;hpb=e968a1f431ad058dcb14adb2757bde5664b99a79;p=lhc%2Fweb%2Fwiklou.git
diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php
index 3342c32bbf..a60549bf73 100644
--- a/includes/specials/SpecialStatistics.php
+++ b/includes/specials/SpecialStatistics.php
@@ -95,8 +95,11 @@ class SpecialStatistics extends SpecialPage {
if ( !$msg->isDisabled() ) {
$descriptionHtml = $this->msg( 'parentheses' )->rawParams( $msg->parse() )
->escaped();
- $text .= "
" . Html::rawElement( 'small', [ 'class' => 'mw-statistic-desc' ],
- " $descriptionHtml" );
+ $text .= "
" . Html::rawElement(
+ 'small',
+ [ 'class' => 'mw-statistic-desc' ],
+ " $descriptionHtml"
+ );
}
}
@@ -119,8 +122,10 @@ class SpecialStatistics extends SpecialPage {
Xml::tags( 'th', [ 'colspan' => '2' ], $this->msg( 'statistics-header-pages' )
->parse() ) .
Xml::closeElement( 'tr' ) .
- $this->formatRow( $linkRenderer->makeKnownLink( $specialAllPagesTitle,
- $this->msg( 'statistics-articles' )->text(), [], [ 'hideredirects' => 1 ] ),
+ $this->formatRow( $linkRenderer->makeKnownLink(
+ $specialAllPagesTitle,
+ $this->msg( 'statistics-articles' )->text(),
+ [], [ 'hideredirects' => 1 ] ),
$this->getLanguage()->formatNum( $this->good ),
[ 'class' => 'mw-statistics-articles' ],
'statistics-articles-desc' ) .
@@ -152,9 +157,9 @@ class SpecialStatistics extends SpecialPage {
[ 'class' => 'mw-statistics-edits' ]
) .
$this->formatRow( $this->msg( 'statistics-edits-average' )->parse(),
- $this->getLanguage()
- ->formatNum( sprintf( '%.2f', $this->total ? $this->edits / $this->total : 0 ) ),
- [ 'class' => 'mw-statistics-edits-average' ]
+ $this->getLanguage()->formatNum(
+ sprintf( '%.2f', $this->total ? $this->edits / $this->total : 0 )
+ ), [ 'class' => 'mw-statistics-edits-average' ]
);
}
@@ -175,7 +180,8 @@ class SpecialStatistics extends SpecialPage {
$this->getLanguage()->formatNum( $this->activeUsers ),
[ 'class' => 'mw-statistics-users-active' ],
'statistics-users-active-desc',
- $this->getLanguage()->formatNum( $this->getConfig()->get( 'ActiveUserDays' ) )
+ $this->getLanguage()->formatNum(
+ $this->getConfig()->get( 'ActiveUserDays' ) )
);
}
@@ -184,7 +190,8 @@ class SpecialStatistics extends SpecialPage {
$text = '';
foreach ( $this->getConfig()->get( 'GroupPermissions' ) as $group => $permissions ) {
# Skip generic * and implicit groups
- if ( in_array( $group, $this->getConfig()->get( 'ImplicitGroups' ) ) || $group == '*' ) {
+ if ( in_array( $group, $this->getConfig()->get( 'ImplicitGroups' ) )
+ || $group == '*' ) {
continue;
}
$groupname = htmlspecialchars( $group );
@@ -196,7 +203,8 @@ class SpecialStatistics extends SpecialPage {
}
$msg = $this->msg( 'grouppage-' . $groupname )->inContentLanguage();
if ( $msg->isBlank() ) {
- $grouppageLocalized = MWNamespace::getCanonicalName( NS_PROJECT ) . ':' . $groupname;
+ $grouppageLocalized = MWNamespace::getCanonicalName( NS_PROJECT ) .
+ ':' . $groupname;
} else {
$grouppageLocalized = $msg->text();
}
@@ -245,7 +253,6 @@ class SpecialStatistics extends SpecialPage {
foreach ( $stats as $header => $items ) {
// Identify the structure used
if ( is_array( $items ) ) {
-
// Ignore headers that are recursively set as legacy header
if ( $header !== 'statistics-header-hooks' ) {
$return .= $this->formatRowHeader( $header );