original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Closes an issue by id within the project
  @param int $issue_id
  @return type
docstring_tokens: Closes an issue by id within the project