From 73a514b574eb53cde6eb4aaf57c7a7a2e37d8251 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Mon, 5 Feb 2018 19:21:09 +0100 Subject: [PATCH] Remove superfluous spaces and semicolons in comments Change-Id: Ib4b452f1843ec250c8c1fcc2a738d80726b6135d --- includes/Title.php | 2 +- includes/api/ApiQueryBase.php | 2 +- includes/http/MWHttpRequest.php | 4 ++-- includes/interwiki/Interwiki.php | 2 +- includes/libs/MultiHttpClient.php | 2 +- includes/media/IPTC.php | 2 +- includes/media/MediaTransformOutput.php | 4 ++-- .../mediawiki.widgets/mw.widgets.CategoryMultiselectWidget.js | 2 +- tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index c4cf434126..9241f3d3b2 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -4500,7 +4500,7 @@ class Title implements LinkTarget { } if ( $this->isExternal() ) { - return true; // any interwiki link might be viewable, for all we know + return true; // any interwiki link might be viewable, for all we know } switch ( $this->mNamespace ) { diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index e0ab53adb6..f6e9a953d3 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -255,7 +255,7 @@ abstract class ApiQueryBase extends ApiBase { /** * Equivalent to addWhere(array($field => $value)) * @param string $field Field name - * @param string|string[] $value Value; ignored if null or empty array; + * @param string|string[] $value Value; ignored if null or empty array */ protected function addWhereFld( $field, $value ) { if ( $value !== null && !( is_array( $value ) && !$value ) ) { diff --git a/includes/http/MWHttpRequest.php b/includes/http/MWHttpRequest.php index ac16032ca3..f13461c797 100644 --- a/includes/http/MWHttpRequest.php +++ b/includes/http/MWHttpRequest.php @@ -49,7 +49,7 @@ abstract class MWHttpRequest implements LoggerAwareInterface { protected $reqHeaders = []; protected $url; protected $parsedUrl; - /** @var callable */ + /** @var callable */ protected $callback; protected $maxRedirects = 5; protected $followRedirects = false; @@ -79,7 +79,7 @@ abstract class MWHttpRequest implements LoggerAwareInterface { protected $profileName; /** - * @var LoggerInterface; + * @var LoggerInterface */ protected $logger; diff --git a/includes/interwiki/Interwiki.php b/includes/interwiki/Interwiki.php index 2156820578..5a996d9d11 100644 --- a/includes/interwiki/Interwiki.php +++ b/includes/interwiki/Interwiki.php @@ -32,7 +32,7 @@ class Interwiki { /** @var string The URL of the wiki, with "$1" as a placeholder for an article name. */ protected $mURL; - /** @var string The URL of the file api.php */ + /** @var string The URL of the file api.php */ protected $mAPI; /** @var string The name of the database (for a connection to be established diff --git a/includes/libs/MultiHttpClient.php b/includes/libs/MultiHttpClient.php index 3282ae2054..053a5ff45b 100644 --- a/includes/libs/MultiHttpClient.php +++ b/includes/libs/MultiHttpClient.php @@ -48,7 +48,7 @@ use Psr\Log\NullLogger; class MultiHttpClient implements LoggerAwareInterface { /** @var resource */ protected $multiHandle = null; // curl_multi handle - /** @var string|null SSL certificates path */ + /** @var string|null SSL certificates path */ protected $caBundlePath; /** @var int */ protected $connTimeout = 10; diff --git a/includes/media/IPTC.php b/includes/media/IPTC.php index 894043a4e5..ef7ed5f5a2 100644 --- a/includes/media/IPTC.php +++ b/includes/media/IPTC.php @@ -75,7 +75,7 @@ class IPTC { * Title, person. Not sure if this is best * approach since we no longer have the two fields * separate. each byline title entry corresponds to a - * specific byline. */ + * specific byline. */ $bylines = self::convIPTC( $val, $c ); if ( isset( $parsed['2#085'] ) ) { diff --git a/includes/media/MediaTransformOutput.php b/includes/media/MediaTransformOutput.php index 5366c4fa44..3506684a50 100644 --- a/includes/media/MediaTransformOutput.php +++ b/includes/media/MediaTransformOutput.php @@ -47,13 +47,13 @@ abstract class MediaTransformOutput { /** @var bool|string */ protected $page; - /** @var bool|string Filesystem path to the thumb */ + /** @var bool|string Filesystem path to the thumb */ protected $path; /** @var bool|string Language code, false if not set */ protected $lang; - /** @var bool|string Permanent storage path */ + /** @var bool|string Permanent storage path */ protected $storagePath = false; /** diff --git a/resources/src/mediawiki.widgets/mw.widgets.CategoryMultiselectWidget.js b/resources/src/mediawiki.widgets/mw.widgets.CategoryMultiselectWidget.js index 3f19509450..b3bcc0d07e 100644 --- a/resources/src/mediawiki.widgets/mw.widgets.CategoryMultiselectWidget.js +++ b/resources/src/mediawiki.widgets/mw.widgets.CategoryMultiselectWidget.js @@ -405,7 +405,7 @@ /** Search for existing categories with the exact title */ Exists: 2, - /** Search only subcategories */ + /** Search only subcategories */ SubCategories: 3, /** Search only parent categories */ diff --git a/tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php b/tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php index ac81b28c68..b1857cccf0 100644 --- a/tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php +++ b/tests/phpunit/includes/changes/RCCacheEntryFactoryTest.php @@ -18,7 +18,7 @@ class RCCacheEntryFactoryTest extends MediaWikiLangTestCase { private $testRecentChangesHelper; /** - * @var LinkRenderer; + * @var LinkRenderer */ private $linkRenderer; -- 2.20.1