From 42ef4ee402e59f79cade8193aee92c75c709b541 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Fri, 4 Nov 2022 13:09:25 +0000 Subject: [PATCH] Remove phpcs exclude rules and update PHP code Change-Id: Ifecf2f8a053b9304a8e9e6558cd7c1f570f15084 --- .phpcs.xml | 4 +--- includes/SpecialNuke.php | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.phpcs.xml b/.phpcs.xml index c730f5d5..54d138a7 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -1,8 +1,6 @@ - - - + Nuke\.alias\.php diff --git a/includes/SpecialNuke.php b/includes/SpecialNuke.php index c707d9be..5deb3762 100644 --- a/includes/SpecialNuke.php +++ b/includes/SpecialNuke.php @@ -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,