Standardize version comment in OracleUpdater.php
[lhc/web/wiklou.git] / maintenance / storage / orphanStats.php
index 9dc5280..c5213ad 100644 (file)
@@ -38,6 +38,7 @@ class OrphanStats extends Maintenance {
 
        protected function &getDB( $cluster, $groups = array(), $wiki = false ) {
                $lb = wfGetLBFactory()->getExternalLB( $cluster );
+
                return $lb->getConnection( DB_SLAVE );
        }
 
@@ -65,7 +66,7 @@ class OrphanStats extends Maintenance {
                        $num++;
                        $size = strlen( $blobRow->blob_text );
                        $totalSize += $size;
-                       $hashes[ sha1( $blobRow->blob_text ) ] = true;
+                       $hashes[sha1( $blobRow->blob_text )] = true;
                        $maxSize = max( $size, $maxSize );
                }
                unset( $res );
@@ -73,8 +74,8 @@ class OrphanStats extends Maintenance {
                $this->output( "Number of orphans: $num\n" );
                if ( $num > 0 ) {
                        $this->output( "Average size: " . round( $totalSize / $num, 0 ) . " bytes\n" .
-                       "Max size: $maxSize\n" .
-                       "Number of unique texts: " . count( $hashes ) . "\n" );
+                               "Max size: $maxSize\n" .
+                               "Number of unique texts: " . count( $hashes ) . "\n" );
                }
        }
 }