From dc2948d76d67ceac9595b7f86b3d5694b5c0e69d Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 1 Dec 2017 21:02:26 +1100 Subject: [PATCH] A few doc comment fixups * Remove some creation dates, they are not protected by GPL * Remove duplicate @defgroup API * Remove @ingroup from some @file doc comments on class files. It is not useful to list class files alongside classes in the doxygen module menu. Add @ingroup to some more class files that had @ingroup on their file, that was probably the author's intent. * In PackedOverlayImageGallery, use the file comment as a class comment * Don't put @defgroup and @file in the same comment. @defgroup makes the whole doc comment describe the group. * Instead of putting AnsiTermColorer in two groups, use hierarchical groups. Change-Id: If54f6e0b2bc1ea6de42045885cf836ee67b8e961 --- includes/api/ApiImport.php | 4 --- includes/api/ApiOpenSearch.php | 5 ++-- includes/api/ApiRsd.php | 2 -- includes/api/ApiUsageException.php | 1 - includes/deferred/CdnCacheUpdate.php | 1 - .../gallery/PackedOverlayImageGallery.php | 7 +++-- includes/installer/PhpBugTests.php | 4 ++- includes/jobqueue/JobSpecification.php | 1 - .../aggregator/JobQueueAggregator.php | 3 ++ includes/libs/rdbms/database/IDatabase.php | 11 ++++---- .../rdbms/database/IMaintainableDatabase.php | 1 - .../libs/rdbms/exception/DBExpectedError.php | 1 - .../libs/rdbms/loadbalancer/LoadBalancer.php | 1 - includes/specials/SpecialUploadStash.php | 9 ++++-- includes/upload/UploadStash.php | 28 ++++++++++++++++++- languages/classes/LanguageEn.php | 4 ++- languages/classes/LanguageGan.php | 3 +- maintenance/term/MWTerm.php | 12 ++++++-- 18 files changed, 67 insertions(+), 31 deletions(-) diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index a0f0a8dbdb..822711aa02 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -1,9 +1,5 @@ .@gmail.com" * * This program is free software; you can redistribute it and/or modify diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index 419fd140d7..416fc7f6e4 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -1,7 +1,5 @@ @gmail.com" * Copyright © 2008 Brion Vibber * Copyright © 2014 Wikimedia Foundation and contributors @@ -382,6 +380,9 @@ class ApiOpenSearch extends ApiBase { } } +/** + * @ingroup API + */ class ApiOpenSearchFormatJson extends ApiFormatJson { private $warningsAsError = false; diff --git a/includes/api/ApiRsd.php b/includes/api/ApiRsd.php index fdc62a8ea9..f20d1c6c8b 100644 --- a/includes/api/ApiRsd.php +++ b/includes/api/ApiRsd.php @@ -3,8 +3,6 @@ /** * API for MediaWiki 1.17+ * - * Created on October 26, 2010 - * * Copyright © 2010 Bryan Tong Minh and Brion Vibber * * This program is free software; you can redistribute it and/or modify diff --git a/includes/api/ApiUsageException.php b/includes/api/ApiUsageException.php index 4196add2c3..c200dcba6f 100644 --- a/includes/api/ApiUsageException.php +++ b/includes/api/ApiUsageException.php @@ -16,7 +16,6 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @defgroup API API */ /** diff --git a/includes/deferred/CdnCacheUpdate.php b/includes/deferred/CdnCacheUpdate.php index 7fafc0ebca..301c4f3b7e 100644 --- a/includes/deferred/CdnCacheUpdate.php +++ b/includes/deferred/CdnCacheUpdate.php @@ -18,7 +18,6 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @ingroup Cache */ use Wikimedia\Assert\Assert; diff --git a/includes/gallery/PackedOverlayImageGallery.php b/includes/gallery/PackedOverlayImageGallery.php index db8ce68b9a..0a5a457fea 100644 --- a/includes/gallery/PackedOverlayImageGallery.php +++ b/includes/gallery/PackedOverlayImageGallery.php @@ -1,8 +1,5 @@