mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-23 22:54:57 +00:00
Declare BaseBlacklist::filter interface to avoid IDE warnings
Change-Id: I84ee4bcb370d2027f5879a921455fffc9a808e9a
This commit is contained in:
parent
c5e5c1743b
commit
5908dd9a3d
|
@ -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