src/ImageStack/Cache/RawFileCache.php
protected function assertFile($filename)
    {
        if (is_dir($filename)) {
            throw new RawFileCacheException(sprintf('Directory with same name : %s', $filename), RawFileCacheException::DIRECTORY_WITH_SAME_NAME);
        }
        return is_file($filename);
    }
protected function assertFile($filename)
    {
        if (is_dir($filename)) {
            throw new RawFileCacheException(sprintf('Directory with same name : %s', $filename), RawFileCacheException::DIRECTORY_WITH_SAME_NAME);
        }
        return is_file($filename);
    }
protected function assertFile ( $ filename ) { if ( is_dir ( $ filename ) ) { throw new RawFileCacheException ( sprintf ( 'Directory with same name : %s' , $ filename ) , RawFileCacheException :: DIRECTORY_WITH_SAME_NAME ) ; } return is_file ( $ filename ) ; }
Assert that the filename can be used.
@param string $filename
@throws RawFileCacheException
@return boolean
Assert that the filename can be used .