Passed
Pull Request — master (#141)
by
unknown
05:47 queued 03:21
created
src/Drivers/Pasargad/Pasargad.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             'InvoiceNumber' => $invoiceDetails['InvoiceNumber'],
110 110
             'InvoiceDate' => $invoiceDetails['InvoiceDate'],
111 111
             'Amount' => $invoiceDetails['Amount'],
112
-            'Timestamp' => (new \DateTime("now", new \DateTimeZone('Asia/Tehran') ))->format("Y/m/d H:i:s"),
112
+            'Timestamp' => (new \DateTime("now", new \DateTimeZone('Asia/Tehran')))->format("Y/m/d H:i:s"),
113 113
         ];
114 114
 
115 115
         $verifyResult = $this->request($this->settings->apiVerificationUrl, $fields);
@@ -193,9 +193,9 @@  discard block
 block discarded – undo
193 193
         $terminalCode = $this->settings->terminalCode;
194 194
         $amount = $this->invoice->getAmount(); //rial
195 195
         $redirectAddress = $this->settings->callbackUrl;
196
-        $invoiceNumber = crc32($this->invoice->getUuid()) . rand(0, time());
197
-        $timeStamp = (new \DateTime("now", new \DateTimeZone('Asia/Tehran') ))->format("Y/m/d H:i:s");
198
-        $invoiceDate = (new \DateTime("now", new \DateTimeZone('Asia/Tehran') ))->format("Y/m/d H:i:s");
196
+        $invoiceNumber = crc32($this->invoice->getUuid()).rand(0, time());
197
+        $timeStamp = (new \DateTime("now", new \DateTimeZone('Asia/Tehran')))->format("Y/m/d H:i:s");
198
+        $invoiceDate = (new \DateTime("now", new \DateTimeZone('Asia/Tehran')))->format("Y/m/d H:i:s");
199 199
 
200 200
         if (!empty($this->invoice->getDetails()['date'])) {
201 201
             $invoiceDate = $this->invoice->getDetails()['date'];
Please login to merge, or discard this patch.