mediawiki-extensions-AbuseF.../includes/Hooks/Handlers
Amir Sarabadani 60cbc3b464 BlockedDomains: Use cleaner array building and add tests
Regarding array building: Instead of adding to array with
$array[] = 'foo' and then doing array_flip(), simply do
$array['foo'] = true;

Regarding tests: I originally wanted to create a unit test but I ended
up mocking so many things that it wasn't worth it and the config variable
is globaly which first we need to clean up after deployment is done.

Bug: T337431
Change-Id: Iac8dca7078668ee3441d19b6aafe499c1aa0d732
2023-06-12 17:46:55 +00:00
..
AutoPromoteGroupsHandler.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
ChangeTagsHandler.php Move ChangeTags stuff to separate namespace 2020-11-27 15:13:34 +00:00
CheckUserHandler.php Update user type checks to handle temporary users 2023-05-25 17:26:58 -02:30
EchoHandler.php Move all "secondary" hooks away from AbuseFilterHooks 2021-02-01 17:29:26 +01:00
EditPermissionHandler.php Allow interface-admins to edit blocked domains json directly 2023-06-06 23:36:12 +02:00
FilteredActionsHandler.php BlockedDomains: Use cleaner array building and add tests 2023-06-12 17:46:55 +00:00
PageSaveHandler.php Move all "secondary" hooks away from AbuseFilterHooks 2021-02-01 17:29:26 +01:00
RecentChangeSaveHandler.php Move all "secondary" hooks away from AbuseFilterHooks 2021-02-01 17:29:26 +01:00
RegistrationCallback.php Use actor table in AbuseFilter 2023-03-22 14:01:29 +01:00
SchemaChangesHandler.php Replace deprecated MWException 2023-06-07 17:41:20 +02:00
TestsHandler.php Replace deprecated database object access methods 2023-03-08 16:50:56 +01:00
ToolLinksHandler.php Call IContextSource::getAuthority instead of IContextSource::getUser 2022-07-03 16:37:18 +02:00
UserMergeHandler.php Use actor table in AbuseFilter 2023-03-22 14:01:29 +01:00
UserRenameHandler.php Use actor table in AbuseFilter 2023-03-22 14:01:29 +01:00