wiki.techinc.nl/includes/block
Aryeh Gregor 7b791474a5 Use MainConfigNames instead of string literals, #4
Now largely automated:

VARS=$(grep -o "'[A-Za-z0-9_]*'" includes/MainConfigNames.php | \
  tr "\n" '|' | sed "s/|$/\n/;s/'//g")
sed -i -E "s/'($VARS)'/MainConfigNames::\1/g" \
  $(grep -ERIl "'($VARS)'" includes/)

Then git add -p with lots of error-prone manual checking. Then
semi-manually add all the necessary "use" lines:

vim $(grep -L 'use MediaWiki\\MainConfigNames;' \
  $(git diff --cached --name-only --diff-filter=M HEAD^))

I didn't bother fixing lines that were over 100 characters unless they
were over 120 and triggered phpcs.

Bug: T305805
Change-Id: I74e0ab511abecb276717ad4276a124760a268147
2022-04-26 19:03:37 +03:00
..
Hook GetAllBlockActionsHook: Document avoiding blockable action ID conflicts 2021-05-10 18:35:58 +01:00
Restriction phan: Disable null_casts_as_any_type setting 2022-03-21 18:25:07 +00:00
AbstractBlock.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
Block.php Make Block objects aware of which wiki they belong to 2022-01-17 21:49:20 +01:00
BlockActionInfo.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
BlockErrorFormatter.php BlockErrorFormatter: use Message::plain() if blocked without a reason 2021-08-05 01:50:50 +00:00
BlockManager.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
BlockPermissionChecker.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
BlockPermissionCheckerFactory.php Authority: expose user block info 2021-06-30 13:42:21 +02:00
BlockRestrictionStore.php Don't allow passing a db to BlockRestrictionStore::loadByBlockId() 2022-03-26 06:12:15 +01:00
BlockRestrictionStoreFactory.php Introduce a BlockRestrictionStoreFactory 2022-01-24 20:17:40 +01:00
BlockUser.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
BlockUserFactory.php Remove some more comments that literally repeat the code 2021-12-09 19:01:36 +01:00
BlockUtils.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
CompositeBlock.php Make Block objects aware of which wiki they belong to 2022-01-17 21:49:20 +01:00
DatabaseBlock.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
DatabaseBlockStore.php Use MainConfigNames instead of string literals, #4 2022-04-26 19:03:37 +03:00
SystemBlock.php Make Block objects aware of which wiki they belong to 2022-01-17 21:49:20 +01:00
UnblockUser.php Remove or replace usages of "sanity" 2021-11-19 23:19:42 +00:00
UnblockUserFactory.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
UserBlockCommandFactory.php Remove some more comments that literally repeat the code 2021-12-09 19:01:36 +01:00