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

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

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

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

        return false;
    }
public function checkUserFollowsAnother ( string $ username , string $ targetUser ) : bool { $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/users/:username/following/:target_user' , $ username , $ targetUser ) ) ; if ( $ this -> getApi ( ) -> getHeaders ( ) [ 'Status' ] == '204 No Content' ) { return true ; } return false ; }
Check if one user follows another

@link https://developer.github.com/v3/users/followers/#check-if-one-user-follows-another

@param string $username
@param string $targetUser

@return bool
@throws \Exception
Check if one user follows another