app/Report/ReportParserGenerate.php
protected function endElement($parser, string $name): void
    {
        if (($this->process_footnote || $name === 'Footnote') && ($this->process_ifs === 0 || $name === 'if') && ($this->process_gedcoms === 0 || $name === 'Gedcom') && ($this->process_repeats === 0 || $name === 'Facts' || $name === 'RepeatTag' || $name === 'List' || $name === 'Relatives')) {
            $start_method = $name . 'StartHandler';
            $end_method   = $name . 'EndHandler';
            if (method_exists($this, $end_method)) {
                $this->$end_method();
            } elseif (!method_exists($this, $start_method)) {
                $this->htmlEndHandler($name);
            }
        }
    }
protected function endElement($parser, string $name): void
    {
        if (($this->process_footnote || $name === 'Footnote') && ($this->process_ifs === 0 || $name === 'if') && ($this->process_gedcoms === 0 || $name === 'Gedcom') && ($this->process_repeats === 0 || $name === 'Facts' || $name === 'RepeatTag' || $name === 'List' || $name === 'Relatives')) {
            $start_method = $name . 'StartHandler';
            $end_method   = $name . 'EndHandler';
            if (method_exists($this, $end_method)) {
                $this->$end_method();
            } elseif (!method_exists($this, $start_method)) {
                $this->htmlEndHandler($name);
            }
        }
    }
protected function endElement ( $ parser , string $ name ) : void { if ( ( $ this -> process_footnote || $ name === 'Footnote' ) && ( $ this -> process_ifs === 0 || $ name === 'if' ) && ( $ this -> process_gedcoms === 0 || $ name === 'Gedcom' ) && ( $ this -> process_repeats === 0 || $ name === 'Facts' || $ name === 'RepeatTag' || $ name === 'List' || $ name === 'Relatives' ) ) { $ start_method = $ name . 'StartHandler' ; $ end_method = $ name . 'EndHandler' ; if ( method_exists ( $ this , $ end_method ) ) { $ this -> $ end_method ( ) ; } elseif ( ! method_exists ( $ this , $ start_method ) ) { $ this -> htmlEndHandler ( $ name ) ; } } }
XML end element handler
This function is called whenever an ending element is reached
The element handler will be called if found, otherwise it must be HTML

@param resource $parser the resource handler for the XML parser
@param string   $name   the name of the XML element parsed

@return void
XML end element handler This function is called whenever an ending element is reached The element handler will be called if found otherwise it must be HTML