class OrphanStats extends Maintenance {
public function __construct() {
parent::__construct();
- $this->mDescription =
- "Show some statistics on the blob_orphans table, created with trackBlobs.php";
+ $this->addDescription(
+ "Show some statistics on the blob_orphans table, created with trackBlobs.php" );
}
- protected function &getDB( $cluster, $groups = array(), $wiki = false ) {
+ protected function &getDB( $cluster, $groups = [], $wiki = false ) {
$lb = wfGetLBFactory()->getExternalLB( $cluster );
return $lb->getConnection( DB_SLAVE );
$num = 0;
$totalSize = 0;
- $hashes = array();
+ $hashes = [];
$maxSize = 0;
foreach ( $res as $boRow ) {
$blobRow = $extDB->selectRow(
'blobs',
'*',
- array( 'blob_id' => $boRow->bo_blob_id ),
+ [ 'blob_id' => $boRow->bo_blob_id ],
__METHOD__
);