X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FCreditsAction.php;h=1332ab489f92fb6b4c9f6455ed0eb202ee96f677;hb=e3bd13db0c285f312e31bb1b7271af4628cca80c;hp=e064aab4e6e260da3a15ff5050494df887c3bb3d;hpb=3c64eb81bdf669a63628ca2fcf37be1241220e9a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/CreditsAction.php b/includes/actions/CreditsAction.php index e064aab4e6..1332ab489f 100644 --- a/includes/actions/CreditsAction.php +++ b/includes/actions/CreditsAction.php @@ -42,7 +42,6 @@ class CreditsAction extends FormlessAction { * @return string HTML */ public function onView() { - wfProfileIn( __METHOD__ ); if ( $this->page->getID() == 0 ) { $s = $this->msg( 'nocredits' )->parse(); @@ -50,9 +49,7 @@ class CreditsAction extends FormlessAction { $s = $this->getCredits( -1 ); } - wfProfileOut( __METHOD__ ); - - return Html::rawElement( 'div', array( 'id' => 'mw-credits' ), $s ); + return Html::rawElement( 'div', [ 'id' => 'mw-credits' ], $s ); } /** @@ -63,7 +60,6 @@ class CreditsAction extends FormlessAction { * @return string Html */ public function getCredits( $cnt, $showIfMax = true ) { - wfProfileIn( __METHOD__ ); $s = ''; if ( $cnt != 0 ) { @@ -73,8 +69,6 @@ class CreditsAction extends FormlessAction { } } - wfProfileOut( __METHOD__ ); - return $s; } @@ -131,9 +125,9 @@ class CreditsAction extends FormlessAction { } } - $real_names = array(); - $user_names = array(); - $anon_ips = array(); + $real_names = []; + $user_names = []; + $anon_ips = []; # Sift for real versus user names /** @var $user User */ @@ -179,8 +173,8 @@ class CreditsAction extends FormlessAction { } # This is the big list, all mooshed together. We sift for blank strings - $fulllist = array(); - foreach ( array( $real, $user, $anon, $others_link ) as $s ) { + $fulllist = []; + foreach ( [ $real, $user, $anon, $others_link ] as $s ) { if ( $s !== false ) { array_push( $fulllist, $s ); } @@ -240,8 +234,8 @@ class CreditsAction extends FormlessAction { return Linker::linkKnown( $this->getTitle(), $this->msg( 'others' )->escaped(), - array(), - array( 'action' => 'credits' ) + [], + [ 'action' => 'credits' ] ); } }