wiki.techinc.nl/includes/password
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
Argon2Password.php
BcryptPassword.php
EncryptedPassword.php
InvalidPassword.php
LayeredParameterizedPassword.php
MWOldPassword.php
MWSaltedPassword.php
ParameterizedPassword.php
Password.php
PasswordError.php
PasswordFactory.php
PasswordPolicyChecks.php
Pbkdf2Password.php
UserPasswordPolicy.php