original_string: public function close_task_divs() {
          if ($this->activitydiv) {
              $this->_form->addElement('html', html_writer::end_tag('div'));
              $this->activitydiv = false;
          }
          if ($this->sectiondiv) {
              $this->_form->addElement('html', html_writer::end_tag('div'));
              $this->sectiondiv = false;
          }
          if ($this->coursediv) {
              $this->_form->addElement('html', html_writer::end_tag('div'));
              $this->coursediv = false;
          }
      }
code: public function close_task_divs() {
          if ($this->activitydiv) {
              $this->_form->addElement('html', html_writer::end_tag('div'));
              $this->activitydiv = false;
          }
          if ($this->sectiondiv) {
              $this->_form->addElement('html', html_writer::end_tag('div'));
              $this->sectiondiv = false;
          }
          if ($this->coursediv) {
              $this->_form->addElement('html', html_writer::end_tag('div'));
              $this->coursediv = false;
          }
      }
code_tokens: public function close_task_divs ( ) { if ( $ this -> activitydiv ) { $ this -> _form -> addElement ( 'html' , html_writer :: end_tag ( 'div' ) ) ; $ this -> activitydiv = false ; } if ( $ this -> sectiondiv ) { $ this -> _form -> addElement ( 'html' , html_writer :: end_tag ( 'div' ) ) ; $ this -> sectiondiv = false ; } if ( $ this -> coursediv ) { $ this -> _form -> addElement ( 'html' , html_writer :: end_tag ( 'div' ) ) ; $ this -> coursediv = false ; } }
docstring: Closes any open divs
docstring_tokens: Closes any open divs