public function check($user)
	{
		// Build the request path.
		$path = '/user/following/' . $user;

		$response = $this->client->get($this->fetchUrl($path));

		switch ($response->code)
		{
			case '204' :
				// You are following this user
				return true;
				break;

			case '404' :
				// You are not following this user
				return false;
				break;

			default :
				throw new \UnexpectedValueException('Unexpected response code: ' . $response->code);
				break;
		}
	}
public function check($user)
	{
		// Build the request path.
		$path = '/user/following/' . $user;

		$response = $this->client->get($this->fetchUrl($path));

		switch ($response->code)
		{
			case '204' :
				// You are following this user
				return true;
				break;

			case '404' :
				// You are not following this user
				return false;
				break;

			default :
				throw new \UnexpectedValueException('Unexpected response code: ' . $response->code);
				break;
		}
	}
public function check ( $ user ) { // Build the request path. $ path = '/user/following/' . $ user ; $ response = $ this -> client -> get ( $ this -> fetchUrl ( $ path ) ) ; switch ( $ response -> code ) { case '204' : // You are following this user return true ; break ; case '404' : // You are not following this user return false ; break ; default : throw new \ UnexpectedValueException ( 'Unexpected response code: ' . $ response -> code ) ; break ; } }
Check if you are following a user.

@param   string  $user  The name of the user.

@throws \UnexpectedValueException
@since  1.0

@return boolean
Check if you are following a user .