Skip to content

Commit 38db1b9

Browse files
jenkins-botGerrit Code Review
authored andcommitted
Merge "build: Use inline ignore for MediaWiki.Usage.DeprecatedGlobalVariables"
2 parents cfa765e + 5d13171 commit 38db1b9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.phpcs.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@
7777
<rule ref="Generic.Files.OneObjectStructurePerFile">
7878
<exclude-pattern>Scribunto_LuaWikibaseLibraryTestCase</exclude-pattern>
7979
</rule>
80-
<rule ref="MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgTitle">
81-
<exclude-pattern>RepoHooks\.php</exclude-pattern>
82-
</rule>
8380
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
8481
<exclude-pattern>Scribunto_LuaWikibaseLibraryTestCase</exclude-pattern>
8582
</rule>

repo/includes/RepoHooks.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,7 @@ public static function onAbuseFilterContentToString( Content $content, &$text )
709709
* @param bool $local shall links be generated locally or globally
710710
*/
711711
public static function onFormat( &$comment, $pre, $auto, $post, $title, $local ) {
712+
// phpcs:ignore MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgTitle
712713
global $wgLang, $wgTitle;
713714

714715
// If it is possible to avoid loading the whole page then the code will be lighter on the server.

0 commit comments

Comments
 (0)