From bee9f4db96b4aec51feeddb8ccdca353c034f12f Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Mon, 4 Dec 2017 19:25:31 +0000 Subject: [PATCH] Remove various redundant '@license' tags in file headers Redundant given this is the project-wide license already, especially in file headers that already include the GPL license header. This and other minor fixups based on feedback from Ie0cea0ef5027c7e5. * Add @file where missing. * Move @ingroup and @deprecated from file to class doc where needed. Change-Id: I7067abb7abee1f0c238cb2536e16192e946d8daa --- includes/MWGrants.php | 4 ++-- includes/changes/ChangesListBooleanFilter.php | 3 +-- includes/changes/ChangesListFilter.php | 1 - includes/changes/ChangesListFilterGroup.php | 1 - .../ChangesListStringOptionsFilterGroup.php | 1 - .../connectionmanager/ConnectionManager.php | 20 +++++++++++++++- .../SessionConsistentConnectionManager.php | 20 +++++++++++++++- .../linkeddata/PageDataRequestHandler.php | 20 ++++++++++++++-- includes/linker/LinkRenderer.php | 1 - includes/linker/LinkRendererFactory.php | 1 - includes/linker/LinkTarget.php | 1 - includes/specials/SpecialPageData.php | 23 ++++++++++++++++++- includes/specials/formfields/Licenses.php | 1 - includes/title/ForeignTitleFactory.php | 1 - includes/title/ImportTitleFactory.php | 1 - includes/title/MediaWikiTitleCodec.php | 5 ++-- includes/title/NaiveForeignTitleFactory.php | 1 - includes/title/NaiveImportTitleFactory.php | 1 - .../NamespaceAwareForeignTitleFactory.php | 1 - .../title/NamespaceImportTitleFactory.php | 1 - includes/title/SubpageImportTitleFactory.php | 1 - includes/title/TitleFormatter.php | 3 +-- includes/title/TitleParser.php | 1 - includes/title/TitleValue.php | 5 ++-- .../libs/http/HttpAcceptNegotiatorTest.php | 1 - .../libs/http/HttpAcceptParserTest.php | 1 - .../ConnectionManagerTest.php | 1 - ...SessionConsistentConnectionManagerTest.php | 1 - .../linkeddata/PageDataRequestHandlerTest.php | 3 --- .../includes/specials/SpecialPageDataTest.php | 3 --- tests/phpunit/languages/LanguageCodeTest.php | 2 -- 31 files changed, 86 insertions(+), 44 deletions(-) diff --git a/includes/MWGrants.php b/includes/MWGrants.php index c7c54fd503..ba22590c92 100644 --- a/includes/MWGrants.php +++ b/includes/MWGrants.php @@ -1,7 +1,5 @@ */ namespace MediaWiki\Linker; diff --git a/includes/linker/LinkRendererFactory.php b/includes/linker/LinkRendererFactory.php index b7c05c2fe8..240ea09be9 100644 --- a/includes/linker/LinkRendererFactory.php +++ b/includes/linker/LinkRendererFactory.php @@ -16,7 +16,6 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @license GPL-2.0+ * @author Kunal Mehta */ namespace MediaWiki\Linker; diff --git a/includes/linker/LinkTarget.php b/includes/linker/LinkTarget.php index 980a8bfcb8..56407aec36 100644 --- a/includes/linker/LinkTarget.php +++ b/includes/linker/LinkTarget.php @@ -16,7 +16,6 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @license GPL 2+ * @author Addshore */ namespace MediaWiki\Linker; diff --git a/includes/specials/SpecialPageData.php b/includes/specials/SpecialPageData.php index c52c426e88..978efa7f12 100644 --- a/includes/specials/SpecialPageData.php +++ b/includes/specials/SpecialPageData.php @@ -1,11 +1,32 @@ . * - * @license GPL-2.0+ + * @class + * @ingroup SpecialPage */ class SpecialPageData extends SpecialPage { diff --git a/includes/specials/formfields/Licenses.php b/includes/specials/formfields/Licenses.php index f499cc161b..603c62f17b 100644 --- a/includes/specials/formfields/Licenses.php +++ b/includes/specials/formfields/Licenses.php @@ -21,7 +21,6 @@ * @ingroup SpecialPage * @author Ævar Arnfjörð Bjarmason * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later */ /** diff --git a/includes/title/ForeignTitleFactory.php b/includes/title/ForeignTitleFactory.php index 427afdf3eb..07dd346df9 100644 --- a/includes/title/ForeignTitleFactory.php +++ b/includes/title/ForeignTitleFactory.php @@ -16,7 +16,6 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @license GPL 2+ */ /** diff --git a/includes/title/ImportTitleFactory.php b/includes/title/ImportTitleFactory.php index 629616d8c0..4baab22afa 100644 --- a/includes/title/ImportTitleFactory.php +++ b/includes/title/ImportTitleFactory.php @@ -16,7 +16,6 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @license GPL 2+ */ /** diff --git a/includes/title/MediaWikiTitleCodec.php b/includes/title/MediaWikiTitleCodec.php index efc0fd4a71..890a870a2a 100644 --- a/includes/title/MediaWikiTitleCodec.php +++ b/includes/title/MediaWikiTitleCodec.php @@ -1,6 +1,6 @@