From bc1b025e8b391b16bad2648a3b705d11b56ed761 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Mon, 20 Jul 2015 15:54:06 +0200 Subject: [PATCH] Correct documentation of ChangeTags::buildTagFilterSelector Less duplication, more facts. Change-Id: I4d97d0be25d0cb271ca07fa63f16a5e2abfe8762 --- includes/changetags/ChangeTags.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/includes/changetags/ChangeTags.php b/includes/changetags/ChangeTags.php index 95f48161d9..1e26caa019 100644 --- a/includes/changetags/ChangeTags.php +++ b/includes/changetags/ChangeTags.php @@ -611,14 +611,11 @@ class ChangeTags { * Build a text box to select a change tag * * @param string $selected Tag to select by default - * @param bool $fullForm - * - if false, then it returns an array of (label, form). - * - if true, it returns an entire form around the selector. - * @param Title $title Title object to send the form to. - * Used when, and only when $fullForm is true. + * @param bool $fullForm Affects return value, see below + * @param Title $title Title object to send the form to. Used only if $fullForm is true. * @return string|array - * - if $fullForm is false: Array with - * - if $fullForm is true: String, html fragment + * - if $fullForm is false: an array of (label, selector). + * - if $fullForm is true: HTML of entire form built around the selector. */ public static function buildTagFilterSelector( $selected = '', $fullForm = false, Title $title = null -- 2.20.1