MDL-35603 backup: fix coding style issues
authorDan Poltawski <dan@moodle.com>
Tue, 2 Apr 2013 06:30:50 +0000 (14:30 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 2 Apr 2013 06:30:50 +0000 (14:30 +0800)
backup/util/ui/renderer.php
backup/util/ui/restore_ui_components.php

index 796c7d0..b9a2277 100644 (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();
index 1aa1a4b..e1aca51 100644 (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;
     }
 
     /**