Passed
Pull Request — master (#84)
by
unknown
02:18
created
src/Drivers/Behpardakht/Behpardakht.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.