Skip to content
Browse files

MDL-42210 mod_feedback - convert tabs to space

  • Loading branch information...
1 parent 60293b2 commit 4ae00d74bc1fd6e48629c9f5fdb8640b26ef3420 @grabs grabs committed Oct 16, 2013
View
16 mod/feedback/item/multichoice/lib.php
@@ -317,8 +317,8 @@ public function print_item_preview($item) {
//print the question and label
echo '<div class="feedback_item_label_'.$align.'">';
if ($info->subtype == 'd') {
- echo '<label for="'. $item->typ . '_' . $item->id .'">';
- }
+ echo '<label for="'. $item->typ . '_' . $item->id .'">';
+ }
echo '('.$item->label.') ';
echo format_text($item->name.$requiredmark, true, false, false);
if ($item->dependitem) {
@@ -329,8 +329,8 @@ public function print_item_preview($item) {
}
}
if ($info->subtype == 'd') {
- echo '</label>';
- }
+ echo '</label>';
+ }
echo '</div>';
//print the presentation
@@ -427,12 +427,12 @@ public function print_item_complete($item, $value = null, $highlightrequire = fa
//print the question and label
echo '<div class="feedback_item_label_'.$align.$highlight.'">';
if ($info->subtype == 'd') {
- echo '<label for="'. $item->typ . '_' . $item->id .'">';
+ echo '<label for="'. $item->typ . '_' . $item->id .'">';
echo format_text($item->name.$requiredmark, true, false, false);
- echo '</label>';
- } else {
+ echo '</label>';
+ } else {
echo format_text($item->name.$requiredmark, true, false, false);
- }
+ }
echo '</div>';
//print the presentation
View
8 mod/feedback/item/numeric/lib.php
@@ -252,7 +252,7 @@ public function print_item_preview($item) {
$requiredmark = ($item->required == 1) ? $str_required_mark : '';
//print the question and label
- $inputname = $item->typ . '_' . $item->id;
+ $inputname = $item->typ . '_' . $item->id;
echo '<div class="feedback_item_label_'.$align.'">';
echo '<label for="'. $inputname .'">';
echo '('.$item->label.') ';
@@ -283,7 +283,7 @@ public function print_item_preview($item) {
break;
}
echo '</span>';
- echo '</label>';
+ echo '</label>';
echo '</div>';
//print the presentation
@@ -339,7 +339,7 @@ public function print_item_complete($item, $value = '', $highlightrequire = fals
$requiredmark = ($item->required == 1) ? $str_required_mark : '';
//print the question and label
- $inputname = $item->typ . '_' . $item->id;
+ $inputname = $item->typ . '_' . $item->id;
echo '<div class="feedback_item_label_'.$align.$highlight.'">';
echo '<label for="'. $inputname .'">';
echo format_text($item->name . $requiredmark, true, false, false);
@@ -361,7 +361,7 @@ public function print_item_complete($item, $value = '', $highlightrequire = fals
break;
}
echo '</span>';
- echo '</label>';
+ echo '</label>';
echo '</div>';
//print the presentation
View
12 mod/feedback/item/textarea/lib.php
@@ -190,7 +190,7 @@ public function excelprint_item(&$worksheet, $row_offset,
return $row_offset;
}
- /**
+ /**
* print the item at the edit-page of feedback
*
* @global object
@@ -206,7 +206,7 @@ public function print_item_preview($item) {
$presentation = explode ("|", $item->presentation);
$requiredmark = ($item->required == 1) ? $str_required_mark : '';
//print the question and label
- $inputname = $item->typ . '_' . $item->id;
+ $inputname = $item->typ . '_' . $item->id;
echo '<div class="feedback_item_label_'.$align.'">';
echo '<label for="'. $inputname .'">';
echo '('.$item->label.') ';
@@ -218,7 +218,7 @@ public function print_item_preview($item) {
echo '</span>';
}
}
- echo '</label>';
+ echo '</label>';
echo '</div>';
//print the presentation
@@ -233,7 +233,7 @@ public function print_item_preview($item) {
echo '</div>';
}
- /**
+ /**
* print the item at the complete-page of feedback
*
* @global object
@@ -256,7 +256,7 @@ public function print_item_complete($item, $value = '', $highlightrequire = fals
$requiredmark = ($item->required == 1) ? $str_required_mark :'';
//print the question and label
- $inputname = $item->typ . '_' . $item->id;
+ $inputname = $item->typ . '_' . $item->id;
echo '<div class="feedback_item_label_'.$align.$highlight.'">';
echo '<label for="'. $inputname .'">';
echo format_text($item->name . $requiredmark, true, false, false);
@@ -276,7 +276,7 @@ public function print_item_complete($item, $value = '', $highlightrequire = fals
echo '</div>';
}
- /**
+ /**
* print the item at the complete-page of feedback
*
* @global object
View
14 mod/feedback/item/textfield/lib.php
@@ -179,7 +179,7 @@ public function excelprint_item(&$worksheet, $row_offset,
return $row_offset;
}
- /**
+ /**
* print the item at the edit-page of feedback
*
* @global object
@@ -194,7 +194,7 @@ public function print_item_preview($item) {
$presentation = explode ("|", $item->presentation);
$requiredmark = ($item->required == 1) ? $str_required_mark : '';
//print the question and label
- $inputname = $item->typ . '_' . $item->id;
+ $inputname = $item->typ . '_' . $item->id;
echo '<div class="feedback_item_label_'.$align.'">';
echo '<label for="'. $inputname .'">';
echo '('.$item->label.') ';
@@ -206,7 +206,7 @@ public function print_item_preview($item) {
echo '</span>';
}
}
- echo '</label>';
+ echo '</label>';
echo '</div>';
//print the presentation
@@ -222,7 +222,7 @@ public function print_item_preview($item) {
echo '</div>';
}
- /**
+ /**
* print the item at the complete-page of feedback
*
* @global object
@@ -245,11 +245,11 @@ public function print_item_complete($item, $value = '', $highlightrequire = fals
$requiredmark = ($item->required == 1) ? $str_required_mark : '';
//print the question and label
- $inputname = $item->typ . '_' . $item->id;
+ $inputname = $item->typ . '_' . $item->id;
echo '<div class="feedback_item_label_'.$align.$highlight.'">';
echo '<label for="'. $inputname .'">';
echo format_text($item->name.$requiredmark, true, false, false);
- echo '</label>';
+ echo '</label>';
echo '</div>';
//print the presentation
@@ -265,7 +265,7 @@ public function print_item_complete($item, $value = '', $highlightrequire = fals
echo '</div>';
}
- /**
+ /**
* print the item at the complete-page of feedback
*
* @global object

0 comments on commit 4ae00d7

Please sign in to comment.
Something went wrong with that request. Please try again.