* @return array
*/
public function getQueryInfo() {
- return array(
- 'tables' => array( 'image' ),
- 'fields' => array(
+ return [
+ 'tables' => [ 'image' ],
+ 'fields' => [
'namespace' => NS_FILE,
'title' => 'MIN(img_name)',
'value' => 'count(*)'
- ),
- 'options' => array(
+ ],
+ 'options' => [
'GROUP BY' => 'img_sha1',
'HAVING' => 'count(*) > 1',
- ),
- );
+ ],
+ ];
}
/**
}
}
-
/**
* @param Skin $skin
* @param object $result Result row
// Future version might include a list of the first 5 duplicates
// perhaps separated by an "↔".
$image1 = Title::makeTitle( $result->namespace, $result->title );
- $dupeSearch = SpecialPage::getTitleFor( 'FileDuplicateSearch', $image1->getDBKey() );
+ $dupeSearch = SpecialPage::getTitleFor( 'FileDuplicateSearch', $image1->getDBkey() );
$msg = $this->msg( 'listduplicatedfiles-entry' )
->params( $image1->getText() )
->numParams( $result->value - 1 )
- ->params( $dupeSearch->getPrefixedDBKey() );
+ ->params( $dupeSearch->getPrefixedDBkey() );
return $msg->parse();
}