diff --git a/.phpcs.xml b/.phpcs.xml index b77393d3c..6f1d670a9 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -5,7 +5,6 @@ - includes/ diff --git a/includes/Hooks.php b/includes/Hooks.php index 900e073ea..ae2d7e359 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -84,6 +84,8 @@ use SkinTemplate; use Wikimedia\Stats\StatsFactory; use WikiPage; +// phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName + class Hooks implements AbortTalkPageEmailNotificationHook, ApiMain__moduleManagerHook, diff --git a/tests/phpunit/Controller/NotificationControllerTest.php b/tests/phpunit/Controller/NotificationControllerTest.php index 55fa73a90..c8a3fb601 100644 --- a/tests/phpunit/Controller/NotificationControllerTest.php +++ b/tests/phpunit/Controller/NotificationControllerTest.php @@ -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,