Issues (10)

src/Message/ServerCompletePurchaseResponse.php (1 issue)

1
<?php
2
3
namespace ByTIC\Omnipay\Twispay\Message;
4
5
use ByTIC\Omnipay\Twispay\Message\Traits\CompletePurchaseResponseTrait;
6
7
/**
8
 * Class PurchaseResponse
9
 * @package ByTIC\Common\Payments\Gateways\Providers\AbstractGateway\Messages
10
 */
11
class ServerCompletePurchaseResponse extends AbstractResponse
12
{
13
    use CompletePurchaseResponseTrait;
14
15
    public function send()
16
    {
17
        echo 'OK';
18
        die();
0 ignored issues
show
Coding Style Compatibility introduced by
The method send() contains an exit expression.

An exit expression should only be used in rare cases. For example, if you write a short command line script.

In most cases however, using an exit expression makes the code untestable and often causes incompatibilities with other libraries. Thus, unless you are absolutely sure it is required here, we recommend to refactor your code to avoid its usage.

Loading history...
19
    }
20
}
21