Add/update phpdoc
authorReedy <reedy@wikimedia.org>
Sat, 7 Nov 2015 21:25:04 +0000 (21:25 +0000)
committerReedy <reedy@wikimedia.org>
Sat, 7 Nov 2015 21:25:04 +0000 (21:25 +0000)
Change-Id: I9cb6f041a0242c3257a24aac6538f7fbbca60cb0

includes/api/ApiContinuationManager.php
includes/api/ApiMessage.php
includes/api/ApiOpenSearch.php
includes/api/ApiResult.php

index 354f4e7..74d0352 100644 (file)
@@ -39,6 +39,7 @@ class ApiContinuationManager {
         * @param ApiBase $module Module starting the continuation
         * @param ApiBase[] $allModules Contains ApiBase instances that will be executed
         * @param array $generatedModules Names of modules that depend on the generator
+        * @throws UsageException
         */
        public function __construct(
                ApiBase $module, array $allModules = array(), array $generatedModules = array()
index 370911a..5c3434f 100644 (file)
@@ -172,7 +172,6 @@ class ApiRawMessage extends RawMessage implements IApiMessage {
         *  - string: passed to RawMessage::__construct
         * @param string|null $code
         * @param array|null $data
-        * @return ApiMessage
         */
        public function __construct( $msg, $code = null, array $data = null ) {
                if ( $msg instanceof RawMessage ) {
index f25f2d3..5ce43cc 100644 (file)
@@ -311,7 +311,7 @@ class ApiOpenSearch extends ApiBase {
         * Extension:ActiveAbstract.
         *
         * @param string $text
-        * @param int $len Target length; actual result will continue to the end of a sentence.
+        * @param int $length Target length; actual result will continue to the end of a sentence.
         * @return string
         */
        public static function trimExtract( $text, $length ) {
index 3468cf6..e28cb82 100644 (file)
@@ -327,6 +327,7 @@ class ApiResult implements ApiSerializable {
        /**
         * Validate a value for addition to the result
         * @param mixed $value
+        * @return array|mixed|string
         */
        private static function validateValue( $value ) {
                global $wgContLang;
@@ -738,7 +739,7 @@ class ApiResult implements ApiSerializable {
         * Set the array data type for a path
         * @since 1.25
         * @param array|string|null $path See ApiResult::addValue()
-        * @param string $type See ApiResult::META_TYPE
+        * @param string $tag See ApiResult::META_TYPE
         * @param string $kvpKeyName See ApiResult::META_KVP_KEY_NAME
         */
        public function addArrayType( $path, $tag, $kvpKeyName = null ) {
@@ -766,7 +767,7 @@ class ApiResult implements ApiSerializable {
         * Set the array data type for a path recursively
         * @since 1.25
         * @param array|string|null $path See ApiResult::addValue()
-        * @param string $type See ApiResult::META_TYPE
+        * @param string $tag See ApiResult::META_TYPE
         * @param string $kvpKeyName See ApiResult::META_KVP_KEY_NAME
         */
        public function addArrayTypeRecursive( $path, $tag, $kvpKeyName = null ) {
@@ -796,7 +797,7 @@ class ApiResult implements ApiSerializable {
         *
         * @see ApiResult::getResultData()
         * @since 1.25
-        * @param array $data
+        * @param array $dataIn
         * @param array $transforms
         * @return array|object
         */