original_string: public function graph(moodle_url $url, $title) {
          global $CFG;
  
          $graph = html_writer::empty_tag('img', array('src' => $url, 'alt' => $title));
  
          return $this->heading($title, 3) . html_writer::tag('div', $graph, array('class' => 'graph'));
      }
code: public function graph(moodle_url $url, $title) {
          global $CFG;
  
          $graph = html_writer::empty_tag('img', array('src' => $url, 'alt' => $title));
  
          return $this->heading($title, 3) . html_writer::tag('div', $graph, array('class' => 'graph'));
      }
code_tokens: public function graph ( moodle_url $ url , $ title ) { global $ CFG ; $ graph = html_writer :: empty_tag ( 'img' , array ( 'src' => $ url , 'alt' => $ title ) ) ; return $ this -> heading ( $ title , 3 ) . html_writer :: tag ( 'div' , $ graph , array ( 'class' => 'graph' ) ) ; }
docstring: Output a graph, or a message saying that GD is required.
  @param moodle_url $url the URL of the graph.
  @param string $title the title to display above the graph.
  @return string HTML fragment for the graph.
docstring_tokens: Output a graph or a message saying that GD is required .