$this->error( "\$wgCapitalLinks is on -- no need for caps links cleanup.", true );
}
- $this->user = User::newSystemUser( 'Conversion script', array( 'steal' => true ) );
+ $this->user = User::newSystemUser( 'Conversion script', [ 'steal' => true ] );
$this->namespace = intval( $this->getOption( 'namespace', 0 ) );
$this->dryrun = $this->hasOption( 'dry-run' );
- $this->runTable( array(
+ $this->runTable( [
'table' => 'page',
- 'conds' => array( 'page_namespace' => $this->namespace ),
+ 'conds' => [ 'page_namespace' => $this->namespace ],
'index' => 'page_id',
- 'callback' => 'processRow' ) );
+ 'callback' => 'processRow' ] );
}
protected function processRow( $row ) {