<commit_before><?php
/**
 * OKPAY driver for Omnipay PHP payment library.
 *
 * @link      https://github.com/hiqdev/omnipay-okpay
 * @package   omnipay-okpay
 * @license   MIT
 * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
 */

namespace Omnipay\OKPAY\Message;

class PurchaseRequest extends AbstractRequest
{
    public function getData()
    {
        // \yii\helpers\VarDumper::dump($this);die();
        $this->validate('purse', 'currency', 'amount', 'description');
        return [
            'ok_receiver' => $this->getPurse(),
            'ok_item_1_name' => $this->getDescription(),
            'ok_currency' => $this->getCurrency(),
            'ok_item_1_price' => $this->getAmount(),
            'ok_invoice' => $this->getTransactionId(),
            'ok_ipn' => $this->getNotifyUrl(),
            'ok_return_success' => $this->getReturnUrl(),
            'ok_return_fail' => $this->getCancelUrl(),
        ];
    }

    public function sendData($data)
    {
        return $this->response = new PurchaseResponse($this, $data, $this->getEndpoint());
    }
}<commit_msg>fix: revove commented code<commit_after><?php
/**
 * OKPAY driver for Omnipay PHP payment library.
 *
 * @link      https://github.com/hiqdev/omnipay-okpay
 * @package   omnipay-okpay
 * @license   MIT
 * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
 */

namespace Omnipay\OKPAY\Message;

class PurchaseRequest extends AbstractRequest
{
    public function getData()
    {
        $this->validate('purse', 'currency', 'amount', 'description');
        return [
            'ok_receiver' => $this->getPurse(),
            'ok_item_1_name' => $this->getDescription(),
            'ok_currency' => $this->getCurrency(),
            'ok_item_1_price' => $this->getAmount(),
            'ok_invoice' => $this->getTransactionId(),
            'ok_ipn' => $this->getNotifyUrl(),
            'ok_return_success' => $this->getReturnUrl(),
            'ok_return_fail' => $this->getCancelUrl(),
        ];
    }

    public function sendData($data)
    {
        return $this->response = new PurchaseResponse($this, $data, $this->getEndpoint());
    }
}
{'fraction_non_alphanumeric': 0.16397228637413394, 'fraction_numerical': 0.009237875288683603, 'mean_word_length': 2.7152658662092626, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6516893', 'n_tokens_mistral': 705, 'n_tokens_neox': 682, 'n_words': 122}