mediawiki-extensions-Confir.../includes/specials/SpecialCaptcha.php
Umherirrender 7f76ef9924 Add phan
Change-Id: If382ed4440aa96dcb32a8aba6726cc7e78f0e0a7
2019-05-28 21:05:39 +02:00

26 lines
540 B
PHP

<?php
class SpecialCaptcha extends UnlistedSpecialPage {
public function __construct() {
parent::__construct( 'Captcha' );
}
public function execute( $par ) {
$this->setHeaders();
$instance = ConfirmEditHooks::getInstance();
switch ( $par ) {
case "image":
if ( method_exists( $instance, 'showImage' ) ) {
// @todo: Do this in a more OOP way
/** @phan-suppress-next-line PhanUndeclaredMethod */
return $instance->showImage();
}
case "help":
default:
return $instance->showHelp();
}
}
}