public function getUser()
    {
        $info = $this
            ->gitHubUserAuth()
            ->getStoreData();

        $user = isset($info['user'])
            ? $info['user']
            : getenv('PROJECTX_GITHUB_USER') ?: null;

        if (!isset($user)) {
            throw new \RuntimeException(
                "GitHub authentication user is required. \r\n\n " .
                '[info] Run vendor/bin/project-x github::auth to get started.'
            );
        }

        return $user;
    }
public function getUser()
    {
        $info = $this
            ->gitHubUserAuth()
            ->getStoreData();

        $user = isset($info['user'])
            ? $info['user']
            : getenv('PROJECTX_GITHUB_USER') ?: null;

        if (!isset($user)) {
            throw new \RuntimeException(
                "GitHub authentication user is required. \r\n\n " .
                '[info] Run vendor/bin/project-x github::auth to get started.'
            );
        }

        return $user;
    }
public function getUser ( ) { $ info = $ this -> gitHubUserAuth ( ) -> getStoreData ( ) ; $ user = isset ( $ info [ 'user' ] ) ? $ info [ 'user' ] : getenv ( 'PROJECTX_GITHUB_USER' ) ? : null ; if ( ! isset ( $ user ) ) { throw new \ RuntimeException ( "GitHub authentication user is required. \r\n\n " . '[info] Run vendor/bin/project-x github::auth to get started.' ) ; } return $ user ; }
Get GitHub authentication user.

@throws RuntimeException

@return string
Get GitHub authentication user .