MDL-35603 backup: fix coding style issues

Conflicts:
	backup/util/ui/restore_ui_components.php
This commit is contained in:
Dan Poltawski
2013-04-02 14:34:15 +08:00
parent e53be83e10
commit d6868e54b8
2 changed files with 11 additions and 11 deletions
+8 -8
View File
@@ -522,14 +522,14 @@ class core_backup_renderer extends plugin_renderer_base {
$output = html_writer::start_tag('div', array('class' => 'restore-course-search'));
$count_str = '';
$countstr = '';
if ($component->has_more_results()) {
$count_str = get_string('morecoursesearchresults', 'backup', $component->get_count());
$countstr = get_string('morecoursesearchresults', 'backup', $component->get_count());
} else {
$count_str = get_string('totalcoursesearchresults', 'backup', $component->get_count());
$countstr = get_string('totalcoursesearchresults', 'backup', $component->get_count());
}
$output .= html_writer::tag('div', $count_str, array('class'=>'rcs-totalresults'));
$output .= html_writer::tag('div', $countstr, array('class'=>'rcs-totalresults'));
$output .= html_writer::start_tag('div', array('class' => 'rcs-results'));
$table = new html_table();
@@ -599,14 +599,14 @@ class core_backup_renderer extends plugin_renderer_base {
return $output;
}
$count_str = '';
$countstr = '';
if ($component->has_more_results()) {
$count_str = get_string('morecoursesearchresults', 'backup', $component->get_count());
$countstr = get_string('morecoursesearchresults', 'backup', $component->get_count());
} else {
$count_str = get_string('totalcoursesearchresults', 'backup', $component->get_count());
$countstr = get_string('totalcoursesearchresults', 'backup', $component->get_count());
}
$output .= html_writer::tag('div', $count_str, array('class'=>'ics-totalresults'));
$output .= html_writer::tag('div', $countstr, array('class'=>'ics-totalresults'));
$output .= html_writer::start_tag('div', array('class' => 'ics-results'));
$table = new html_table();
+3 -3
View File
@@ -69,7 +69,7 @@ abstract class restore_search_base implements renderable {
* Indicates if we have more than maxresults found.
* @var boolean
*/
private $has_more_results = false;
private $hasmoreresults = false;
/**
* Constructor
@@ -195,7 +195,7 @@ abstract class restore_search_base implements renderable {
}
// Check if we are over the limit.
if ($this->totalcount+1 > self::$MAXRESULTS) {
$this->has_more_results = true;
$this->hasmoreresults = true;
break;
}
// If not, then continue.
@@ -212,7 +212,7 @@ abstract class restore_search_base implements renderable {
if ($this->results === null) {
$this->search();
}
return $this->has_more_results;
return $this->hasmoreresults;
}
/**