Change function name to start with lowercase

Add ignore for the remaining phpcs issue

Enable the excluded sniff and suppress the issue inline
Avoid that new code gets added with this issue.

Change-Id: Ifae1c0979e224c33d1c59ebf2330bb27da0da2e5
This commit is contained in:
Umherirrender 2024-12-08 21:55:30 +01:00
parent 87af9edafa
commit 834ce601e5
3 changed files with 4 additions and 3 deletions

View file

@ -5,7 +5,6 @@
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPrivate" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" />
</rule>
<rule ref="MediaWiki.Files.ClassMatchesFilename.NotMatch">
<exclude-pattern>includes/</exclude-pattern>

View file

@ -84,6 +84,8 @@ use SkinTemplate;
use Wikimedia\Stats\StatsFactory;
use WikiPage;
// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
class Hooks implements
AbortTalkPageEmailNotificationHook,
ApiMain__moduleManagerHook,

View file

@ -356,7 +356,7 @@ class NotificationControllerTest extends MediaWikiIntegrationTestCase {
}
/**
* @dataProvider PageLinkedTitleMutedByUserDataProvider
* @dataProvider pageLinkedTitleMutedByUserDataProvider
* @param int $mockArticleID
* @param int[] $mockMutedTitlePreferences
* @param bool $expected
@ -375,7 +375,7 @@ class NotificationControllerTest extends MediaWikiIntegrationTestCase {
);
}
public static function PageLinkedTitleMutedByUserDataProvider(): array {
public static function pageLinkedTitleMutedByUserDataProvider(): array {
return [
[
123,