protected function _writeDestinationFile()
    {
        if (empty($this->destination_file)) {
            $this->guessDestinationFilename();
        }

        $content = $this->_getHeaderComment()."\n".$this->output;
        $dest_file = $this->getDestinationRealPath();
        if (false!==file_put_contents($dest_file, $content)) {
            return true;
        } else {
            if (false===$this->silent) {
                throw new \RuntimeException(
                    sprintf('[Compressor] Destination compressed file "%s" can\'t be written on disk!', $dest_file)
                );
            }
            return false;
        }
    }
protected function _writeDestinationFile()
    {
        if (empty($this->destination_file)) {
            $this->guessDestinationFilename();
        }

        $content = $this->_getHeaderComment()."\n".$this->output;
        $dest_file = $this->getDestinationRealPath();
        if (false!==file_put_contents($dest_file, $content)) {
            return true;
        } else {
            if (false===$this->silent) {
                throw new \RuntimeException(
                    sprintf('[Compressor] Destination compressed file "%s" can\'t be written on disk!', $dest_file)
                );
            }
            return false;
        }
    }
protected function _writeDestinationFile ( ) { if ( empty ( $ this -> destination_file ) ) { $ this -> guessDestinationFilename ( ) ; } $ content = $ this -> _getHeaderComment ( ) . "\n" . $ this -> output ; $ dest_file = $ this -> getDestinationRealPath ( ) ; if ( false !== file_put_contents ( $ dest_file , $ content ) ) { return true ; } else { if ( false === $ this -> silent ) { throw new \ RuntimeException ( sprintf ( '[Compressor] Destination compressed file "%s" can\'t be written on disk!' , $ dest_file ) ) ; } return false ; } }
Writes the compressed content in the destination file

@return bool|string The filename if it has been created, false otherwise
@throws \RuntimeException if the file can't be written
Writes the compressed content in the destination file