public function edit($owner, $repo, $id, $title, $key)
	{
		// Build the request path.
		$path = '/repos/' . $owner . '/' . $repo . '/keys/' . (int) $id;

		$data = array(
			'title' => $title,
			'key'   => $key
		);

		return $this->processResponse(
			$this->client->patch($this->fetchUrl($path), json_encode($data))
		);
	}
public function edit($owner, $repo, $id, $title, $key)
	{
		// Build the request path.
		$path = '/repos/' . $owner . '/' . $repo . '/keys/' . (int) $id;

		$data = array(
			'title' => $title,
			'key'   => $key
		);

		return $this->processResponse(
			$this->client->patch($this->fetchUrl($path), json_encode($data))
		);
	}
public function edit ( $ owner , $ repo , $ id , $ title , $ key ) { // Build the request path. $ path = '/repos/' . $ owner . '/' . $ repo . '/keys/' . ( int ) $ id ; $ data = array ( 'title' => $ title , 'key' => $ key ) ; return $ this -> processResponse ( $ this -> client -> patch ( $ this -> fetchUrl ( $ path ) , json_encode ( $ data ) ) ) ; }
Edit a key.

@param   string   $owner  The name of the owner of the GitHub repository.
@param   string   $repo   The name of the GitHub repository.
@param   integer  $id     The id of the key.
@param   string   $title  The key title.
@param   string   $key    The key.

@since 1.0

@return object
Edit a key .