navigation MDL-25596 Fixed whitespace issue
authorSam Hemelryk <sam@moodle.com>
Thu, 23 Dec 2010 08:55:52 +0000 (16:55 +0800)
committerSam Hemelryk <sam@moodle.com>
Thu, 23 Dec 2010 08:55:52 +0000 (16:55 +0800)
blocks/navigation/block_navigation.php
blocks/settings/block_settings.php
lib/navigationlib.php

index 8d67196..c7321f7 100644 (file)
@@ -106,7 +106,7 @@ class block_navigation extends block_base {
         $limit = 20;
         if (!empty($CFG->navcourselimit)) {
             $limit = $CFG->navcourselimit;
-    }
+        }
         $arguments = array('id'=>$this->instance->id, 'instance'=>$this->instance->id, 'candock'=>$this->instance_can_be_docked(), 'courselimit'=>$limit);
         $this->page->requires->yui_module(array('core_dock', 'moodle-block_navigation-navigation'), 'M.block_navigation.init_add_tree', array($arguments));
     }
index 675200e..89706f6 100644 (file)
@@ -92,7 +92,7 @@ class block_settings extends block_base {
 
     function get_required_javascript() {
         global $CFG;
-        $arguments = array('id'=>$this->instance->id, 'instance'=>$this->instance->id, 'candock'=>$this->instance_can_be_docked());
+        $arguments = array('id' => $this->instance->id, 'instance' => $this->instance->id, 'candock' => $this->instance_can_be_docked());
         $this->page->requires->yui_module(array('core_dock', 'moodle-block_navigation-navigation'), 'M.block_navigation.init_add_tree', array($arguments));
         user_preference_allow_ajax_update('docked_block_instance_'.$this->instance->id, PARAM_INT);
     }
index 31d2a37..3a62e6a 100644 (file)
@@ -537,10 +537,10 @@ class navigation_node implements renderable {
      */
     public function find_expandable(array &$expandable) {
         foreach ($this->children as &$child) {
-            if ($child->nodetype == self::NODETYPE_BRANCH && $child->children->count()==0 && $child->display) {
+            if ($child->nodetype == self::NODETYPE_BRANCH && $child->children->count() == 0 && $child->display) {
                 $child->id = 'expandable_branch_'.(count($expandable)+1);
                 $this->add_class('canexpand');
-                $expandable[] = array('id'=>$child->id,'key'=>$child->key,'type'=>$child->type);
+                $expandable[] = array('id' => $child->id, 'key' => $child->key, 'type' => $child->type);
             }
             $child->find_expandable($expandable);
         }