From 7301b2514e834a6edb84de838320b2e5d55a6254 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thiemo=20M=C3=A4ttig?= Date: Fri, 15 Sep 2017 11:17:17 +0200 Subject: [PATCH] Fix a few minor mistakes in PHPDoc tags Change-Id: I2d5f876c9945ba21f8748562230170e3c7ea2ff2 --- includes/XmlJsCode.php | 2 +- includes/rcfeed/RedisPubSubFeedEngine.php | 2 +- includes/search/SearchNearMatcher.php | 3 +-- tests/phpunit/includes/libs/CSSMinTest.php | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/includes/XmlJsCode.php b/includes/XmlJsCode.php index 35a06071a2..1b90a1f20d 100644 --- a/includes/XmlJsCode.php +++ b/includes/XmlJsCode.php @@ -26,7 +26,7 @@ * @par Example: * @code * Xml::encodeJsVar( new XmlJsCode( 'a + b' ) ); - * @encode + * @endcode * * This returns "a + b". * diff --git a/includes/rcfeed/RedisPubSubFeedEngine.php b/includes/rcfeed/RedisPubSubFeedEngine.php index f0fcd7da74..5960989d54 100644 --- a/includes/rcfeed/RedisPubSubFeedEngine.php +++ b/includes/rcfeed/RedisPubSubFeedEngine.php @@ -33,7 +33,7 @@ * 'formatter' => 'JSONRCFeedFormatter', * 'uri' => "redis://127.0.0.1:6379/rc.$wgDBname", * ); - * @encode + * @endcode * * @since 1.22 */ diff --git a/includes/search/SearchNearMatcher.php b/includes/search/SearchNearMatcher.php index 8e8686542c..27046f3156 100644 --- a/includes/search/SearchNearMatcher.php +++ b/includes/search/SearchNearMatcher.php @@ -6,8 +6,7 @@ */ class SearchNearMatcher { /** - * Configuration object. - * @param Config $config + * @var Config */ protected $config; diff --git a/tests/phpunit/includes/libs/CSSMinTest.php b/tests/phpunit/includes/libs/CSSMinTest.php index d0121b15aa..0127c26035 100644 --- a/tests/phpunit/includes/libs/CSSMinTest.php +++ b/tests/phpunit/includes/libs/CSSMinTest.php @@ -163,7 +163,7 @@ class CSSMinTest extends MediaWikiTestCase { /** * @dataProvider provideIsRemoteUrl - * @cover CSSMin::isRemoteUrl + * @covers CSSMin::isRemoteUrl */ public function testIsRemoteUrl( $expect, $url ) { $this->assertEquals( CSSMinTestable::isRemoteUrl( $url ), $expect ); @@ -180,7 +180,7 @@ class CSSMinTest extends MediaWikiTestCase { /** * @dataProvider provideIsLocalUrls - * @cover CSSMin::isLocalUrl + * @covers CSSMin::isLocalUrl */ public function testIsLocalUrl( $expect, $url ) { $this->assertEquals( CSSMinTestable::isLocalUrl( $url ), $expect ); -- 2.20.1