Passed
Push — master ( bd1c00...390367 )
by mahdi
02:25
created
src/Drivers/Behpardakht/Behpardakht.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 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
 
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
         $context = stream_context_create(
125 125
             [
126 126
             'ssl' => array(
127
-              'verify_peer'       => false,
128
-              'verify_peer_name'  => false
127
+                'verify_peer'       => false,
128
+                'verify_peer_name'  => false
129 129
             )]
130 130
         );
131 131
 
Please login to merge, or discard this patch.
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
     /**
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         // purchase was not successful
76 76
         if ($data[0] != "0") {
77
-            throw new PurchaseFailedException($this->translateStatus($data[0]), (int)$data[0]);
77
+            throw new PurchaseFailedException($this->translateStatus($data[0]), (int) $data[0]);
78 78
         }
79 79
 
80 80
         $this->invoice->transactionId($data[1]);
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         ]);
135 135
 
136 136
         // step1: verify request
137
-        $verifyResponse = (int)$soap->bpVerifyRequest($data)->return;
137
+        $verifyResponse = (int) $soap->bpVerifyRequest($data)->return;
138 138
         if ($verifyResponse != 0) {
139 139
             // rollback money and throw exception
140 140
             // avoid rollback if request was already verified
Please login to merge, or discard this patch.