public function get($owner, $repo, $user)
	{
		// Build the request path.
		$path = '/repos/' . $owner . '/' . $repo . '/collaborators/' . $user;

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

		switch ($response->code)
		{
			case '204';

				return true;
				break;
			case '404';

				return false;
				break;
			default;
				throw new \UnexpectedValueException('Unexpected code: ' . $response->code);
				break;
		}
	}
public function get($owner, $repo, $user)
	{
		// Build the request path.
		$path = '/repos/' . $owner . '/' . $repo . '/collaborators/' . $user;

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

		switch ($response->code)
		{
			case '204';

				return true;
				break;
			case '404';

				return false;
				break;
			default;
				throw new \UnexpectedValueException('Unexpected code: ' . $response->code);
				break;
		}
	}
public function get ( $ owner , $ repo , $ user ) { // Build the request path. $ path = '/repos/' . $ owner . '/' . $ repo . '/collaborators/' . $ user ; $ response = $ this -> client -> get ( $ this -> fetchUrl ( $ path ) ) ; switch ( $ response -> code ) { case '204' ; return true ; break ; case '404' ; return false ; break ; default ; throw new \ UnexpectedValueException ( 'Unexpected code: ' . $ response -> code ) ; break ; } }
Test if a user is a collaborator.

@param   string  $owner  The name of the owner of the GitHub repository.
@param   string  $repo   The name of the GitHub repository.
@param   string  $user   The name of the GitHub user.

@throws \UnexpectedValueException
@since  1.0

@return boolean
Test if a user is a collaborator .