mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
MDL-35603 backup: fix coding style issues
This commit is contained in:
parent
92d1453bcb
commit
534ee16ec0
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user