* @param DatabaseBase $db
* @param string $extraTable The name of any extra tables to lock (eg: text)
*/
* @param DatabaseBase $db
* @param string $extraTable The name of any extra tables to lock (eg: text)
*/
- private function lockTables( $db, $extraTable = array() ) {
- $tbls = array( 'page', 'revision', 'redirect' );
+ private function lockTables( $db, $extraTable = [] ) {
+ $tbls = [ 'page', 'revision', 'redirect' ];
- $db->lockTables( array(), $tbls, __METHOD__, false );
+ $db->lockTables( [], $tbls, __METHOD__, false );
$this->output( "... updating to revision $maxId\n" );
$maxRev = Revision::newFromId( $maxId );
$title = Title::makeTitle( $row->page_namespace, $row->page_title );
$this->output( "... updating to revision $maxId\n" );
$maxRev = Revision::newFromId( $maxId );
$title = Title::makeTitle( $row->page_namespace, $row->page_title );