* @return array
*/
public static function buildItems( $rows ) {
- $items = array();
+ $items = [];
# Merge adjacent edits by one user
- $sorted = array();
+ $sorted = [];
$n = 0;
foreach ( $rows as $obj ) {
if ( $obj->rc_type == RC_EXTERNAL ) {
}
if ( $obj->rc_this_oldid ) {
- $url = $title->getFullURL( array(
+ $url = $title->getFullURL( [
'diff' => $obj->rc_this_oldid,
'oldid' => $obj->rc_last_oldid,
- ) );
+ ] );
} else {
// log entry or something like that.
$url = $title->getFullURL();