original_string: public static function action_category_show(\core_course_category $category) {
          if (!$category->can_change_visibility()) {
              throw new \moodle_exception('permissiondenied', 'error', '', null, 'core_course_category::can_change_visbility');
          }
          $category->show();
          return true;
      }
code: public static function action_category_show(\core_course_category $category) {
          if (!$category->can_change_visibility()) {
              throw new \moodle_exception('permissiondenied', 'error', '', null, 'core_course_category::can_change_visbility');
          }
          $category->show();
          return true;
      }
code_tokens: public static function action_category_show ( \ core_course_category $ category ) { if ( ! $ category -> can_change_visibility ( ) ) { throw new \ moodle_exception ( 'permissiondenied' , 'error' , '' , null , 'core_course_category::can_change_visbility' ) ; } $ category -> show ( ) ; return true ; }
docstring: Makes a category visible given a core_course_category object.
  
  @param \core_course_category $category
  @return bool
  @throws \moodle_exception
docstring_tokens: Makes a category visible given a core_course_category object .