original_string: protected function isApprove($response){
          $result = false;
  
          if($response->getResponseCode() == CheckoutApi_Client_Constant::RESPONSE_CODE_APPROVED
              || $response->getResponseCode()== CheckoutApi_Client_Constant::RESPONSE_CODE_APPROVED_RISK ){
              $result = true;
          }
  
          return $result;
      }
code: protected function isApprove($response){
          $result = false;
  
          if($response->getResponseCode() == CheckoutApi_Client_Constant::RESPONSE_CODE_APPROVED
              || $response->getResponseCode()== CheckoutApi_Client_Constant::RESPONSE_CODE_APPROVED_RISK ){
              $result = true;
          }
  
          return $result;
      }
code_tokens: protected function isApprove ( $ response ) { $ result = false ; if ( $ response -> getResponseCode ( ) == CheckoutApi_Client_Constant :: RESPONSE_CODE_APPROVED || $ response -> getResponseCode ( ) == CheckoutApi_Client_Constant :: RESPONSE_CODE_APPROVED_RISK ) { $ result = true ; } return $ result ; }
docstring: Check if response is approve
  return boolean
docstring_tokens: Check if response is approve return boolean