Passed
Pull Request — master (#52)
by
unknown
07:08
created
src/Drivers/Zarinpal/Zarinpal.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             'AdditionalData' => $this->invoice->getDetails()
75 75
         );
76 76
 
77
-        $data = json_encode($data,JSON_UNESCAPED_UNICODE);
77
+        $data = json_encode($data, JSON_UNESCAPED_UNICODE);
78 78
         $ch = curl_init($this->getPurchaseUrl());
79 79
         curl_setopt($ch, CURLOPT_USERAGENT, 'ZarinPal Rest Api v1');
80 80
         curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
83 83
         curl_setopt($ch, CURLOPT_HTTPHEADER, array(
84 84
             'Content-Type: application/json',
85
-            'Content-Length: ' . strlen($data)
85
+            'Content-Length: '.strlen($data)
86 86
         ));
87 87
         $result = curl_exec($ch);
88 88
         $result = json_decode($result);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             throw new InvalidPaymentException('عملیات پرداخت توسط کاربر لغو شد.', -22);
141 141
         }
142 142
 
143
-        $data = json_encode($data,JSON_UNESCAPED_UNICODE);
143
+        $data = json_encode($data, JSON_UNESCAPED_UNICODE);
144 144
         $ch = curl_init($this->getVerificationUrl());
145 145
         curl_setopt($ch, CURLOPT_USERAGENT, 'ZarinPal Rest Api v1');
146 146
         curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
149 149
         curl_setopt($ch, CURLOPT_HTTPHEADER, array(
150 150
             'Content-Type: application/json',
151
-            'Content-Length: ' . strlen($data)
151
+            'Content-Length: '.strlen($data)
152 152
         ));
153 153
         $result = curl_exec($ch);
154 154
         $result = json_decode($result);
Please login to merge, or discard this patch.