MDL-35603 backup: fix coding style issues

This commit is contained in:
Dan Poltawski 2013-04-02 14:30:50 +08:00
parent 92d1453bcb
commit 534ee16ec0
2 changed files with 7 additions and 7 deletions

View File

@ -590,14 +590,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();

View File

@ -73,7 +73,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
@ -201,7 +201,7 @@ abstract class restore_search_base implements renderable {
}
// Check if we are over the limit.
if ($this->totalcount+1 > $this->maxresults) {
$this->has_more_results = true;
$this->hasmoreresults = true;
break;
}
// If not, then continue.
@ -218,7 +218,7 @@ abstract class restore_search_base implements renderable {
if ($this->results === null) {
$this->search();
}
return $this->has_more_results;
return $this->hasmoreresults;
}
/**