const RTI_CHUNK_SIZE = 500;
/**
- * @var DatabaseBase
+ * @var Database
*/
private $db;
public function __construct() {
parent::__construct();
- $this->mDescription = "Rebuild search index table from scratch";
+ $this->addDescription( 'Rebuild search index table from scratch' );
}
public function getDbType() {
}
$end = $n + self::RTI_CHUNK_SIZE - 1;
- $res = $this->db->select( array( 'page', 'revision', 'text' ), $fields,
- array( "page_id BETWEEN $n AND $end", 'page_latest = rev_id', 'rev_text_id = old_id' ),
+ $res = $this->db->select( [ 'page', 'revision', 'text' ], $fields,
+ [ "page_id BETWEEN $n AND $end", 'page_latest = rev_id', 'rev_text_id = old_id' ],
__METHOD__
);