original_string: protected function show_my_categories() {
          global $CFG;
          if ($this->showmycategories === null) {
              $this->showmycategories = !empty($CFG->navshowmycoursecategories) && !core_course_category::is_simple_site();
          }
          return $this->showmycategories;
      }
code: protected function show_my_categories() {
          global $CFG;
          if ($this->showmycategories === null) {
              $this->showmycategories = !empty($CFG->navshowmycoursecategories) && !core_course_category::is_simple_site();
          }
          return $this->showmycategories;
      }
code_tokens: protected function show_my_categories ( ) { global $ CFG ; if ( $ this -> showmycategories === null ) { $ this -> showmycategories = ! empty ( $ CFG -> navshowmycoursecategories ) && ! core_course_category :: is_simple_site ( ) ; } return $ this -> showmycategories ; }
docstring: Returns true if we should show categories in the My Courses branch.
  @return bool
docstring_tokens: Returns true if we should show categories in the My Courses branch .