Merge "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git] / includes / specials / SpecialListDuplicatedFiles.php
index 317b62f..49fa417 100644 (file)
@@ -54,18 +54,18 @@ class ListDuplicatedFilesPage extends QueryPage {
         * @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',
-                       ),
-               );
+                       ],
+               ];
        }
 
        /**
@@ -87,7 +87,6 @@ class ListDuplicatedFilesPage extends QueryPage {
                }
        }
 
-
        /**
         * @param Skin $skin
         * @param object $result Result row
@@ -97,12 +96,12 @@ class ListDuplicatedFilesPage extends QueryPage {
                // 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();
        }