Passed
Push — master ( 9b8ddc...ff46a8 )
by mahdi
02:54
created
src/Drivers/Behpardakht/Behpardakht.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         $soap = new \SoapClient($this->settings->apiVerificationUrl);
112 112
 
113 113
         // step1: verify request
114
-        $verifyResponse = (int)$soap->bpVerifyRequest($data, $this->settings->apiNamespaceUrl)->return;
114
+        $verifyResponse = (int) $soap->bpVerifyRequest($data, $this->settings->apiNamespaceUrl)->return;
115 115
         if ($verifyResponse != 0) {
116 116
             // rollback money and throw exception
117 117
             $soap->bpReversalRequest($data, $this->settings->apiNamespaceUrl);
Please login to merge, or discard this patch.
src/Drivers/Pasargad/Utils/RSA.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             $block_type = "\x01";
92 92
             $padding = str_repeat("\xFF", $pad_length);
93 93
         }
94
-        return "\x00" . $block_type . $padding . "\x00" . $data;
94
+        return "\x00".$block_type.$padding."\x00".$data;
95 95
     }
96 96
 
97 97
     public static function removePKCS1Padding($data, $blocksize)
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         while ($div > 0) {
137 137
             $mod = bcmod($div, $base);
138 138
             $div = bcdiv($div, $base);
139
-            $result = chr($mod) . $result;
139
+            $result = chr($mod).$result;
140 140
         }
141 141
         return str_pad($result, $blocksize, "\x00", STR_PAD_LEFT);
142 142
     }
Please login to merge, or discard this patch.
src/Drivers/Pasargad/Pasargad.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 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());
196
+        $invoiceNumber = crc32($this->invoice->getUuid()).rand(0, time());
197 197
         $timeStamp = date("Y/m/d H:i:s");
198 198
         $invoiceDate = date("Y/m/d H:i:s");
199 199
 
Please login to merge, or discard this patch.
src/EventEmitter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             return;
71 71
         }
72 72
 
73
-        array_walk($listeners[$event], function ($listener) use ($arguments) {
73
+        array_walk($listeners[$event], function($listener) use ($arguments) {
74 74
             call_user_func_array($listener, $arguments);
75 75
         });
76 76
     }
Please login to merge, or discard this patch.
src/RedirectionForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
      */
105 105
     protected function getDefaultViewRenderer() : callable
106 106
     {
107
-        return function (string $view, string $action, array $inputs, string $method) {
107
+        return function(string $view, string $action, array $inputs, string $method) {
108 108
             ob_start();
109 109
 
110 110
             require($view);
Please login to merge, or discard this patch.