public function decline($account, $repo, $id, $params = array())
    {
        if (false === array_key_exists('message', $params)) {
            $params['message'] = '';
        }

        return $this->getClient()->setApiVersion('2.0')->post(
            sprintf('repositories/%s/%s/pullrequests/%d/decline', $account, $repo, $id),
            json_encode($params),
            array('Content-Type' => 'application/json')
        );
    }
public function decline($account, $repo, $id, $params = array())
    {
        if (false === array_key_exists('message', $params)) {
            $params['message'] = '';
        }

        return $this->getClient()->setApiVersion('2.0')->post(
            sprintf('repositories/%s/%s/pullrequests/%d/decline', $account, $repo, $id),
            json_encode($params),
            array('Content-Type' => 'application/json')
        );
    }
public function decline ( $ account , $ repo , $ id , $ params = array ( ) ) { if ( false === array_key_exists ( 'message' , $ params ) ) { $ params [ 'message' ] = '' ; } return $ this -> getClient ( ) -> setApiVersion ( '2.0' ) -> post ( sprintf ( 'repositories/%s/%s/pullrequests/%d/decline' , $ account , $ repo , $ id ) , json_encode ( $ params ) , array ( 'Content-Type' => 'application/json' ) ) ; }
Decline a pull request

@access public
@param  string           $account The team or individual account owning the repository.
@param  string           $repo    The repository identifier.
@param  int              $id      (Optional) ID of the pull request
@param  array            $params  Additional parameters.
@return MessageInterface
Decline a pull request