/**
* Validate a value for addition to the result
* @param mixed $value
+ * @return array|mixed|string
*/
private static function validateValue( $value ) {
global $wgContLang;
* 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 ) {
* 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 ) {
*
* @see ApiResult::getResultData()
* @since 1.25
- * @param array $data
+ * @param array $dataIn
* @param array $transforms
* @return array|object
*/
// BC transformations
$boolKeys = null;
- $forceKVP = false;
if ( isset( $transforms['BC'] ) ) {
if ( !is_array( $transforms['BC'] ) ) {
throw new InvalidArgumentException( __METHOD__ . ':Value for "BC" must be an array' );