original_string: protected function formatted_contents($output) {
          $this->get_content();
          $this->get_required_javascript();
          if (!empty($this->content->text)) {
              return $this->content->text;
          } else {
              return '';
          }
      }
code: protected function formatted_contents($output) {
          $this->get_content();
          $this->get_required_javascript();
          if (!empty($this->content->text)) {
              return $this->content->text;
          } else {
              return '';
          }
      }
code_tokens: protected function formatted_contents ( $ output ) { $ this -> get_content ( ) ; $ this -> get_required_javascript ( ) ; if ( ! empty ( $ this -> content -> text ) ) { return $ this -> content -> text ; } else { return '' ; } }
docstring: Convert the contents of the block to HTML.
  
  This is used by block base classes like block_list to convert the structured
  $this->content->list and $this->content->icons arrays to HTML. So, in most
  blocks, you probaby want to override the {@link get_contents()} method,
  which generates that structured representation of the contents.
  
  @param $output The core_renderer to use when generating the output.
  @return string the HTML that should appearn in the body of the block.
  @since Moodle 2.0.
docstring_tokens: Convert the contents of the block to HTML .