MatthiasMullie\Minify\Minify::writeToFile PHP Method

writeToFile() protected method

Attempts to write $content to the file specified by $handler. $path is used for printing exceptions.
protected writeToFile ( resource $handler, string $content, string $path = '' )
$handler resource The resource to write to
$content string The content to write
$path string The path to the file (for exception printing only)
    protected function writeToFile($handler, $content, $path = '')
    {
        if (($result = @fwrite($handler, $content)) === false || $result < strlen($content)) {
            throw new IOException('The file "' . $path . '" could not be written to. Check your disk space and file permissions.');
        }
    }