Umherirrender has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/398631 )

Change subject: Move BetaFeaturesMissingFieldException to own file
......................................................................

Move BetaFeaturesMissingFieldException to own file

Makes MediaWiki.Files.OneClassPerFile.MultipleFound pass

Change-Id: I3442bb7e5bca3e494d533dc71288c04646efbde6
---
M .phpcs.xml
M BetaFeaturesHooks.php
M extension.json
A includes/BetaFeaturesMissingFieldException.php
4 files changed, 26 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BetaFeatures 
refs/changes/31/398631/1

diff --git a/.phpcs.xml b/.phpcs.xml
index f0ce77f..6683cf1 100644
--- a/.phpcs.xml
+++ b/.phpcs.xml
@@ -4,7 +4,6 @@
                <exclude 
name="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase"
 />
                <exclude 
name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />
                <exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
-               <exclude name="MediaWiki.Files.OneClassPerFile.MultipleFound" />
                <exclude 
name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
                <exclude 
name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
                <exclude 
name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
diff --git a/BetaFeaturesHooks.php b/BetaFeaturesHooks.php
index c3a1ab2..d0454ae 100644
--- a/BetaFeaturesHooks.php
+++ b/BetaFeaturesHooks.php
@@ -23,9 +23,6 @@
  * @license GNU General Public License version 2 or later
  */
 
-class BetaFeaturesMissingFieldException extends Exception {
-}
-
 class BetaFeaturesHooks {
 
        /**
diff --git a/extension.json b/extension.json
index 6e3516f..dc15655 100644
--- a/extension.json
+++ b/extension.json
@@ -82,7 +82,7 @@
        },
        "AutoloadClasses": {
                "BetaFeaturesHooks": "BetaFeaturesHooks.php",
-               "BetaFeaturesMissingFieldException": "BetaFeaturesHooks.php",
+               "BetaFeaturesMissingFieldException": 
"includes/BetaFeaturesMissingFieldException.php",
                "NewHTMLCheckField": "includes/NewHTMLCheckField.php",
                "HTMLFeatureField": "includes/HTMLFeatureField.php",
                "HTMLTextBlockField": "includes/HTMLTextBlockField.php",
diff --git a/includes/BetaFeaturesMissingFieldException.php 
b/includes/BetaFeaturesMissingFieldException.php
new file mode 100644
index 0000000..68f29de
--- /dev/null
+++ b/includes/BetaFeaturesMissingFieldException.php
@@ -0,0 +1,25 @@
+<?php
+/*
+ * This file is part of the MediaWiki extension BetaFeatures.
+ *
+ * BetaFeatures is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * BetaFeatures is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with BetaFeatures.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * @file
+ * @ingroup Extensions
+ * @copyright 2013 Mark Holmquist and others; see AUTHORS
+ * @license GNU General Public License version 2 or later
+ */
+
+class BetaFeaturesMissingFieldException extends Exception {
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/398631
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3442bb7e5bca3e494d533dc71288c04646efbde6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BetaFeatures
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <umherirrender_de...@web.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to