mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-24 00:05:33 +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"?>
|
<?xml version="1.0"?>
|
||||||
<ruleset>
|
<ruleset>
|
||||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
|
||||||
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
|
|
||||||
</rule>
|
|
||||||
<rule ref="Generic.Files.LineLength">
|
<rule ref="Generic.Files.LineLength">
|
||||||
<exclude-pattern>Nuke\.alias\.php</exclude-pattern>
|
<exclude-pattern>Nuke\.alias\.php</exclude-pattern>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
|
@ -405,7 +405,8 @@ class SpecialNuke extends SpecialPage {
|
||||||
|
|
||||||
$file = $title->getNamespace() === NS_FILE ? $localRepo->newFile( $title ) : false;
|
$file = $title->getNamespace() === NS_FILE ? $localRepo->newFile( $title ) : false;
|
||||||
if ( $file ) {
|
if ( $file ) {
|
||||||
$oldimage = null; // Must be passed by reference
|
// Must be passed by reference
|
||||||
|
$oldimage = null;
|
||||||
$status = FileDeleteForm::doDelete(
|
$status = FileDeleteForm::doDelete(
|
||||||
$title,
|
$title,
|
||||||
$file,
|
$file,
|
||||||
|
|
Loading…
Reference in a new issue