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
Set visiblity of some HashRing methods
[lhc/web/wiklou.git]
/
maintenance
/
cleanupWatchlist.php
diff --git
a/maintenance/cleanupWatchlist.php
b/maintenance/cleanupWatchlist.php
index
d8c682b
..
64d39dd
100644
(file)
--- a/
maintenance/cleanupWatchlist.php
+++ b/
maintenance/cleanupWatchlist.php
@@
-37,12
+37,12
@@
require_once __DIR__ . '/cleanupTable.inc';
* @ingroup Maintenance
*/
class WatchlistCleanup extends TableCleanup {
* @ingroup Maintenance
*/
class WatchlistCleanup extends TableCleanup {
- protected $defaultParams =
array(
+ protected $defaultParams =
[
'table' => 'watchlist',
'table' => 'watchlist',
- 'index' =>
array( 'wl_user', 'wl_namespace', 'wl_title' )
,
- 'conds' =>
array()
,
+ 'index' =>
[ 'wl_user', 'wl_namespace', 'wl_title' ]
,
+ 'conds' =>
[]
,
'callback' => 'processRow'
'callback' => 'processRow'
-
)
;
+
]
;
public function __construct() {
parent::__construct();
public function __construct() {
parent::__construct();
@@
-79,10
+79,10
@@
class WatchlistCleanup extends TableCleanup {
if ( !$this->dryrun && $this->hasOption( 'fix' ) ) {
$dbw = $this->getDB( DB_MASTER );
$dbw->delete(
if ( !$this->dryrun && $this->hasOption( 'fix' ) ) {
$dbw = $this->getDB( DB_MASTER );
$dbw->delete(
- 'watchlist',
array(
+ 'watchlist',
[
'wl_user' => $row->wl_user,
'wl_namespace' => $row->wl_namespace,
'wl_user' => $row->wl_user,
'wl_namespace' => $row->wl_namespace,
- 'wl_title' => $row->wl_title
)
,
+ 'wl_title' => $row->wl_title
]
,
__METHOD__
);
__METHOD__
);
@@
-95,5
+95,5
@@
class WatchlistCleanup extends TableCleanup {
}
}
}
}
-$maintClass =
"WatchlistCleanup"
;
+$maintClass =
WatchlistCleanup::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;