src/ShopRatingService/Util/CacheUtil.php
public function getCacheDirectory()
    {
        $dir = $this->cacheBaseDir.'/RatingServicesCache/';
        if (!file_exists($dir)) {
            mkdir($dir, 0777, true);
            if (!file_exists($dir)) {
                $dir = null;
            }
        }
        if (!is_dir($dir) || !is_writable($dir)) {
            $dir = null;
        }

        return $dir;
    }
public function getCacheDirectory()
    {
        $dir = $this->cacheBaseDir.'/RatingServicesCache/';
        if (!file_exists($dir)) {
            mkdir($dir, 0777, true);
            if (!file_exists($dir)) {
                $dir = null;
            }
        }
        if (!is_dir($dir) || !is_writable($dir)) {
            $dir = null;
        }

        return $dir;
    }
public function getCacheDirectory ( ) { $ dir = $ this -> cacheBaseDir . '/RatingServicesCache/' ; if ( ! file_exists ( $ dir ) ) { mkdir ( $ dir , 0777 , true ) ; if ( ! file_exists ( $ dir ) ) { $ dir = null ; } } if ( ! is_dir ( $ dir ) || ! is_writable ( $ dir ) ) { $ dir = null ; } return $ dir ; }
Returns the cache directory used for downloads.

@return string|null null if the directory could not be created or is not writable
Returns the cache directory used for downloads .