original_string: public function getResponseId($response){
          $isError = $this->isError($response);
  
          if($isError){
              $result = array (
                  'message' => $response->getMessage(),
                  'eventId' => $response->getEventId()
              );
  
              return $result;
  
          } else {
              $result = array (
                  'responseMessage' => $response->getResponseMessage(),
                  'id' => $response->getId()
              );
  
              return $result;
          }
      }
code: public function getResponseId($response){
          $isError = $this->isError($response);
  
          if($isError){
              $result = array (
                  'message' => $response->getMessage(),
                  'eventId' => $response->getEventId()
              );
  
              return $result;
  
          } else {
              $result = array (
                  'responseMessage' => $response->getResponseMessage(),
                  'id' => $response->getId()
              );
  
              return $result;
          }
      }
code_tokens: public function getResponseId ( $ response ) { $ isError = $ this -> isError ( $ response ) ; if ( $ isError ) { $ result = array ( 'message' => $ response -> getMessage ( ) , 'eventId' => $ response -> getEventId ( ) ) ; return $ result ; } else { $ result = array ( 'responseMessage' => $ response -> getResponseMessage ( ) , 'id' => $ response -> getId ( ) ) ; return $ result ; } }
docstring: return eventId if charge has error.
  return chargeID if charge is decline
docstring_tokens: return eventId if charge has error . return chargeID if charge is decline