Pass phpcs-strict on maintenance/ (2/8)
[lhc/web/wiklou.git] / maintenance / deleteOrphanedRevisions.php
index 1eb7262..9922a1d 100644 (file)
@@ -24,7 +24,7 @@
  * @todo More efficient cleanup of text records
  */
 
-require_once( __DIR__ . '/Maintenance.php' );
+require_once __DIR__ . '/Maintenance.php';
 
 /**
  * Maintenance script that deletes revisions which refer to a nonexisting page.
@@ -80,8 +80,8 @@ class DeleteOrphanedRevisions extends Maintenance {
         * Delete one or more revisions from the database
         * Do this inside a transaction
         *
-        * @param $id Array of revision id values
-        * @param $dbw DatabaseBase class (needs to be a master)
+        * @param array $id Array of revision id values
+        * @param DatabaseBase $dbw DatabaseBase class (needs to be a master)
         */
        private function deleteRevs( $id, &$dbw ) {
                if ( !is_array( $id ) ) {
@@ -92,4 +92,4 @@ class DeleteOrphanedRevisions extends Maintenance {
 }
 
 $maintClass = "DeleteOrphanedRevisions";
-require_once( RUN_MAINTENANCE_IF_MAIN );
+require_once RUN_MAINTENANCE_IF_MAIN;