Pass phpcs-strict on maintenance/ (2/8)
[lhc/web/wiklou.git] / maintenance / importDump.php
index beadb90..61189b7 100644 (file)
@@ -3,7 +3,7 @@
  * Import XML dump files into the current wiki.
  *
  * Copyright © 2005 Brion Vibber <brion@pobox.com>
- * http://www.mediawiki.org/
+ * https://www.mediawiki.org/
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@
  * @ingroup Maintenance
  */
 
-require_once( __DIR__ . '/Maintenance.php' );
+require_once __DIR__ . '/Maintenance.php';
 
 /**
  * Maintenance script that imports XML dump files into the current wiki.
@@ -56,7 +56,7 @@ Compressed XML files may be read directly:
 
 Note that for very large data sets, importDump.php may be slow; there are
 alternate methods which can be much faster for full site restoration:
-<http://www.mediawiki.org/wiki/Manual:Importing_XML_dumps>
+<https://www.mediawiki.org/wiki/Manual:Importing_XML_dumps>
 TEXT;
                $this->stderr = fopen( "php://stderr", "wt" );
                $this->addOption( 'report',
@@ -122,7 +122,7 @@ TEXT;
        }
 
        /**
-        * @param $obj Title|Revision
+        * @param Title|Revision $obj
         * @return bool
         */
        private function skippedNamespace( $obj ) {
@@ -144,8 +144,7 @@ TEXT;
        }
 
        /**
-        * @param $rev Revision
-        * @return mixed
+        * @param Revision $rev
         */
        function handleRevision( $rev ) {
                $title = $rev->getTitle();
@@ -167,7 +166,7 @@ TEXT;
        }
 
        /**
-        * @param $revision Revision
+        * @param Revision $revision
         * @return bool
         */
        function handleUpload( $revision ) {
@@ -288,4 +287,4 @@ TEXT;
 }
 
 $maintClass = 'BackupReader';
-require_once( RUN_MAINTENANCE_IF_MAIN );
+require_once RUN_MAINTENANCE_IF_MAIN;