src/Service/logService.php
public function closeFile($path)
    {
        //Close up the file if needed
        switch ($this->_format) {
            case 'HTML':
                $html = "</table></body></html>";
                $file = fopen($path, 'a');
                fwrite($file, $html);
                fclose($file);
                break;
            case 'XML':
                $xml = "</log>";
                $file = fopen($path, 'a');
                fwrite($file, $xml);
                fclose($file);
                break;
            default:
                break;
        }
    }
public function closeFile($path)
    {
        //Close up the file if needed
        switch ($this->_format) {
            case 'HTML':
                $html = "</table></body></html>";
                $file = fopen($path, 'a');
                fwrite($file, $html);
                fclose($file);
                break;
            case 'XML':
                $xml = "</log>";
                $file = fopen($path, 'a');
                fwrite($file, $xml);
                fclose($file);
                break;
            default:
                break;
        }
    }
Close a file with the correct string depending on the configured format

@return void