MatthiasMullie\Minify\Minify::openFileForWriting PHP Method

openFileForWriting() protected method

Attempts to open file specified by $path for writing.
protected openFileForWriting ( string $path ) : resource
$path string The path to the file
return resource Specifier for the target file
    protected function openFileForWriting($path)
    {
        if (($handler = @fopen($path, 'w')) === false) {
            throw new IOException('The file "' . $path . '" could not be opened for writing. Check if PHP has enough permissions.');
        }
        return $handler;
    }