Merge "Fixed some @params documentation (maintenance)"
[lhc/web/wiklou.git] / maintenance / storage / recompressTracked.php
index 5e5cc8f..27d9cb0 100644 (file)
@@ -23,7 +23,7 @@
  */
 
 $optionsWithArgs = RecompressTracked::getOptionsWithArgs();
-require( __DIR__ . '/../commandLine.inc' );
+require __DIR__ . '/../commandLine.inc';
 
 if ( count( $args ) < 1 ) {
        echo "Usage: php recompressTracked.php [options] <cluster> [... <cluster>...]
@@ -279,7 +279,7 @@ class RecompressTracked {
         */
        function dispatchToSlave( $slaveId, $args ) {
                $args = (array)$args;
-               $cmd = implode( ' ',  $args );
+               $cmd = implode( ' ', $args );
                fwrite( $this->slavePipes[$slaveId], "$cmd\n" );
        }
 
@@ -449,6 +449,8 @@ class RecompressTracked {
 
        /**
         * Move tracked text in a given page
+        *
+        * @param int $pageId
         */
        function doPage( $pageId ) {
                $title = Title::newFromId( $pageId );
@@ -523,10 +525,13 @@ class RecompressTracked {
         *
         * Write the new URL to the text table and set the bt_moved flag.
         *
-        * This is done in a single transaction to provide restartable behaviour
+        * This is done in a single transaction to provide restartable behavior
         * without data loss.
         *
         * The transaction is kept short to reduce locking.
+        *
+        * @param int $textId
+        * @param string $url
         */
        function moveTextRow( $textId, $url ) {
                if ( $this->copyOnly ) {
@@ -560,6 +565,8 @@ class RecompressTracked {
         *
         * This function completes any moves that only have done bt_new_url. This
         * can happen when the script is interrupted, or when --copy-only is used.
+        *
+        * @param array $conds
         */
        function finishIncompleteMoves( $conds ) {
                $dbr = wfGetDB( DB_SLAVE );
@@ -607,7 +614,7 @@ class RecompressTracked {
 
        /**
         * Gets a DB master connection for the given external cluster name
-        * @param $cluster string
+        * @param string $cluster
         * @return DatabaseBase
         */
        function getExtDB( $cluster ) {
@@ -617,6 +624,8 @@ class RecompressTracked {
 
        /**
         * Move an orphan text_id to the new cluster
+        *
+        * @param array $textIds
         */
        function doOrphanList( $textIds ) {
                // Finish incomplete moves
@@ -694,8 +703,8 @@ class CgzCopyTransaction {
        /**
         * Add text.
         * Returns false if it's ready to commit.
-        * @param $text string
-        * @param $textId
+        * @param string $text
+        * @param int $textId
         * @return bool
         */
        function addItem( $text, $textId ) {