nobug: whitespace fixes.

This commit is contained in:
Tim Hunt
2010-02-23 14:31:09 +00:00
parent 0f6a49da32
commit 74aabeb08a
+2 -2
View File
@@ -1183,14 +1183,14 @@ class default_questiontype {
* @param object $state The state whose responses are to be summarized
* @param int $length The maximum length of the returned string
*/
function response_summary($question, $state, $length=80) {
function response_summary($question, $state, $length = 80) {
// This should almost certainly be overridden
$responses = $this->get_actual_response($question, $state);
if (empty($responses) || !is_array($responses)) {
$responses = array();
}
if (is_array($responses)) {
$responses = implode(',', array_map('s', $responses));
$responses = implode(', ', array_map('s', $responses));
}
return shorten_text($responses, $length);
}