Remove auto-generated and empty lines in comments

… and add the missing newline after the initial <?php.

Change-Id: I83bbbb1504e4b2bd97eec63c7626d34c655c3197
This commit is contained in:
Thiemo Kreuz 2020-03-17 09:46:56 +01:00
parent 894ae3a3fc
commit 7a4df9b019
28 changed files with 5 additions and 31 deletions

View file

@ -46,7 +46,6 @@ class ContentSecurityPolicy {
private $extraStyleSrc = [];
/**
*
* @note As a general rule, you would not construct this class directly
* but use the instance from OutputPage::getCSP()
* @internal

View file

@ -8063,7 +8063,6 @@ $wgExemptFromUserRobotsControl = null;
*/
/**
*
* WARNING: SECURITY THREAT - debug use only
*
* Disables many security checks in the API for debugging purposes.

View file

@ -42,7 +42,6 @@ class PageHTMLHandler extends LatestPageContentHandler {
private $htmlResponse;
/**
* PageHTMLHandler constructor.
* @param Config $config
* @param PermissionManager $permissionManager
* @param RevisionLookup $revisionLookup

View file

@ -1,6 +1,5 @@
<?php
/**
*
* This program 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

View file

@ -614,7 +614,6 @@ class ApiQueryImageInfo extends ApiQueryBase {
}
/**
*
* @param array $metadata
* @param ApiResult $result
* @return array

View file

@ -103,7 +103,6 @@ abstract class ChangesListFilter {
protected $priority;
/**
*
* @var string
*/
protected $defaultHighlightColor;

View file

@ -57,7 +57,6 @@ final class ContentHandlerFactory implements IContentHandlerFactory {
private $objectFactory;
/**
* ContentHandlerFactory constructor.
* @since 1.35
* @internal Use @see MediaWikiServices::getContentHandlerFactory
*

View file

@ -36,8 +36,6 @@ class UnsupportedSlotDiffRenderer extends SlotDiffRenderer {
private $localizer;
/**
* UnsupportedSlotDiffRenderer constructor.
*
* @param MessageLocalizer $localizer
*/
public function __construct( MessageLocalizer $localizer ) {

View file

@ -77,8 +77,6 @@ class XmlDumpWriter {
private $contentMode;
/**
* XmlDumpWriter constructor.
*
* @param int $contentMode WRITE_CONTENT or WRITE_STUB.
* @param string $schemaVersion which schema version the generated XML should comply to.
* One of the values from self::$supportedSchemas, using the XML_DUMP_SCHEMA_VERSION_XX

View file

@ -271,7 +271,6 @@ abstract class DatabaseUpdater {
}
/**
*
* @since 1.19
*
* @param string $tableName
@ -283,7 +282,6 @@ abstract class DatabaseUpdater {
}
/**
*
* @since 1.20
*
* @param string $tableName
@ -308,7 +306,6 @@ abstract class DatabaseUpdater {
}
/**
*
* @since 1.20
*
* @param string $tableName
@ -366,7 +363,6 @@ abstract class DatabaseUpdater {
}
/**
*
* @since 1.20
*
* @param string $tableName

View file

@ -33,7 +33,6 @@ class InstallException extends \MWException {
private $status;
/**
* InstallException constructor.
* @param \Status $status State when an exception occurs
* @param string $message The Exception message to throw
* @param int $code The Exception code

View file

@ -55,7 +55,6 @@ class SqliteInstaller extends DatabaseInstaller {
}
/**
*
* @return Status
*/
public function checkPrerequisites() {

View file

@ -1,4 +1,5 @@
<?php
namespace Wikimedia\Rdbms;
use Doctrine\DBAL\Platforms\AbstractPlatform;

View file

@ -1,4 +1,5 @@
<?php
namespace Wikimedia\Rdbms;
use Doctrine\DBAL\Platforms\MySqlPlatform;

View file

@ -1,4 +1,5 @@
<?php
namespace Wikimedia\Rdbms;
/**

View file

@ -30,7 +30,6 @@ class SearchSuggestionSet {
private $suggestions = [];
/**
*
* @var array
*/
private $pageMap = [];

View file

@ -27,7 +27,6 @@ class SqlSearchResult extends RevisionSearchResult {
private $terms;
/**
* SqlSearchResult constructor.
* @param Title $title
* @param string[] $terms list of parsed terms
*/

View file

@ -9,7 +9,6 @@ class SpecialChangeContentModel extends FormSpecialPage {
private $contentHandlerFactory;
/**
* SpecialChangeContentModel constructor.
* @param IContentHandlerFactory|null $contentHandlerFactory
* @internal use @see SpecialPageFactory::getPage
*/

View file

@ -69,7 +69,6 @@ class SpecialFileDuplicateSearch extends QueryPage {
}
/**
*
* @param array $dupes Array of File objects
*/
function showList( $dupes ) {
@ -202,7 +201,6 @@ class SpecialFileDuplicateSearch extends QueryPage {
}
/**
*
* @param Skin $skin
* @param File $result
* @return string HTML

View file

@ -22,7 +22,6 @@
*/
/**
*
* @ingroup SpecialPage
*/
class SpecialLongPages extends SpecialShortPages {

View file

@ -132,7 +132,6 @@ class SpecialPageLanguage extends FormSpecialPage {
}
/**
*
* @param array $data
* @return Status
*/

View file

@ -1,6 +1,5 @@
<?php
/**
*
* To improve a translation please visit https://translatewiki.net
*
* @ingroup Language

View file

@ -109,7 +109,6 @@
},
/**
*
* @param {string} locale
* @param {string} messageKey
* @return {boolean}

View file

@ -61,7 +61,6 @@ class ExifRotationTest extends MediaWikiMediaTestCase {
}
/**
*
* @dataProvider provideFiles
*/
public function testRotationRendering( $name, $type, $info, $thumbs ) {
@ -167,7 +166,6 @@ class ExifRotationTest extends MediaWikiMediaTestCase {
}
/**
*
* @dataProvider provideFilesNoAutoRotate
*/
public function testRotationRenderingNoAutoRotate( $name, $type, $info, $thumbs ) {

View file

@ -22,7 +22,6 @@ class JpegPixelFormatTest extends MediaWikiMediaTestCase {
}
/**
*
* @dataProvider providePixelFormats
* @covers BitmapHandler::imageMagickSubsampling
*/

View file

@ -25,8 +25,6 @@ class DumpAsserter {
protected $schemaVersion;
/**
* DumpAsserts constructor.
*
* @param string $schemaVersion see XML_DUMP_SCHEMA_VERSION_XX
*/
public function __construct( $schemaVersion ) {

View file

@ -1,4 +1,5 @@
<?php
declare( strict_types = 1 );
use MediaWiki\FileBackend\FSFile\TempFSFileFactory;

View file

@ -1,4 +1,5 @@
<?php
use MediaWiki\BadFileLookup;
use MediaWiki\Config\ServiceOptions;
use MediaWiki\Languages\LanguageConverterFactory;