mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-23 22:54:57 +00:00
Merge "Declare BaseBlacklist::filter interface to avoid IDE warnings"
This commit is contained in:
commit
3ba94f683b
|
@ -63,6 +63,14 @@ abstract class BaseBlacklist {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $links
|
||||
* @param Title $title
|
||||
* @param bool $preventLog
|
||||
* @return mixed
|
||||
*/
|
||||
abstract public function filter( array $links, Title $title, $preventLog = false );
|
||||
|
||||
/**
|
||||
* Adds a blacklist class to the registry
|
||||
*
|
||||
|
|
9
EmailBlacklist.php
Normal file → Executable file
9
EmailBlacklist.php
Normal file → Executable file
|
@ -4,6 +4,15 @@
|
|||
* Email Blacklisting
|
||||
*/
|
||||
class EmailBlacklist extends BaseBlacklist {
|
||||
/**
|
||||
* @param array $links
|
||||
* @param Title $title
|
||||
* @param bool $preventLog
|
||||
* @return mixed
|
||||
*/
|
||||
public function filter( array $links, Title $title, $preventLog = false ) {
|
||||
throw new LogicException( __CLASS__ . ' cannot be used to filter links.' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the code for the blacklist implementation
|
||||
|
|
Loading…
Reference in a new issue