original_string: protected function get_context_by_category_id($category) {
          global $DB;
          $contextid = $DB->get_field('question_categories', 'contextid', array('id'=>$category));
          $context = context::instance_by_id($contextid, IGNORE_MISSING);
          return $context;
      }
code: protected function get_context_by_category_id($category) {
          global $DB;
          $contextid = $DB->get_field('question_categories', 'contextid', array('id'=>$category));
          $context = context::instance_by_id($contextid, IGNORE_MISSING);
          return $context;
      }
code_tokens: protected function get_context_by_category_id ( $ category ) { global $ DB ; $ contextid = $ DB -> get_field ( 'question_categories' , 'contextid' , array ( 'id' => $ category ) ) ; $ context = context :: instance_by_id ( $ contextid , IGNORE_MISSING ) ; return $ context ; }
docstring: Get question context by category id
  @param int $category
  @return object $context
docstring_tokens: Get question context by category id