From 91a920fd85c34e64f47140ed82f2ac0913ed8033 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thiemo=20M=C3=A4ttig?= Date: Fri, 21 Jul 2017 12:19:30 +0200 Subject: [PATCH] Remove auto-generated "Constructor" documentation on constructors Having such comments is worse than not having them. They add zero information. But you must read the text to understand there is nothing you don't already know from the class and the method name. This is similar to I994d11e. Even more trivial, because this here is about comments that don't say anything but "constructor". Change-Id: I474dcdb5997bea3aafd11c0760ee072dfaff124c --- includes/Feed.php | 2 -- includes/FileDeleteForm.php | 2 -- includes/HistoryBlob.php | 3 --- includes/Revision.php | 2 -- includes/SiteStats.php | 1 - includes/StubObject.php | 2 -- includes/actions/Action.php | 2 -- includes/cache/localisation/LocalisationCache.php | 1 - includes/changes/ChangesFeed.php | 2 -- includes/collation/NumericUppercaseCollation.php | 2 -- includes/context/DerivativeContext.php | 1 - includes/db/CloneDatabase.php | 2 -- includes/deferred/LinksUpdate.php | 2 -- includes/deferred/SearchUpdate.php | 2 -- includes/diff/DairikiDiff.php | 1 - includes/diff/DifferenceEngine.php | 1 - includes/exception/HttpError.php | 2 -- includes/filerepo/file/LocalFile.php | 1 - includes/installer/CliInstaller.php | 2 -- includes/installer/DatabaseUpdater.php | 2 -- includes/installer/LocalSettingsGenerator.php | 2 -- includes/installer/WebInstaller.php | 2 -- includes/libs/GenericArrayObject.php | 1 - includes/libs/MemoizedCallable.php | 2 -- includes/libs/objectcache/APCBagOStuff.php | 2 -- includes/libs/objectcache/APCUBagOStuff.php | 2 -- includes/libs/objectcache/MemcachedPeclBagOStuff.php | 2 -- includes/libs/xmp/XMP.php | 2 -- includes/logging/LogEntry.php | 2 -- includes/logging/LogEventsList.php | 1 - includes/logging/LogPage.php | 2 -- includes/logging/LogPager.php | 2 -- includes/media/DjVuImage.php | 2 -- includes/media/Exif.php | 2 -- includes/media/SVGMetadataExtractor.php | 2 -- includes/parser/ParserOptions.php | 1 - includes/profiler/output/ProfilerOutput.php | 1 - includes/search/SearchDatabase.php | 1 - includes/site/MediaWikiSite.php | 2 -- includes/site/Site.php | 2 -- includes/specials/SpecialActiveusers.php | 3 --- includes/specials/SpecialAllMessages.php | 3 --- includes/specials/SpecialAllPages.php | 2 -- includes/specials/SpecialImport.php | 3 --- includes/specials/SpecialListusers.php | 4 +--- includes/specials/SpecialUpload.php | 1 - includes/tidy/RemexCompatMunger.php | 2 -- includes/user/UserRightsProxy.php | 2 -- includes/utils/FileContentsHasher.php | 3 --- languages/ConverterRule.php | 2 -- maintenance/generateSitemap.php | 3 --- maintenance/language/checkLanguage.inc | 2 -- 52 files changed, 1 insertion(+), 99 deletions(-) diff --git a/includes/Feed.php b/includes/Feed.php index 189fd9f2fb..f76a634d3f 100644 --- a/includes/Feed.php +++ b/includes/Feed.php @@ -54,8 +54,6 @@ class FeedItem { public $rssIsPermalink = false; /** - * Constructor - * * @param string|Title $title Item's title * @param string $description * @param string $url URL uniquely designating the item. diff --git a/includes/FileDeleteForm.php b/includes/FileDeleteForm.php index e7b4a1f8e6..8a1cd35297 100644 --- a/includes/FileDeleteForm.php +++ b/includes/FileDeleteForm.php @@ -47,8 +47,6 @@ class FileDeleteForm { private $oldimage = ''; /** - * Constructor - * * @param File $file File object we're deleting */ public function __construct( $file ) { diff --git a/includes/HistoryBlob.php b/includes/HistoryBlob.php index 56cf815e45..51bd7a9e94 100644 --- a/includes/HistoryBlob.php +++ b/includes/HistoryBlob.php @@ -76,9 +76,6 @@ class ConcatenatedGzipHistoryBlob implements HistoryBlob { public $mMaxSize = 10000000; public $mMaxCount = 100; - /** - * Constructor - */ public function __construct() { if ( !function_exists( 'gzdeflate' ) ) { throw new MWException( "Need zlib support to read or write this " diff --git a/includes/Revision.php b/includes/Revision.php index c3782ba18a..c6b50f4651 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -559,8 +559,6 @@ class Revision implements IDBAccessObject { } /** - * Constructor - * * @param object|array $row Either a database row or an array * @throws MWException * @access private diff --git a/includes/SiteStats.php b/includes/SiteStats.php index 6ce1aed814..5a0947d0e7 100644 --- a/includes/SiteStats.php +++ b/includes/SiteStats.php @@ -296,7 +296,6 @@ class SiteStatsInit { private $mUsers = null, $mFiles = null; /** - * Constructor * @param bool|IDatabase $database * - boolean: Whether to use the master DB * - IDatabase: Database connection to use diff --git a/includes/StubObject.php b/includes/StubObject.php index 0210ed9d6a..5208b8f1fa 100644 --- a/includes/StubObject.php +++ b/includes/StubObject.php @@ -55,8 +55,6 @@ class StubObject { protected $params; /** - * Constructor. - * * @param string $global Name of the global variable. * @param string|callable $class Name of the class of the real object * or a factory function to call diff --git a/includes/actions/Action.php b/includes/actions/Action.php index 844a0d6048..88382b694f 100644 --- a/includes/actions/Action.php +++ b/includes/actions/Action.php @@ -259,8 +259,6 @@ abstract class Action implements MessageLocalizer { } /** - * Constructor. - * * Only public since 1.21 * * @param Page $page diff --git a/includes/cache/localisation/LocalisationCache.php b/includes/cache/localisation/LocalisationCache.php index d499340d0e..58a67adb8e 100644 --- a/includes/cache/localisation/LocalisationCache.php +++ b/includes/cache/localisation/LocalisationCache.php @@ -183,7 +183,6 @@ class LocalisationCache { private $mergeableKeys = null; /** - * Constructor. * For constructor parameters, see the documentation in DefaultSettings.php * for $wgLocalisationCacheConf. * diff --git a/includes/changes/ChangesFeed.php b/includes/changes/ChangesFeed.php index cffb59a4a8..99dc8991f2 100644 --- a/includes/changes/ChangesFeed.php +++ b/includes/changes/ChangesFeed.php @@ -31,8 +31,6 @@ class ChangesFeed { public $format, $type, $titleMsg, $descMsg; /** - * Constructor - * * @param string $format Feed's format (either 'rss' or 'atom') * @param string $type Type of feed (for cache keys) */ diff --git a/includes/collation/NumericUppercaseCollation.php b/includes/collation/NumericUppercaseCollation.php index 2d2ca47bcf..8dd7a38f3a 100644 --- a/includes/collation/NumericUppercaseCollation.php +++ b/includes/collation/NumericUppercaseCollation.php @@ -40,8 +40,6 @@ class NumericUppercaseCollation extends UppercaseCollation { private $digitTransformLang; /** - * Constructor - * * @param $lang Language How to convert digits. * For example, if given language "my" than ၇ is treated like 7. * diff --git a/includes/context/DerivativeContext.php b/includes/context/DerivativeContext.php index 9c3c42a92d..8705e2796a 100644 --- a/includes/context/DerivativeContext.php +++ b/includes/context/DerivativeContext.php @@ -75,7 +75,6 @@ class DerivativeContext extends ContextSource implements MutableContext { private $timing; /** - * Constructor * @param IContextSource $context Context to inherit from */ public function __construct( IContextSource $context ) { diff --git a/includes/db/CloneDatabase.php b/includes/db/CloneDatabase.php index 6d1844494c..3d22c037ae 100644 --- a/includes/db/CloneDatabase.php +++ b/includes/db/CloneDatabase.php @@ -46,8 +46,6 @@ class CloneDatabase { private $db; /** - * Constructor - * * @param IMaintainableDatabase $db A database subclass * @param array $tablesToClone An array of tables to clone, unprefixed * @param string $newTablePrefix Prefix to assign to the tables diff --git a/includes/deferred/LinksUpdate.php b/includes/deferred/LinksUpdate.php index 072c1e0d03..c6facd9bf8 100644 --- a/includes/deferred/LinksUpdate.php +++ b/includes/deferred/LinksUpdate.php @@ -102,8 +102,6 @@ class LinksUpdate extends DataUpdate implements EnqueueableDataUpdate { private $db; /** - * Constructor - * * @param Title $title Title of the page we're updating * @param ParserOutput $parserOutput Output from a full parse of this page * @param bool $recursive Queue jobs for recursive updates? diff --git a/includes/deferred/SearchUpdate.php b/includes/deferred/SearchUpdate.php index b9a259b1a4..2766bcb185 100644 --- a/includes/deferred/SearchUpdate.php +++ b/includes/deferred/SearchUpdate.php @@ -44,8 +44,6 @@ class SearchUpdate implements DeferrableUpdate { private $page; /** - * Constructor - * * @param int $id Page id to update * @param Title|string $title Title of page to update * @param Content|string|bool $c Content of the page to update. Default: false. diff --git a/includes/diff/DairikiDiff.php b/includes/diff/DairikiDiff.php index a08bd9ed9b..d76af31aea 100644 --- a/includes/diff/DairikiDiff.php +++ b/includes/diff/DairikiDiff.php @@ -211,7 +211,6 @@ class Diff { protected $bailoutComplexity = 0; /** - * Constructor. * Computes diff between sequences of strings. * * @param string[] $from_lines An array of strings. diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index 0b58cc1bc6..cbed78f81a 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -104,7 +104,6 @@ class DifferenceEngine extends ContextSource { /**#@-*/ /** - * Constructor * @param IContextSource $context Context to use, anything else will be ignored * @param int $old Old ID we want to show and diff with. * @param string|int $new Either revision ID or 'prev' or 'next'. Default: 0. diff --git a/includes/exception/HttpError.php b/includes/exception/HttpError.php index 48bc3bd4e1..f464d8af66 100644 --- a/includes/exception/HttpError.php +++ b/includes/exception/HttpError.php @@ -31,8 +31,6 @@ class HttpError extends MWException { private $httpCode, $header, $content; /** - * Constructor - * * @param int $httpCode HTTP status code to send to the client * @param string|Message $content Content of the message * @param string|Message|null $header Content of the header (\ and \) diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index f71e1dc273..33177d3f6f 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -215,7 +215,6 @@ class LocalFile extends File { } /** - * Constructor. * Do not call this except from inside a repo class. * @param Title $title * @param FileRepo $repo diff --git a/includes/installer/CliInstaller.php b/includes/installer/CliInstaller.php index 661c3ec0b5..ad7acda7db 100644 --- a/includes/installer/CliInstaller.php +++ b/includes/installer/CliInstaller.php @@ -47,8 +47,6 @@ class CliInstaller extends Installer { ]; /** - * Constructor. - * * @param string $siteName * @param string $admin * @param array $option diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index e5cbb7ce71..7e43fb5801 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -105,8 +105,6 @@ abstract class DatabaseUpdater { protected $holdContentHandlerUseDB = true; /** - * Constructor - * * @param Database $db To perform updates on * @param bool $shared Whether to perform updates on shared tables * @param Maintenance $maintenance Maintenance object which created us diff --git a/includes/installer/LocalSettingsGenerator.php b/includes/installer/LocalSettingsGenerator.php index a9710eb9f6..bdaeaca86c 100644 --- a/includes/installer/LocalSettingsGenerator.php +++ b/includes/installer/LocalSettingsGenerator.php @@ -41,8 +41,6 @@ class LocalSettingsGenerator { protected $installer; /** - * Constructor. - * * @param Installer $installer */ public function __construct( Installer $installer ) { diff --git a/includes/installer/WebInstaller.php b/includes/installer/WebInstaller.php index c94f0bfaa4..a311ce96ed 100644 --- a/includes/installer/WebInstaller.php +++ b/includes/installer/WebInstaller.php @@ -130,8 +130,6 @@ class WebInstaller extends Installer { protected $currentPageName; /** - * Constructor. - * * @param WebRequest $request */ public function __construct( WebRequest $request ) { diff --git a/includes/libs/GenericArrayObject.php b/includes/libs/GenericArrayObject.php index 76e23cfd50..f76d9a2e8d 100644 --- a/includes/libs/GenericArrayObject.php +++ b/includes/libs/GenericArrayObject.php @@ -67,7 +67,6 @@ abstract class GenericArrayObject extends ArrayObject { } /** - * Constructor. * @see ArrayObject::__construct * * @since 1.20 diff --git a/includes/libs/MemoizedCallable.php b/includes/libs/MemoizedCallable.php index 12a5cadb99..6b4281fb96 100644 --- a/includes/libs/MemoizedCallable.php +++ b/includes/libs/MemoizedCallable.php @@ -46,8 +46,6 @@ class MemoizedCallable { private $callableName; /** - * Constructor. - * * @throws InvalidArgumentException if $callable is not a callable. * @param callable $callable Function or method to memoize. * @param int $ttl TTL in seconds. Defaults to 3600 (1hr). Capped at 86400 (24h). diff --git a/includes/libs/objectcache/APCBagOStuff.php b/includes/libs/objectcache/APCBagOStuff.php index 9bfcee798a..e41c3a2592 100644 --- a/includes/libs/objectcache/APCBagOStuff.php +++ b/includes/libs/objectcache/APCBagOStuff.php @@ -42,8 +42,6 @@ class APCBagOStuff extends BagOStuff { const KEY_SUFFIX = ':2'; /** - * Constructor - * * Available parameters are: * - nativeSerialize: If true, pass objects to apc_store(), and trust it * to serialize them correctly. If false, serialize diff --git a/includes/libs/objectcache/APCUBagOStuff.php b/includes/libs/objectcache/APCUBagOStuff.php index 6e6a3adebb..a26e56020f 100644 --- a/includes/libs/objectcache/APCUBagOStuff.php +++ b/includes/libs/objectcache/APCUBagOStuff.php @@ -28,8 +28,6 @@ */ class APCUBagOStuff extends APCBagOStuff { /** - * Constructor - * * Available parameters are: * - nativeSerialize: If true, pass objects to apcu_store(), and trust it * to serialize them correctly. If false, serialize diff --git a/includes/libs/objectcache/MemcachedPeclBagOStuff.php b/includes/libs/objectcache/MemcachedPeclBagOStuff.php index c568e7b4f6..e3e66d5826 100644 --- a/includes/libs/objectcache/MemcachedPeclBagOStuff.php +++ b/includes/libs/objectcache/MemcachedPeclBagOStuff.php @@ -29,8 +29,6 @@ class MemcachedPeclBagOStuff extends MemcachedBagOStuff { /** - * Constructor - * * Available parameters are: * - servers: The list of IP:port combinations holding the memcached servers. * - persistent: Whether to use a persistent connection diff --git a/includes/libs/xmp/XMP.php b/includes/libs/xmp/XMP.php index debe869e7e..e12766a2ad 100644 --- a/includes/libs/xmp/XMP.php +++ b/includes/libs/xmp/XMP.php @@ -130,8 +130,6 @@ class XMPReader implements LoggerAwareInterface { private $logger; /** - * Constructor. - * * Primary job is to initialize the XMLParser */ function __construct( LoggerInterface $logger = null ) { diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php index e7095f0b39..fa94fe5b23 100644 --- a/includes/logging/LogEntry.php +++ b/includes/logging/LogEntry.php @@ -437,8 +437,6 @@ class ManualLogEntry extends LogEntryBase { protected $legacy = false; /** - * Constructor. - * * @since 1.19 * @param string $type * @param string $subtype diff --git a/includes/logging/LogEventsList.php b/includes/logging/LogEventsList.php index a9679bf384..22e5b45cf1 100644 --- a/includes/logging/LogEventsList.php +++ b/includes/logging/LogEventsList.php @@ -55,7 +55,6 @@ class LogEventsList extends ContextSource { private $linkRenderer; /** - * Constructor. * The first two parameters used to be $skin and $out, but now only a context * is needed, that's why there's a second unused parameter. * diff --git a/includes/logging/LogPage.php b/includes/logging/LogPage.php index f2b16705c7..faca5bc8a1 100644 --- a/includes/logging/LogPage.php +++ b/includes/logging/LogPage.php @@ -72,8 +72,6 @@ class LogPage { private $target; /** - * Constructor - * * @param string $type One of '', 'block', 'protect', 'rights', 'delete', * 'upload', 'move' * @param bool $rc Whether to update recent changes as well as the logging table diff --git a/includes/logging/LogPager.php b/includes/logging/LogPager.php index 11dce31bc7..f79fcfa61c 100644 --- a/includes/logging/LogPager.php +++ b/includes/logging/LogPager.php @@ -49,8 +49,6 @@ class LogPager extends ReverseChronologicalPager { public $mLogEventsList; /** - * Constructor - * * @param LogEventsList $list * @param string|array $types Log types to show * @param string $performer The user who made the log entries diff --git a/includes/media/DjVuImage.php b/includes/media/DjVuImage.php index 57b5b36c14..d25111c445 100644 --- a/includes/media/DjVuImage.php +++ b/includes/media/DjVuImage.php @@ -40,8 +40,6 @@ class DjVuImage { const DJVUTXT_MEMORY_LIMIT = 300000; /** - * Constructor - * * @param string $filename The DjVu file name. */ function __construct( $filename ) { diff --git a/includes/media/Exif.php b/includes/media/Exif.php index 9bfbc96c69..c355a06be3 100644 --- a/includes/media/Exif.php +++ b/includes/media/Exif.php @@ -96,8 +96,6 @@ class Exif { private $byteOrder; /** - * Constructor - * * @param string $file Filename. * @param string $byteOrder Type of byte ordering either 'BE' (Big Endian) * or 'LE' (Little Endian). Default ''. diff --git a/includes/media/SVGMetadataExtractor.php b/includes/media/SVGMetadataExtractor.php index 2cf4d23b45..9b22cbee1a 100644 --- a/includes/media/SVGMetadataExtractor.php +++ b/includes/media/SVGMetadataExtractor.php @@ -58,8 +58,6 @@ class SVGReader { private $languagePrefixes = []; /** - * Constructor - * * Creates an SVGReader drawing from the source provided * @param string $source URI from which to read * @throws MWException|Exception diff --git a/includes/parser/ParserOptions.php b/includes/parser/ParserOptions.php index 96a4368258..73a99272c2 100644 --- a/includes/parser/ParserOptions.php +++ b/includes/parser/ParserOptions.php @@ -927,7 +927,6 @@ class ParserOptions { } /** - * Constructor * @warning For interaction with the parser cache, use * WikiPage::makeParserOptions(), ContentHandler::makeParserOptions(), or * ParserOptions::newCanonical() instead. diff --git a/includes/profiler/output/ProfilerOutput.php b/includes/profiler/output/ProfilerOutput.php index ddf084e81c..20b07801b4 100644 --- a/includes/profiler/output/ProfilerOutput.php +++ b/includes/profiler/output/ProfilerOutput.php @@ -31,7 +31,6 @@ abstract class ProfilerOutput { protected $params = []; /** - * Constructor * @param Profiler $collector The actual profiler * @param array $params Configuration array, passed down from $wgProfiler */ diff --git a/includes/search/SearchDatabase.php b/includes/search/SearchDatabase.php index 1d7a4a338e..643c2c1364 100644 --- a/includes/search/SearchDatabase.php +++ b/includes/search/SearchDatabase.php @@ -35,7 +35,6 @@ class SearchDatabase extends SearchEngine { protected $db; /** - * Constructor * @param IDatabase $db The database to search from */ public function __construct( IDatabase $db = null ) { diff --git a/includes/site/MediaWikiSite.php b/includes/site/MediaWikiSite.php index 6734d5f70c..f31a77d3a4 100644 --- a/includes/site/MediaWikiSite.php +++ b/includes/site/MediaWikiSite.php @@ -40,8 +40,6 @@ class MediaWikiSite extends Site { const PATH_PAGE = 'page_path'; /** - * Constructor. - * * @since 1.21 * * @param string $type diff --git a/includes/site/Site.php b/includes/site/Site.php index 28f19f9abf..31e1590933 100644 --- a/includes/site/Site.php +++ b/includes/site/Site.php @@ -122,8 +122,6 @@ class Site implements Serializable { protected $internalId = null; /** - * Constructor. - * * @since 1.21 * * @param string $type diff --git a/includes/specials/SpecialActiveusers.php b/includes/specials/SpecialActiveusers.php index e7c9423c7f..902878781c 100644 --- a/includes/specials/SpecialActiveusers.php +++ b/includes/specials/SpecialActiveusers.php @@ -28,9 +28,6 @@ */ class SpecialActiveUsers extends SpecialPage { - /** - * Constructor - */ public function __construct() { parent::__construct( 'Activeusers' ); } diff --git a/includes/specials/SpecialAllMessages.php b/includes/specials/SpecialAllMessages.php index 405670921b..9e66447fe3 100644 --- a/includes/specials/SpecialAllMessages.php +++ b/includes/specials/SpecialAllMessages.php @@ -33,9 +33,6 @@ class SpecialAllMessages extends SpecialPage { */ protected $table; - /** - * Constructor - */ public function __construct() { parent::__construct( 'Allmessages' ); } diff --git a/includes/specials/SpecialAllPages.php b/includes/specials/SpecialAllPages.php index 17f6cca4ac..4d84e316ce 100644 --- a/includes/specials/SpecialAllPages.php +++ b/includes/specials/SpecialAllPages.php @@ -44,8 +44,6 @@ class SpecialAllPages extends IncludableSpecialPage { protected $nsfromMsg = 'allpagesfrom'; /** - * Constructor - * * @param string $name Name of the special page, as seen in links and URLs (default: 'Allpages') */ function __construct( $name = 'Allpages' ) { diff --git a/includes/specials/SpecialImport.php b/includes/specials/SpecialImport.php index a2930fcebe..a827e89263 100644 --- a/includes/specials/SpecialImport.php +++ b/includes/specials/SpecialImport.php @@ -46,9 +46,6 @@ class SpecialImport extends SpecialPage { private $pageLinkDepth; private $importSources; - /** - * Constructor - */ public function __construct() { parent::__construct( 'Import', 'import' ); } diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index 1a8dccf4de..dee2968d05 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -29,9 +29,7 @@ * @ingroup SpecialPage */ class SpecialListUsers extends IncludableSpecialPage { - /** - * Constructor - */ + public function __construct() { parent::__construct( 'Listusers' ); } diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 073e58df15..4cdc78f341 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -33,7 +33,6 @@ use MediaWiki\MediaWikiServices; */ class SpecialUpload extends SpecialPage { /** - * Constructor : initialise object * Get data POSTed through the form and assign them to the object * @param WebRequest $request Data posted. */ diff --git a/includes/tidy/RemexCompatMunger.php b/includes/tidy/RemexCompatMunger.php index dbcf568c05..a797398d2e 100644 --- a/includes/tidy/RemexCompatMunger.php +++ b/includes/tidy/RemexCompatMunger.php @@ -81,8 +81,6 @@ class RemexCompatMunger implements TreeHandler { ]; /** - * Constructor - * * @param Serializer $serializer */ public function __construct( Serializer $serializer ) { diff --git a/includes/user/UserRightsProxy.php b/includes/user/UserRightsProxy.php index 4df73f7328..98586e76c7 100644 --- a/includes/user/UserRightsProxy.php +++ b/includes/user/UserRightsProxy.php @@ -29,8 +29,6 @@ use Wikimedia\Rdbms\IDatabase; class UserRightsProxy { /** - * Constructor. - * * @see newFromId() * @see newFromName() * @param IDatabase $db Db connection diff --git a/includes/utils/FileContentsHasher.php b/includes/utils/FileContentsHasher.php index c74b04de2d..afe9c0a0f0 100644 --- a/includes/utils/FileContentsHasher.php +++ b/includes/utils/FileContentsHasher.php @@ -27,9 +27,6 @@ class FileContentsHasher { /** @var FileContentsHasher */ private static $instance; - /** - * Constructor. - */ public function __construct() { $this->cache = ObjectCache::getLocalServerInstance( 'hash' ); } diff --git a/languages/ConverterRule.php b/languages/ConverterRule.php index e51a8edbdb..8dfe00f88c 100644 --- a/languages/ConverterRule.php +++ b/languages/ConverterRule.php @@ -38,8 +38,6 @@ class ConverterRule { public $mUnidtable = [];// array of the translation in each variant /** - * Constructor - * * @param string $text The text between -{ and }- * @param LanguageConverter $converter */ diff --git a/maintenance/generateSitemap.php b/maintenance/generateSitemap.php index fb00bede07..fe0691b47a 100644 --- a/maintenance/generateSitemap.php +++ b/maintenance/generateSitemap.php @@ -140,9 +140,6 @@ class GenerateSitemap extends Maintenance { */ private $identifier; - /** - * Constructor - */ public function __construct() { parent::__construct(); $this->addDescription( 'Creates a sitemap for the site' ); diff --git a/maintenance/language/checkLanguage.inc b/maintenance/language/checkLanguage.inc index cf0acdeaad..9e9fd3eeec 100644 --- a/maintenance/language/checkLanguage.inc +++ b/maintenance/language/checkLanguage.inc @@ -40,7 +40,6 @@ class CheckLanguageCLI { private $includeExif = false; /** - * Constructor. * @param array $options Options for script. */ public function __construct( array $options ) { @@ -557,7 +556,6 @@ class CheckExtensionsCLI extends CheckLanguageCLI { private $extensions; /** - * Constructor. * @param array $options Options for script. * @param string $extension The extension name (or names). */ -- 2.20.1