nobug: whitespace fixes.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user