private function createNewConfig() : Config
    {
        $globalPath = $this->globalPath ?: getenv('HOME');
        $tokenFile  = sprintf('%s/.keep-a-changelog/token', $globalPath);
        $token = is_readable($tokenFile)
            ? trim(file_get_contents($tokenFile))
            : '';
        return new Config($token);
    }
private function createNewConfig() : Config
    {
        $globalPath = $this->globalPath ?: getenv('HOME');
        $tokenFile  = sprintf('%s/.keep-a-changelog/token', $globalPath);
        $token = is_readable($tokenFile)
            ? trim(file_get_contents($tokenFile))
            : '';
        return new Config($token);
    }
private function createNewConfig ( ) : Config { $ globalPath = $ this -> globalPath ? : getenv ( 'HOME' ) ; $ tokenFile = sprintf ( '%s/.keep-a-changelog/token' , $ globalPath ) ; $ token = is_readable ( $ tokenFile ) ? trim ( file_get_contents ( $ tokenFile ) ) : '' ; return new Config ( $ token ) ; }
Create a new Config instance.

If the config file does not exist, this creates empty configuration,
optionally using an existing tokenfile ($HOME/.keep-a-changelog/token)
if it exists.
Create a new Config instance .