dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
phpcs: More require/include is not a function
[lhc/web/wiklou.git]
/
maintenance
/
storage
/
orphanStats.php
diff --git
a/maintenance/storage/orphanStats.php
b/maintenance/storage/orphanStats.php
index
8f0384d
..
1df1501
100644
(file)
--- a/
maintenance/storage/orphanStats.php
+++ b/
maintenance/storage/orphanStats.php
@@
-1,7
+1,6
@@
<?php
<?php
-
/**
/**
- * Show some statistics on the blob_orphans table, created with trackBlobs.php
+ * Show some statistics on the blob_orphans table, created with trackBlobs.php
.
*
* 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
*
* 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
@@
-18,17
+17,25
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
+ * @file
* @ingroup Maintenance ExternalStorage
*/
* @ingroup Maintenance ExternalStorage
*/
-require_once( dirname( __FILE__ ) . '/../Maintenance.php' );
+require_once __DIR__ . '/../Maintenance.php';
+
+/**
+ * Maintenance script that shows some statistics on the blob_orphans table,
+ * created with trackBlobs.php.
+ *
+ * @ingroup Maintenance ExternalStorage
+ */
class OrphanStats extends Maintenance {
public function __construct() {
parent::__construct();
$this->mDescription = "how some statistics on the blob_orphans table, created with trackBlobs.php";
}
class OrphanStats extends Maintenance {
public function __construct() {
parent::__construct();
$this->mDescription = "how some statistics on the blob_orphans table, created with trackBlobs.php";
}
- protected function
getDB( $cluster
) {
+ protected function
&getDB( $cluster, $groups = array(), $wiki = false
) {
$lb = wfGetLBFactory()->getExternalLB( $cluster );
return $lb->getConnection( DB_SLAVE );
}
$lb = wfGetLBFactory()->getExternalLB( $cluster );
return $lb->getConnection( DB_SLAVE );
}
@@
-67,4
+74,4
@@
class OrphanStats extends Maintenance {
}
$maintClass = "OrphanStats";
}
$maintClass = "OrphanStats";
-require_once
( RUN_MAINTENANCE_IF_MAIN )
;
+require_once
RUN_MAINTENANCE_IF_MAIN
;