lib/GitHub/Receiver/Gists.php
public function editGist(string $id, string $description = '', array $files = [], string $content = '',
                             string $filename = ''): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/gists/:id', $id), Request::METHOD_PATCH, [
            'description' => $description,
            'files'       => $files,
            'content'     => $content,
            'filename'    => $filename
        ]);
    }
public function editGist(string $id, string $description = '', array $files = [], string $content = '',
                             string $filename = ''): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/gists/:id', $id), Request::METHOD_PATCH, [
            'description' => $description,
            'files'       => $files,
            'content'     => $content,
            'filename'    => $filename
        ]);
    }
public function editGist ( string $ id , string $ description = '' , array $ files = [ ] , string $ content = '' , string $ filename = '' ) : array { return $ this -> getApi ( ) -> request ( $ this -> getApi ( ) -> sprintf ( '/gists/:id' , $ id ) , Request :: METHOD_PATCH , [ 'description' => $ description , 'files' => $ files , 'content' => $ content , 'filename' => $ filename ] ) ; }
Edit a gist

@link https://developer.github.com/v3/gists/#edit-a-gist

@param string $id
@param string $description
@param array  $files
@param string $content
@param string $filename

@return array
Edit a gist