$numRevisions = 0;
// Live revisions...
$list = $this->getList();
- // @codingStandardsIgnoreStart Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed
+ // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall
for ( $list->reset(); $list->current(); $list->next() ) {
- // @codingStandardsIgnoreEnd
$item = $list->current();
if ( !$item->canView() ) {
protected function failure( $status ) {
// Messages: revdelete-failure, logdelete-failure
$this->getOutput()->setPageTitle( $this->msg( 'actionfailed' ) );
- $this->getOutput()->addWikiText( '<div class="errorbox">' .
- $status->getWikiText( $this->typeLabels['failure'] ) .
- '</div>'
+ $this->getOutput()->addWikiText(
+ Html::errorBox(
+ $status->getWikiText( $this->typeLabels['failure'] )
+ )
);
$this->showForm();
}