Passed
Push — master ( 8fb633...075a6a )
by mahdi
06:46
created
src/Drivers/Zarinpal/Strategies/Normal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $result = json_decode($response->getBody()->getContents(), true);
102 102
 
103 103
         // some error has happened        
104
-        if (! empty($result['errors']) || empty($result['data']) || $result['data']['code'] != 100) {            
104
+        if (!empty($result['errors']) || empty($result['data']) || $result['data']['code'] != 100) {            
105 105
             throw new PurchaseFailedException($result['errors']['message'], $result['errors']['code']);
106 106
         }
107 107
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
         $result = json_decode($response->getBody()->getContents(), true);
159 159
 
160
-        if (empty($result['data']) || ! isset($result['data']['ref_id']) || $result['data']['code'] != 100) {
160
+        if (empty($result['data']) || !isset($result['data']['ref_id']) || $result['data']['code'] != 100) {
161 161
             $message = $result['errors']['message'];
162 162
             $code = $result['errors']['code'];
163 163
 
Please login to merge, or discard this patch.
src/Drivers/Zarinpal/Zarinpal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
     {
94 94
         $strategy = static::$strategies[$this->getMode()] ?? null;
95 95
 
96
-        if (! $strategy) {
96
+        if (!$strategy) {
97 97
             $this->strategyNotFound();
98 98
         }
99 99
 
Please login to merge, or discard this patch.