src/sb/Gitlab/Project.php
public function issueClose(\sb\Gitlab\Issue $issue){
        $response = $this->_client->get("/projects/".$this->id."/issues/".$issue->id, [
            'state_event' => 'close'
        ], 'PUT');
        
        if(is_object($response) && isset($response->message)){
             throw new \Exception("Could not close issue ".$issue->id." on project ".$this->id.": ".json_encode($response));
        }
        
        return $response;
    }
public function issueClose(\sb\Gitlab\Issue $issue){
        $response = $this->_client->get("/projects/".$this->id."/issues/".$issue->id, [
            'state_event' => 'close'
        ], 'PUT');
        
        if(is_object($response) && isset($response->message)){
             throw new \Exception("Could not close issue ".$issue->id." on project ".$this->id.": ".json_encode($response));
        }
        
        return $response;
    }
public function issueClose ( \ sb \ Gitlab \ Issue $ issue ) { $ response = $ this -> _client -> get ( "/projects/" . $ this -> id . "/issues/" . $ issue -> id , [ 'state_event' => 'close' ] , 'PUT' ) ; if ( is_object ( $ response ) && isset ( $ response -> message ) ) { throw new \ Exception ( "Could not close issue " . $ issue -> id . " on project " . $ this -> id . ": " . json_encode ( $ response ) ) ; } return $ response ; }
Closes an issue by id within the project
@param int $issue_id
@return type
Closes an issue by id within the project