Skip to content

Commit

Permalink
Merge "build: Use inline ignore for MediaWiki.Usage.DeprecatedGlobalV…
Browse files Browse the repository at this point in the history
…ariables"
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Sep 20, 2024
2 parents cfa765e + 5d13171 commit 38db1b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@
<rule ref="Generic.Files.OneObjectStructurePerFile">
<exclude-pattern>Scribunto_LuaWikibaseLibraryTestCase</exclude-pattern>
</rule>
<rule ref="MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgTitle">
<exclude-pattern>RepoHooks\.php</exclude-pattern>
</rule>
<rule ref="PSR1.Classes.ClassDeclaration.MultipleClasses">
<exclude-pattern>Scribunto_LuaWikibaseLibraryTestCase</exclude-pattern>
</rule>
Expand Down
1 change: 1 addition & 0 deletions repo/includes/RepoHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ public static function onAbuseFilterContentToString( Content $content, &$text )
* @param bool $local shall links be generated locally or globally
*/
public static function onFormat( &$comment, $pre, $auto, $post, $title, $local ) {
// phpcs:ignore MediaWiki.Usage.DeprecatedGlobalVariables.Deprecated$wgTitle
global $wgLang, $wgTitle;

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

0 comments on commit 38db1b9

Please sign in to comment.