@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | public function __construct(Invoice $invoice, $settings) |
40 | 40 | { |
41 | 41 | $this->invoice($invoice); |
42 | - $this->settings = (object)$settings; |
|
42 | + $this->settings = (object) $settings; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | // purchase was not successful |
74 | 74 | if ($data[0] != "0") { |
75 | - throw new PurchaseFailedException($this->translateStatus($data[0]), (int)$data[0]); |
|
75 | + throw new PurchaseFailedException($this->translateStatus($data[0]), (int) $data[0]); |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | $this->invoice->transactionId($data[1]); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $soap = $this->client($this->settings->apiVerificationUrl); |
121 | 121 | |
122 | 122 | // step1: verify request |
123 | - $verifyResponse = (int)$soap->bpVerifyRequest($data)->return; |
|
123 | + $verifyResponse = (int) $soap->bpVerifyRequest($data)->return; |
|
124 | 124 | if ($verifyResponse != 0) { |
125 | 125 | // rollback money and throw exception |
126 | 126 | // avoid rollback if request was already verified |