Add missing type to @param documentation
authorUmherirrender <umherirrender_de.wp@web.de>
Fri, 11 Aug 2017 15:46:31 +0000 (17:46 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 11 Aug 2017 18:37:35 +0000 (20:37 +0200)
Change-Id: I6b2c9c7af9a281fe457099cc3a336a60a25e74aa

31 files changed:
includes/OutputPage.php
includes/PHPVersionCheck.php
includes/api/ApiCSPReport.php
includes/collation/NumericUppercaseCollation.php
includes/content/JsonContent.php
includes/content/TextContent.php
includes/installer/SqliteInstaller.php
includes/libs/IEUrlExtension.php
includes/libs/mime/IEContentAnalyzer.php
includes/libs/mime/XmlTypeCheck.php
includes/libs/rdbms/TransactionProfiler.php
includes/libs/rdbms/database/Database.php
includes/libs/rdbms/encasing/Blob.php
includes/media/MediaHandler.php
includes/media/WebP.php
includes/page/ImagePage.php
includes/search/NullIndexField.php
includes/search/SearchIndexField.php
includes/search/SearchIndexFieldDefinition.php
includes/site/SiteImporter.php
includes/specialpage/AuthManagerSpecialPage.php
includes/specialpage/LoginSignupSpecialPage.php
includes/specials/pagers/ProtectedPagesPager.php
languages/Language.php
languages/classes/LanguageEn.php
tests/parser/ParserTestRunner.php
tests/phpunit/includes/WatchedItemQueryServiceUnitTest.php
tests/phpunit/includes/WatchedItemStoreUnitTest.php
tests/phpunit/includes/content/WikitextStructureTest.php
tests/phpunit/includes/libs/objectcache/WANObjectCacheTest.php
tests/phpunit/includes/search/SearchIndexFieldTest.php

index 8f62a85..fd002d1 100644 (file)
@@ -1963,7 +1963,7 @@ class OutputPage extends ContextSource {
        }
 
        /**
        }
 
        /**
-        * @param $maxage
+        * @param int $maxage
         * @deprecated since 1.27 Use setCdnMaxage() instead
         */
        public function setSquidMaxage( $maxage ) {
         * @deprecated since 1.27 Use setCdnMaxage() instead
         */
        public function setSquidMaxage( $maxage ) {
index c8872d2..cd5bf54 100644 (file)
@@ -231,9 +231,9 @@ HTML;
        /**
         * Returns an error page, which is suitable for output to the end user via a web browser.
         *
        /**
         * Returns an error page, which is suitable for output to the end user via a web browser.
         *
-        * @param $title
-        * @param $longHtml
-        * @param $shortText
+        * @param string $title
+        * @param string $longHtml
+        * @param string $shortText
         * @return string
         */
        function getIndexErrorOutput( $title, $longHtml, $shortText ) {
         * @return string
         */
        function getIndexErrorOutput( $title, $longHtml, $shortText ) {
index 3a78c13..a4a46bb 100644 (file)
@@ -63,9 +63,9 @@ class ApiCSPReport extends ApiBase {
 
        /**
         * Log CSP report, with a different severity depending on $flags
 
        /**
         * Log CSP report, with a different severity depending on $flags
-        * @param $flags Array Flags for this report
-        * @param $logLine String text of log entry
-        * @param $context Array logging context
+        * @param array $flags Flags for this report
+        * @param string $logLine text of log entry
+        * @param array $context logging context
         */
        private function logReport( $flags, $logLine, $context ) {
                if ( in_array( 'false-positive', $flags ) ) {
         */
        private function logReport( $flags, $logLine, $context ) {
                if ( in_array( 'false-positive', $flags ) ) {
@@ -80,8 +80,8 @@ class ApiCSPReport extends ApiBase {
        /**
         * Get extra notes about the report.
         *
        /**
         * Get extra notes about the report.
         *
-        * @param $report Array The CSP report
-        * @return Array
+        * @param array $report The CSP report
+        * @return array
         */
        private function getFlags( $report ) {
                $reportOnly = $this->getParameter( 'reportonly' );
         */
        private function getFlags( $report ) {
                $reportOnly = $this->getParameter( 'reportonly' );
@@ -155,9 +155,9 @@ class ApiCSPReport extends ApiBase {
        /**
         * Get text of log line.
         *
        /**
         * Get text of log line.
         *
-        * @param $flags Array of additional markers for this report
-        * @param $report Array the csp report
-        * @return String Text to put in log
+        * @param array $flags of additional markers for this report
+        * @param array $report the csp report
+        * @return string Text to put in log
         */
        private function generateLogLine( $flags, $report ) {
                $flagText = '';
         */
        private function generateLogLine( $flags, $report ) {
                $flagText = '';
@@ -177,8 +177,8 @@ class ApiCSPReport extends ApiBase {
        /**
         * Stop processing the request, and output/log an error
         *
        /**
         * Stop processing the request, and output/log an error
         *
-        * @param $code String error code
-        * @param $method String method that made error
+        * @param string $code error code
+        * @param string $method method that made error
         * @throws ApiUsageException Always
         */
        private function error( $code, $method ) {
         * @throws ApiUsageException Always
         */
        private function error( $code, $method ) {
index 8dd7a38..da78a05 100644 (file)
@@ -40,7 +40,7 @@ class NumericUppercaseCollation extends UppercaseCollation {
        private $digitTransformLang;
 
        /**
        private $digitTransformLang;
 
        /**
-        * @param $lang Language How to convert digits.
+        * @param Language $lang How to convert digits.
         *  For example, if given language "my" than ၇ is treated like 7.
         *
         * It is expected that usually this is given $wgContLang.
         *  For example, if given language "my" than ၇ is treated like 7.
         *
         * It is expected that usually this is given $wgContLang.
@@ -76,8 +76,8 @@ class NumericUppercaseCollation extends UppercaseCollation {
         *
         * based on Language::parseFormattedNumber but without commas.
         *
         *
         * based on Language::parseFormattedNumber but without commas.
         *
-        * @param $string String sortkey to unlocalize digits of
-        * @return String Sortkey with all localized digits replaced with ASCII digits.
+        * @param string $string sortkey to unlocalize digits of
+        * @return string Sortkey with all localized digits replaced with ASCII digits.
         */
        private function convertDigits( $string ) {
                $table = $this->digitTransformLang->digitTransformTable();
         */
        private function convertDigits( $string ) {
                $table = $this->digitTransformLang->digitTransformTable();
index 2f45547..2b94f3f 100644 (file)
@@ -22,6 +22,7 @@ class JsonContent extends TextContent {
 
        /**
         * @param string $text JSON
 
        /**
         * @param string $text JSON
+        * @param string $modelId
         */
        public function __construct( $text, $modelId = CONTENT_MODEL_JSON ) {
                parent::__construct( $text, $modelId );
         */
        public function __construct( $text, $modelId = CONTENT_MODEL_JSON ) {
                parent::__construct( $text, $modelId );
index 45d00c5..5f585bc 100644 (file)
@@ -157,7 +157,7 @@ class TextContent extends AbstractContent {
         * changes.
         *
         * @since 1.28
         * changes.
         *
         * @since 1.28
-        * @param $text
+        * @param string $text
         * @return string
         */
        public static function normalizeLineEndings( $text ) {
         * @return string
         */
        public static function normalizeLineEndings( $text ) {
index cc8159c..d60d801 100644 (file)
@@ -267,8 +267,8 @@ EOT;
        }
 
        /**
        }
 
        /**
-        * @param $dir
-        * @param $db
+        * @param string $dir
+        * @param string $db
         * @return Status
         */
        protected function makeStubDBFile( $dir, $db ) {
         * @return Status
         */
        protected function makeStubDBFile( $dir, $db ) {
index e55bebc..2d1c58b 100644 (file)
@@ -133,8 +133,8 @@ class IEUrlExtension {
        /**
         * Returns a variant of $url which will pass isUrlExtensionBad() but has the
         * same GET parameters, or false if it can't figure one out.
        /**
         * Returns a variant of $url which will pass isUrlExtensionBad() but has the
         * same GET parameters, or false if it can't figure one out.
-        * @param $url
-        * @param $extWhitelist array
+        * @param string $url
+        * @param array $extWhitelist
         * @return bool|string
         */
        public static function fixUrlForIE6( $url, $extWhitelist = [] ) {
         * @return bool|string
         */
        public static function fixUrlForIE6( $url, $extWhitelist = [] ) {
@@ -251,7 +251,7 @@ class IEUrlExtension {
         * or a specification in the style of a User-Agent header, such as
         * "Apache/1.3.34 (Unix) mod_ssl/2.8.25 OpenSSL/0.9.8a PHP/4.4.2"
         *
         * or a specification in the style of a User-Agent header, such as
         * "Apache/1.3.34 (Unix) mod_ssl/2.8.25 OpenSSL/0.9.8a PHP/4.4.2"
         *
-        * @param $serverSoftware
+        * @param string $serverSoftware
         * @return bool
         */
        public static function haveUndecodedRequestUri( $serverSoftware ) {
         * @return bool
         */
        public static function haveUndecodedRequestUri( $serverSoftware ) {
index badcb2b..dfc7c4b 100644 (file)
@@ -344,7 +344,7 @@ class IEContentAnalyzer {
        /**
         * Translate a MIME type from IE's idiosyncratic private types into
         * more commonly understood type strings
        /**
         * Translate a MIME type from IE's idiosyncratic private types into
         * more commonly understood type strings
-        * @param $type
+        * @param string $type
         * @return string
         */
        public function translateMimeType( $type ) {
         * @return string
         */
        public function translateMimeType( $type ) {
@@ -383,10 +383,10 @@ class IEContentAnalyzer {
 
        /**
         * Get the MIME type for a given named version
 
        /**
         * Get the MIME type for a given named version
-        * @param $version
-        * @param $fileName
-        * @param $chunk
-        * @param $proposed
+        * @param string $version
+        * @param string $fileName
+        * @param string $chunk
+        * @param string $proposed
         * @return bool|string
         */
        protected function getMimeTypeForVersion( $version, $fileName, $chunk, $proposed ) {
         * @return bool|string
         */
        protected function getMimeTypeForVersion( $version, $fileName, $chunk, $proposed ) {
@@ -553,8 +553,8 @@ class IEContentAnalyzer {
        /**
         * Check for text headers at the start of the chunk
         * Confirmed same in 5 and 7.
        /**
         * Check for text headers at the start of the chunk
         * Confirmed same in 5 and 7.
-        * @param $version
-        * @param $chunk
+        * @param string $version
+        * @param string $chunk
         * @return bool|string
         */
        private function checkTextHeaders( $version, $chunk ) {
         * @return bool|string
         */
        private function checkTextHeaders( $version, $chunk ) {
@@ -579,8 +579,8 @@ class IEContentAnalyzer {
        /**
         * Check for binary headers at the start of the chunk
         * Confirmed same in 5 and 7.
        /**
         * Check for binary headers at the start of the chunk
         * Confirmed same in 5 and 7.
-        * @param $version
-        * @param $chunk
+        * @param string $version
+        * @param string $chunk
         * @return bool|string
         */
        private function checkBinaryHeaders( $version, $chunk ) {
         * @return bool|string
         */
        private function checkBinaryHeaders( $version, $chunk ) {
@@ -680,8 +680,8 @@ class IEContentAnalyzer {
        /**
         * Do heuristic checks on the bulk of the data sample.
         * Search for HTML tags.
        /**
         * Do heuristic checks on the bulk of the data sample.
         * Search for HTML tags.
-        * @param $version
-        * @param $chunk
+        * @param string $version
+        * @param string $chunk
         * @return array
         */
        protected function sampleData( $version, $chunk ) {
         * @return array
         */
        protected function sampleData( $version, $chunk ) {
@@ -832,8 +832,8 @@ class IEContentAnalyzer {
        }
 
        /**
        }
 
        /**
-        * @param $version
-        * @param $type
+        * @param string $version
+        * @param string|null $type
         * @return int|string
         */
        protected function getDataFormat( $version, $type ) {
         * @return int|string
         */
        protected function getDataFormat( $version, $type ) {
index e48cf62..ea7f9a6 100644 (file)
@@ -275,7 +275,7 @@ class XmlTypeCheck {
 
        /**
         * Get all of the attributes for an XMLReader's current node
 
        /**
         * Get all of the attributes for an XMLReader's current node
-        * @param $r XMLReader
+        * @param XMLReader $r
         * @return array of attributes
         */
        private function getAttributesArray( XMLReader $r ) {
         * @return array of attributes
         */
        private function getAttributesArray( XMLReader $r ) {
@@ -293,8 +293,8 @@ class XmlTypeCheck {
        }
 
        /**
        }
 
        /**
-        * @param $name element or attribute name, maybe with a full or short prefix
-        * @param $namespaceURI the namespaceURI
+        * @param string $name element or attribute name, maybe with a full or short prefix
+        * @param string $namespaceURI the namespaceURI
         * @return string the name prefixed with namespaceURI
         */
        private function expandNS( $name, $namespaceURI ) {
         * @return string the name prefixed with namespaceURI
         */
        private function expandNS( $name, $namespaceURI ) {
@@ -307,8 +307,8 @@ class XmlTypeCheck {
        }
 
        /**
        }
 
        /**
-        * @param $name
-        * @param $attribs
+        * @param string $name
+        * @param string $attribs
         */
        private function elementOpen( $name, $attribs ) {
                $this->elementDataContext[] = [ $name, $attribs ];
         */
        private function elementOpen( $name, $attribs ) {
                $this->elementDataContext[] = [ $name, $attribs ];
@@ -338,7 +338,7 @@ class XmlTypeCheck {
        }
 
        /**
        }
 
        /**
-        * @param $data
+        * @param string $data
         */
        private function elementData( $data ) {
                // Collect any data here, and we'll run the callback in elementClose
         */
        private function elementData( $data ) {
                // Collect any data here, and we'll run the callback in elementClose
@@ -346,8 +346,8 @@ class XmlTypeCheck {
        }
 
        /**
        }
 
        /**
-        * @param $target
-        * @param $data
+        * @param string $target
+        * @param string $data
         */
        private function processingInstructionHandler( $target, $data ) {
                $callbackReturn = false;
         */
        private function processingInstructionHandler( $target, $data ) {
                $callbackReturn = false;
@@ -452,7 +452,7 @@ class XmlTypeCheck {
         *
         * If there is an error parsing the dtd, sets wellFormed to false.
         *
         *
         * If there is an error parsing the dtd, sets wellFormed to false.
         *
-        * @param $dtd string
+        * @param string $dtd
         * @return array Possibly containing keys publicid, systemid, type and internal.
         */
        private function parseDTD( $dtd ) {
         * @return array Possibly containing keys publicid, systemid, type and internal.
         */
        private function parseDTD( $dtd ) {
index 43b6f88..8ac4161 100644 (file)
@@ -118,7 +118,7 @@ class TransactionProfiler implements LoggerAwareInterface {
         * With conflicting expectations, the most narrow ones will be used
         *
         * @param array $expects Map of (event => limit)
         * With conflicting expectations, the most narrow ones will be used
         *
         * @param array $expects Map of (event => limit)
-        * @param $fname
+        * @param string $fname
         * @since 1.26
         */
        public function setExpectations( array $expects, $fname ) {
         * @since 1.26
         */
        public function setExpectations( array $expects, $fname ) {
index 0726b5a..7349b63 100644 (file)
@@ -818,7 +818,7 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware
        }
 
        /**
        }
 
        /**
-        * @param $sql
+        * @param string $sql
         * @return string|null
         */
        protected function getQueryVerb( $sql ) {
         * @return string|null
         */
        protected function getQueryVerb( $sql ) {
index db5b7e5..e2d685c 100644 (file)
@@ -7,7 +7,7 @@ class Blob implements IBlob {
        protected $mData;
 
        /**
        protected $mData;
 
        /**
-        * @param $data string
+        * @param string $data
         */
        public function __construct( $data ) {
                $this->mData = $data;
         */
        public function __construct( $data ) {
                $this->mData = $data;
index ee8888c..502fce3 100644 (file)
@@ -913,11 +913,11 @@ abstract class MediaHandler {
        }
 
        /**
        }
 
        /**
-       * Get useful response headers for GET/HEAD requests for a file with the given metadata
-       * @param $metadata Array Contains this handler's unserialized getMetadata() for a file
-       * @return Array
-       * @since 1.30
-       */
+        * Get useful response headers for GET/HEAD requests for a file with the given metadata
+        * @param array $metadata Contains this handler's unserialized getMetadata() for a file
+        * @return array
+        * @since 1.30
+        */
        public function getContentHeaders( $metadata ) {
                return [];
        }
        public function getContentHeaders( $metadata ) {
                return [];
        }
index 4555c19..541cac2 100644 (file)
@@ -245,7 +245,7 @@ class WebPHandler extends BitmapHandler {
        }
 
        /**
        }
 
        /**
-        * @param $file
+        * @param File $file
         * @return bool True, not all browsers support WebP
         */
        public function mustRender( $file ) {
         * @return bool True, not all browsers support WebP
         */
        public function mustRender( $file ) {
@@ -253,7 +253,7 @@ class WebPHandler extends BitmapHandler {
        }
 
        /**
        }
 
        /**
-        * @param $file
+        * @param File $file
         * @return bool False if we are unable to render this image
         */
        public function canRender( $file ) {
         * @return bool False if we are unable to render this image
         */
        public function canRender( $file ) {
@@ -286,9 +286,9 @@ class WebPHandler extends BitmapHandler {
        /**
         * Render files as PNG
         *
        /**
         * Render files as PNG
         *
-        * @param $ext
-        * @param $mime
-        * @param $params
+        * @param string $ext
+        * @param string $mime
+        * @param array|null $params
         * @return array
         */
        public function getThumbType( $ext, $mime, $params = null ) {
         * @return array
         */
        public function getThumbType( $ext, $mime, $params = null ) {
index b870831..0e3eaa5 100644 (file)
@@ -621,8 +621,8 @@ EOT
        /**
         * Make the text under the image to say what size preview
         *
        /**
         * Make the text under the image to say what size preview
         *
-        * @param $params array parameters for thumbnail
-        * @param $sizeLinkBigImagePreview HTML for the current size
+        * @param array $params parameters for thumbnail
+        * @param string $sizeLinkBigImagePreview HTML for the current size
         * @return string HTML output
         */
        private function getThumbPrevText( $params, $sizeLinkBigImagePreview ) {
         * @return string HTML output
         */
        private function getThumbPrevText( $params, $sizeLinkBigImagePreview ) {
index 32f60bc..5ecf5c8 100644 (file)
@@ -26,7 +26,7 @@ class NullIndexField implements SearchIndexField {
 
        /**
         * Check if flag is set.
 
        /**
         * Check if flag is set.
-        * @param $flag
+        * @param int $flag
         * @return int 0 if unset, !=0 if set
         */
        public function checkFlag( $flag ) {
         * @return int 0 if unset, !=0 if set
         */
        public function checkFlag( $flag ) {
index a348d6d..eb72662 100644 (file)
@@ -61,7 +61,7 @@ interface SearchIndexField {
        public function setFlag( $flag, $unset = false );
        /**
         * Check if flag is set.
        public function setFlag( $flag, $unset = false );
        /**
         * Check if flag is set.
-        * @param $flag
+        * @param int $flag
         * @return int 0 if unset, !=0 if set
         */
        public function checkFlag( $flag );
         * @return int 0 if unset, !=0 if set
         */
        public function checkFlag( $flag );
index 9a637d8..3e008ae 100644 (file)
@@ -81,7 +81,7 @@ abstract class SearchIndexFieldDefinition implements SearchIndexField {
 
        /**
         * Check if flag is set.
 
        /**
         * Check if flag is set.
-        * @param $flag
+        * @param int $flag
         * @return int 0 if unset, !=0 if set
         */
        public function checkFlag( $flag ) {
         * @return int 0 if unset, !=0 if set
         */
        public function checkFlag( $flag ) {
index 42812e1..5e13d06 100644 (file)
@@ -191,7 +191,7 @@ class SiteImporter {
 
        /**
         * @param DOMElement $element
 
        /**
         * @param DOMElement $element
-        * @param $name
+        * @param string $name
         * @param string|null|bool $default
         *
         * @return null|string
         * @param string|null|bool $default
         *
         * @return null|string
index 9b77b73..500c2e9 100644 (file)
@@ -474,7 +474,7 @@ abstract class AuthManagerSpecialPage extends SpecialPage {
        /**
         * Submit handler callback for HTMLForm
         * @private
        /**
         * Submit handler callback for HTMLForm
         * @private
-        * @param $data array Submitted data
+        * @param array $data Submitted data
         * @return Status
         */
        public function handleFormSubmit( $data ) {
         * @return Status
         */
        public function handleFormSubmit( $data ) {
@@ -598,7 +598,7 @@ abstract class AuthManagerSpecialPage extends SpecialPage {
        /**
         * Adds a sequential tabindex starting from 1 to all form elements. This way the user can
         * use the tab key to traverse the form without having to step through all links and such.
        /**
         * Adds a sequential tabindex starting from 1 to all form elements. This way the user can
         * use the tab key to traverse the form without having to step through all links and such.
-        * @param $formDescriptor
+        * @param array &$formDescriptor
         */
        protected function addTabIndex( &$formDescriptor ) {
                $i = 1;
         */
        protected function addTabIndex( &$formDescriptor ) {
                $i = 1;
index 2dccee1..28277bc 100644 (file)
@@ -98,7 +98,7 @@ abstract class LoginSignupSpecialPage extends AuthManagerSpecialPage {
 
        /**
         * Load basic request parameters for this Special page.
 
        /**
         * Load basic request parameters for this Special page.
-        * @param $subPage
+        * @param string $subPage
         */
        private function loadRequestParameters( $subPage ) {
                if ( $this->mLoadedRequest ) {
         */
        private function loadRequestParameters( $subPage ) {
                if ( $this->mLoadedRequest ) {
@@ -1199,7 +1199,7 @@ abstract class LoginSignupSpecialPage extends AuthManagerSpecialPage {
 
        /**
         * Adds fields provided via the deprecated UserLoginForm / UserCreateForm hooks
 
        /**
         * Adds fields provided via the deprecated UserLoginForm / UserCreateForm hooks
-        * @param $fieldDefinitions array
+        * @param array $fieldDefinitions
         * @param FakeAuthTemplate $template
         * @return array
         */
         * @param FakeAuthTemplate $template
         * @return array
         */
index 45dced8..823b5da 100644 (file)
@@ -36,9 +36,9 @@ class ProtectedPagesPager extends TablePager {
        /**
         * @param SpecialProtectedpages $form
         * @param array $conds
        /**
         * @param SpecialProtectedpages $form
         * @param array $conds
-        * @param $type
-        * @param $level
-        * @param $namespace
+        * @param string $type
+        * @param string $level
+        * @param int $namespace
         * @param string $sizetype
         * @param int $size
         * @param bool $indefonly
         * @param string $sizetype
         * @param int $size
         * @param bool $indefonly
index 92dad9b..e8d2969 100644 (file)
@@ -203,7 +203,7 @@ class Language {
        /**
         * Create a language object for a given language code
         * @param string $code
        /**
         * Create a language object for a given language code
         * @param string $code
-        * @param $fallback boolean Whether we're going through language fallback chain
+        * @param bool $fallback Whether we're going through language fallback chain
         * @throws MWException
         * @return Language
         */
         * @throws MWException
         * @return Language
         */
index dcb7a91..1cfcd2c 100644 (file)
@@ -36,8 +36,8 @@ class EnConverter extends LanguageConverter {
         * Translates text into Pig Latin. This allows developers to test the language variants
         * functionality and user interface without having to switch wiki language away from default.
         *
         * Translates text into Pig Latin. This allows developers to test the language variants
         * functionality and user interface without having to switch wiki language away from default.
         *
-        * @param $text string
-        * @param $toVariant string
+        * @param string $text
+        * @param string $toVariant
         * @return string
         */
        function translate( $text, $toVariant ) {
         * @return string
         */
        function translate( $text, $toVariant ) {
index f694f39..c2f396b 100644 (file)
@@ -1529,7 +1529,7 @@ class ParserTestRunner {
        /**
         * Add articles to the test DB.
         *
        /**
         * Add articles to the test DB.
         *
-        * @param $articles Article info array from TestFileReader
+        * @param array $articles Article info array from TestFileReader
         */
        public function addArticles( $articles ) {
                global $wgContLang;
         */
        public function addArticles( $articles ) {
                global $wgContLang;
index 958d70a..4744875 100644 (file)
@@ -49,7 +49,7 @@ class WatchedItemQueryServiceUnitTest extends PHPUnit_Framework_TestCase {
        }
 
        /**
        }
 
        /**
-        * @param $mockDb
+        * @param PHPUnit_Framework_MockObject_MockObject|Database $mockDb
         * @return PHPUnit_Framework_MockObject_MockObject|LoadBalancer
         */
        private function getMockLoadBalancer( $mockDb ) {
         * @return PHPUnit_Framework_MockObject_MockObject|LoadBalancer
         */
        private function getMockLoadBalancer( $mockDb ) {
index 6c18599..950e220 100644 (file)
@@ -2030,7 +2030,7 @@ class WatchedItemStoreUnitTest extends MediaWikiTestCase {
        }
 
        /**
        }
 
        /**
-        * @param $text
+        * @param string $text
         * @param int $ns
         *
         * @return PHPUnit_Framework_MockObject_MockObject|Title
         * @param int $ns
         *
         * @return PHPUnit_Framework_MockObject_MockObject|Title
index 49907c8..f1b54f6 100644 (file)
@@ -8,7 +8,7 @@ class WikitextStructureTest extends MediaWikiLangTestCase {
 
        /**
         * Get parser output for Wiki text
 
        /**
         * Get parser output for Wiki text
-        * @param $text
+        * @param string $text
         * @return ParserOutput
         */
        private function getParserOutput( $text ) {
         * @return ParserOutput
         */
        private function getParserOutput( $text ) {
@@ -18,7 +18,7 @@ class WikitextStructureTest extends MediaWikiLangTestCase {
 
        /**
         * Get WikitextStructure for given text
 
        /**
         * Get WikitextStructure for given text
-        * @param $text
+        * @param string $text
         * @return WikiTextStructure
         */
        private function getStructure( $text ) {
         * @return WikiTextStructure
         */
        private function getStructure( $text ) {
index 9c4c9be..58a6d38 100644 (file)
@@ -912,7 +912,7 @@ class WANObjectCacheTest extends PHPUnit_Framework_TestCase {
        /**
         * @dataProvider getWithSetCallback_versions_provider
         * @param array $extOpts
        /**
         * @dataProvider getWithSetCallback_versions_provider
         * @param array $extOpts
-        * @param $versioned
+        * @param bool $versioned
         */
        public function testGetWithSetCallback_versions( array $extOpts, $versioned ) {
                $cache = $this->cache;
         */
        public function testGetWithSetCallback_versions( array $extOpts, $versioned ) {
                $cache = $this->cache;
index bb7508c..8b4119e 100644 (file)
@@ -18,11 +18,11 @@ class SearchIndexFieldTest extends MediaWikiTestCase {
 
        /**
         * @dataProvider getMergeCases
 
        /**
         * @dataProvider getMergeCases
-        * @param $t1
-        * @param $n1
-        * @param $t2
-        * @param $n2
-        * @param $result
+        * @param int $t1
+        * @param string $n1
+        * @param int $t2
+        * @param string $n2
+        * @param bool $result
         */
        public function testMerge( $t1, $n1, $t2, $n2, $result ) {
                $field1 =
         */
        public function testMerge( $t1, $n1, $t2, $n2, $result ) {
                $field1 =