original_string: public function definition_after_data() {
          $mform = $this->_form;
          $filterstartdate = $mform->getElement('filterstartdate')->getValue();
          $filterenddate = $mform->getElement('filterenddate')->getValue();
          if (!empty($filterstartdate['enabled']) || !empty($filterenddate['enabled'])) {
              $mform->setExpanded('filterheader', true);
          }
      }
code: public function definition_after_data() {
          $mform = $this->_form;
          $filterstartdate = $mform->getElement('filterstartdate')->getValue();
          $filterenddate = $mform->getElement('filterenddate')->getValue();
          if (!empty($filterstartdate['enabled']) || !empty($filterenddate['enabled'])) {
              $mform->setExpanded('filterheader', true);
          }
      }
code_tokens: public function definition_after_data ( ) { $ mform = $ this -> _form ; $ filterstartdate = $ mform -> getElement ( 'filterstartdate' ) -> getValue ( ) ; $ filterenddate = $ mform -> getElement ( 'filterenddate' ) -> getValue ( ) ; if ( ! empty ( $ filterstartdate [ 'enabled' ] ) || ! empty ( $ filterenddate [ 'enabled' ] ) ) { $ mform -> setExpanded ( 'filterheader' , true ) ; } }
docstring: Expand the form contents if the filter is in use.
  @throws \HTML_QuickForm_Error
docstring_tokens: Expand the form contents if the filter is in use .