src/AbstractFile.php
protected function writeFile(string $cacheFile, string $contents): bool
    {
        $dir = dirname($cacheFile);

        if ($dir !== $this->cacheDir && !is_dir($dir)) {
            mkdir($dir, 0775, true);
        }

        return (bool)file_put_contents($cacheFile, $contents);
    }
protected function writeFile(string $cacheFile, string $contents): bool
    {
        $dir = dirname($cacheFile);

        if ($dir !== $this->cacheDir && !is_dir($dir)) {
            mkdir($dir, 0775, true);
        }

        return (bool)file_put_contents($cacheFile, $contents);
    }
protected function writeFile ( string $ cacheFile , string $ contents ) : bool { $ dir = dirname ( $ cacheFile ) ; if ( $ dir !== $ this -> cacheDir && ! is_dir ( $ dir ) ) { mkdir ( $ dir , 0775 , true ) ; } return ( bool ) file_put_contents ( $ cacheFile , $ contents ) ; }
Create a cache file

@param string $cacheFile
@param string $contents
@return bool
Create a cache file