Remove unneeded return from hook handlers

Change-Id: Ib38375909ee09e3d5342b6fd16194feeffbb8124
This commit is contained in:
Umherirrender 2021-11-02 13:26:43 +01:00
parent 4829d17708
commit 1abc7abc43

View file

@ -14,21 +14,16 @@ class InputBoxHooks {
/**
* Initialization
* @param Parser $parser
* @return true
*/
public static function register( Parser $parser ) {
// Register the hook with the parser
$parser->setHook( 'inputbox', [ 'InputBoxHooks', 'render' ] );
// Continue
return true;
}
/**
* Prepend prefix to wpNewTitle if necessary
* @param SpecialPage $special
* @param string $subPage
* @return true
*/
public static function onSpecialPageBeforeExecute( $special, $subPage ) {
$request = $special->getRequest();
@ -43,7 +38,6 @@ class InputBoxHooks {
if ( $special->getName() === 'Search' && $searchfilter !== '' ) {
$request->setVal( 'search', $search . ' ' . $searchfilter );
}
return true;
}
/**