MDL-20636 Fix new stdClass -> stdClass(), and trailing whitespace.

This commit is contained in:
Tim Hunt
2011-02-21 18:10:19 +00:00
parent aa9bdbe31c
commit 0ff4bd0877
73 changed files with 291 additions and 296 deletions
+2 -2
View File
@@ -450,7 +450,7 @@ abstract class question_behaviour {
* @return string the comment, ready to be output.
*/
public function format_comment($comment = null, $commentformat = null) {
$formatoptions = new stdClass;
$formatoptions = new stdClass();
$formatoptions->noclean = true;
$formatoptions->para = false;
@@ -466,7 +466,7 @@ abstract class question_behaviour {
* @param unknown_type $step
*/
protected function summarise_manual_comment($step) {
$a = new stdClass;
$a = new stdClass();
if ($step->has_behaviour_var('comment')) {
$a->comment = shorten_text(html_to_text($this->format_comment(
$step->get_behaviour_var('comment')), 0, false), 200);