mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
d4b15cb7ee
The "substr( $line, 0, 1 )" expression has already assumed the prefix has length 1. Therefore, it's pointless to compute its length later. The assumption does hold, the only two prefixes the code works with are '+' and '-'. Not changing the check to use str_starts_with now, because it was suggested in I113a8d052b6845852c15969a2f0e6fbbe3e9f8d9 that this shouldn't be done for performance-sensitive code at least until we are on PHP 8. Change-Id: I00cb2fc50ed534bb2bbef3ee1e5f6f466afeeb27 |
||
---|---|---|
.phan | ||
db_patches | ||
i18n | ||
includes | ||
maintenance | ||
modules | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
AbuseFilter.alias.php | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
package-lock.json | ||
package.json |