mediawiki-extensions-AbuseF.../includes/Hooks
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
..
Handlers BlockedDomains: Use cleaner array building and add tests 2023-06-12 17:46:55 +00:00
AbuseFilterAlterVariablesHook.php Cleanup variables-related classes 2021-01-02 18:19:38 +01:00
AbuseFilterBuilderHook.php Move documentation from hooks.txt to hook interfaces 2021-03-31 21:50:30 +02:00
AbuseFilterComputeVariableHook.php Fix method names of hook interfaces 2021-03-09 17:03:14 +00:00
AbuseFilterContentToStringHook.php Move documentation from hooks.txt to hook interfaces 2021-03-31 21:50:30 +02:00
AbuseFilterCustomActionsHook.php Create a dedicated namespace for all consequences-related classes 2020-12-18 19:27:33 +00:00
AbuseFilterDeprecatedVariablesHook.php Fix method names of hook interfaces 2021-03-09 17:03:14 +00:00
AbuseFilterFilterActionHook.php Remove deprecated static methods 2022-07-27 13:01:10 +02:00
AbuseFilterGenerateGenericVarsHook.php Clean up line indent with mixed tabs and whitespaces 2022-07-31 16:34:07 +02:00
AbuseFilterGenerateTitleVarsHook.php Fix method names of hook interfaces 2021-03-09 17:03:14 +00:00
AbuseFilterGenerateUserVarsHook.php Fix method names of hook interfaces 2021-03-09 17:03:14 +00:00
AbuseFilterGenerateVarsForRecentChangeHook.php Move documentation from hooks.txt to hook interfaces 2021-03-31 21:50:30 +02:00
AbuseFilterGetDangerousActionsHook.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilterHookRunner.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilterInterceptVariableHook.php Fix method names of hook interfaces 2021-03-09 17:03:14 +00:00
AbuseFilterShouldFilterActionHook.php Cleanup variables-related classes 2021-01-02 18:19:38 +01:00