From a49e3a592e91107a140b86bf5011625ab428a9f0 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Thu, 29 Oct 2015 12:38:40 +0100 Subject: [PATCH] build: Enable phpcs rule 'Squiz.Classes.ValidClassName.NotCamelCaps' and make pass Change-Id: I3d8b9c04ef2be3fe456c2c66bb10afa11ba0cd45 --- maintenance/removeInvalidNotification.php | 4 ++-- maintenance/removeInvalidTargetPage.php | 4 ++-- phpcs.xml | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/maintenance/removeInvalidNotification.php b/maintenance/removeInvalidNotification.php index c927157c5..d9c275170 100644 --- a/maintenance/removeInvalidNotification.php +++ b/maintenance/removeInvalidNotification.php @@ -13,7 +13,7 @@ require_once ( getenv( 'MW_INSTALL_PATH' ) !== false * * @ingroup Maintenance */ -class removeInvalidNotification extends Maintenance { +class RemoveInvalidNotification extends Maintenance { protected $batchSize = 500; protected $invalidEventType = array( 'article-linked' ); @@ -78,5 +78,5 @@ class removeInvalidNotification extends Maintenance { } } -$maintClass = 'removeInvalidNotification'; // Tells it to run the class +$maintClass = 'RemoveInvalidNotification'; // Tells it to run the class require_once ( RUN_MAINTENANCE_IF_MAIN ); diff --git a/maintenance/removeInvalidTargetPage.php b/maintenance/removeInvalidTargetPage.php index 72c67b897..1555571ce 100644 --- a/maintenance/removeInvalidTargetPage.php +++ b/maintenance/removeInvalidTargetPage.php @@ -14,7 +14,7 @@ require_once ( getenv( 'MW_INSTALL_PATH' ) !== false * * @ingroup Maintenance */ -class removeInvalidTargetPage extends Maintenance { +class RemoveInvalidTargetPage extends Maintenance { public function __construct() { parent::__construct(); @@ -109,5 +109,5 @@ class removeInvalidTargetPage extends Maintenance { } } -$maintClass = 'removeInvalidTargetPage'; // Tells it to run the class +$maintClass = 'RemoveInvalidTargetPage'; // Tells it to run the class require_once ( RUN_MAINTENANCE_IF_MAIN ); diff --git a/phpcs.xml b/phpcs.xml index 77cb22d8d..6f035100b 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -5,7 +5,6 @@ -