dev/src/Split/Command.php
protected function githubToken($userToken)
    {
        $token = $userToken ?: getenv(self::TOKEN_ENV);

        if (!$token) {
            throw new \RuntimeException(sprintf(
                'Could not find GitHub auth token. Please set the environment ' .
                'variable `%s` or pass token as console argument.',
                self::TOKEN_ENV
            ));
        }

        return $token;
    }
protected function githubToken($userToken)
    {
        $token = $userToken ?: getenv(self::TOKEN_ENV);

        if (!$token) {
            throw new \RuntimeException(sprintf(
                'Could not find GitHub auth token. Please set the environment ' .
                'variable `%s` or pass token as console argument.',
                self::TOKEN_ENV
            ));
        }

        return $token;
    }
protected function githubToken ( $ userToken ) { $ token = $ userToken ? : getenv ( self :: TOKEN_ENV ) ; if ( ! $ token ) { throw new \ RuntimeException ( sprintf ( 'Could not find GitHub auth token. Please set the environment ' . 'variable `%s` or pass token as console argument.' , self :: TOKEN_ENV ) ) ; } return $ token ; }
Fetch the GitHub auth token from the user or environment.

@param string|null $userToken The user token, if provided, else `null`.
@return string
@throws \RuntimeException If no user token was given and the environment
variable is not set.
Fetch the GitHub auth token from the user or environment .