lib/GitHub/Receiver/Users/Followers.php
public function checkFollowingUser(string $username): bool
    {
        $this->getApi()->request($this->getApi()->sprintf('/user/following/:username', $username));

        if ($this->getApi()->getHeaders()['Status'] == '204 No Content') {
            return true;
        }

        return false;
    }
public function checkFollowingUser(string $username): bool
    {
        $this->getApi()->request($this->getApi()->sprintf('/user/following/:username', $username));

        if ($this->getApi()->getHeaders()['Status'] == '204 No Content') {
            return true;
        }

        return false;
    }
public function checkFollowingUser ( string $ username ) : bool { $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/user/following/:username' , $ username ) ) ; if ( $ this -> getApi ( ) -> getHeaders ( ) [ 'Status' ] == '204 No Content' ) { return true ; } return false ; }
Check if you are following a user

@link https://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user

@param string $username

@return bool
@throws \Exception
Check if you are following a user