mediawiki-extensions-Confir.../includes/specials/SpecialCaptcha.php
Max Semenik 5b7a36a521 Clean up some phpcs problems
Change-Id: Ie956fe86184535a376d0398483ac3c853fa9127c
2018-07-12 23:13:58 +00:00

25 lines
482 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
return $instance->showImage();
}
case "help":
default:
return $instance->showHelp();
}
}
}