mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-27 09:40:43 +00:00
Remove phpcs exclude rules and update PHP code
Change-Id: Ifecf2f8a053b9304a8e9e6558cd7c1f570f15084
This commit is contained in:
parent
c9c8af5690
commit
42ef4ee402
|
@ -1,8 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
|
||||
</rule>
|
||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
|
||||
<rule ref="Generic.Files.LineLength">
|
||||
<exclude-pattern>Nuke\.alias\.php</exclude-pattern>
|
||||
</rule>
|
||||
|
|
|
@ -405,7 +405,8 @@ class SpecialNuke extends SpecialPage {
|
|||
|
||||
$file = $title->getNamespace() === NS_FILE ? $localRepo->newFile( $title ) : false;
|
||||
if ( $file ) {
|
||||
$oldimage = null; // Must be passed by reference
|
||||
// Must be passed by reference
|
||||
$oldimage = null;
|
||||
$status = FileDeleteForm::doDelete(
|
||||
$title,
|
||||
$file,
|
||||
|
|
Loading…
Reference in a new issue