nobug: whitespace fixes.

This commit is contained in:
Tim Hunt
2010-02-23 14:31:07 +00:00
parent c15a60e6be
commit e65701ee2d
+2 -2
View File
@@ -1297,13 +1297,13 @@ 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, $formatting=true) {
function response_summary($question, $state, $length = 80, $formatting = true) {
// This should almost certainly be overridden
$responses = $this->get_actual_response($question, $state);
if ($formatting){
$responses = $this->format_responses($responses, $question->questiontextformat);
}
$responses = implode(';', $responses);
$responses = implode('; ', $responses);
return shorten_text($responses, $length);
}
/**