@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | public function __construct(Invoice $invoice, $settings) |
39 | 39 | { |
40 | 40 | $this->invoice($invoice); |
41 | - $this->settings = (object)$settings; |
|
41 | + $this->settings = (object) $settings; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | // purchase was not successful |
66 | 66 | if ($data[0] != "0") { |
67 | - throw new PurchaseFailedException($this->translateStatus($data[0]), (int)$data[0]); |
|
67 | + throw new PurchaseFailedException($this->translateStatus($data[0]), (int) $data[0]); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | $this->invoice->transactionId($data[1]); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $soap = new \SoapClient($this->settings->apiVerificationUrl); |
114 | 114 | |
115 | 115 | // step1: verify request |
116 | - $verifyResponse = (int)$soap->bpVerifyRequest($data)->return; |
|
116 | + $verifyResponse = (int) $soap->bpVerifyRequest($data)->return; |
|
117 | 117 | if ($verifyResponse != 0) { |
118 | 118 | // rollback money and throw exception |
119 | 119 | // avoid rollback if request was already verified |
@@ -55,8 +55,8 @@ |
||
55 | 55 | $context = stream_context_create( |
56 | 56 | [ |
57 | 57 | 'ssl' => array( |
58 | - 'verify_peer' => false, |
|
59 | - 'verify_peer_name' => false |
|
58 | + 'verify_peer' => false, |
|
59 | + 'verify_peer_name' => false |
|
60 | 60 | )] |
61 | 61 | ); |
62 | 62 |