private function storage($file = null)
    {
        $folder = static::STORAGE_DIR;
        $path   = __DIR__ . "/../../../$folder";

        if (!file_exists($path)) {
            mkdir($path);
            $this->initDefaultData(realpath($path));
        }

        if (!file_exists("$path/.gitignore")) {
            file_put_contents("$path/.gitignore", '*');
        }

        return $file ? "$path/$file" : "$path";
    }
private function storage($file = null)
    {
        $folder = static::STORAGE_DIR;
        $path   = __DIR__ . "/../../../$folder";

        if (!file_exists($path)) {
            mkdir($path);
            $this->initDefaultData(realpath($path));
        }

        if (!file_exists("$path/.gitignore")) {
            file_put_contents("$path/.gitignore", '*');
        }

        return $file ? "$path/$file" : "$path";
    }
private function storage ( $ file = null ) { $ folder = static :: STORAGE_DIR ; $ path = __DIR__ . "/../../../$folder" ; if ( ! file_exists ( $ path ) ) { mkdir ( $ path ) ; $ this -> initDefaultData ( realpath ( $ path ) ) ; } if ( ! file_exists ( "$path/.gitignore" ) ) { file_put_contents ( "$path/.gitignore" , '*' ) ; } return $ file ? "$path/$file" : "$path" ; }
Returns a file from local storage, and creates the directory and
initializes default IERS data in the event that it does not exist.

@param  string $file Filename

@return string       Full relative path to the file
Returns a file from local storage and creates the directory and initializes default IERS data in the event that it does not exist .