public function outputMemory($flush = false)
    {
        // Beautify the XML output
        if ($this->formatOutput === true) {
            $dom = new \DOMDocument;
            $dom->formatOutput = true;
            $dom->loadXML(parent::outputMemory($flush));
            return $dom->saveXML();
        } else {
            return parent::outputMemory($flush);
        }
    }
public function outputMemory($flush = false)
    {
        // Beautify the XML output
        if ($this->formatOutput === true) {
            $dom = new \DOMDocument;
            $dom->formatOutput = true;
            $dom->loadXML(parent::outputMemory($flush));
            return $dom->saveXML();
        } else {
            return parent::outputMemory($flush);
        }
    }
public function outputMemory ( $ flush = false ) { // Beautify the XML output if ( $ this -> formatOutput === true ) { $ dom = new \ DOMDocument ; $ dom -> formatOutput = true ; $ dom -> loadXML ( parent :: outputMemory ( $ flush ) ) ; return $ dom -> saveXML ( ) ; } else { return parent :: outputMemory ( $ flush ) ; } }
Overwrite the original method, so we can add some output formatting for the XML.
@param  boolval $flush Flush memory after
@return string
Overwrite the original method so we can add some output formatting for the XML .