Completed
Push — master ( 30b45b...626a2a )
by Dmitry
15s
created
src/merchants/stripe/StripeMerchant.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                 throw new MerchantException('Response is not successful');
85 85
             }
86 86
         } catch (Exception $exception) {
87
-            throw new MerchantException('Failed to refund a card: ' . $exception->getMessage(), $exception->getCode(), $exception);
87
+            throw new MerchantException('Failed to refund a card: '.$exception->getMessage(), $exception->getCode(), $exception);
88 88
         }
89 89
     }
90 90
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 throw new MerchantException($response->getData()['message']);
101 101
             }
102 102
         } catch (Exception $exception) {
103
-            throw new MerchantException('Failed to remove a card: ' . $exception->getMessage(), $exception->getCode(), $exception);
103
+            throw new MerchantException('Failed to remove a card: '.$exception->getMessage(), $exception->getCode(), $exception);
104 104
         }
105 105
     }
106 106
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                 'confirm' => true,
120 120
             ], $ignore3dSecure))->send();
121 121
         } catch (Exception $exception) {
122
-            throw new MerchantException('Failed to charge a card: ' . $exception->getMessage(), $exception->getCode(), $exception);
122
+            throw new MerchantException('Failed to charge a card: '.$exception->getMessage(), $exception->getCode(), $exception);
123 123
         }
124 124
 
125 125
         if ($response->isRedirect()) {
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 
199 199
         if (isset($response->getData()['error']['message']) || isset($response->getData()['last_payment_error']['message'])) {
200 200
             $message = $response->getData()['error']['message'] ?? $response->getData()['last_payment_error']['message'];
201
-            throw new MerchantException("Failed to charge card:\n" . $message);
201
+            throw new MerchantException("Failed to charge card:\n".$message);
202 202
         }
203 203
 
204 204
         throw new MerchantException('Failed to charge card');
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
                 'capture_method' => 'manual'
270 270
             ], $ignore3dSecure))->send();
271 271
         } catch (Exception $exception) {
272
-            throw new MerchantException('Failed to authorize a payment card: ' . $exception->getMessage(), $exception->getCode(), $exception);
272
+            throw new MerchantException('Failed to authorize a payment card: '.$exception->getMessage(), $exception->getCode(), $exception);
273 273
         }
274 274
 
275 275
         if ($response->isRedirect()) {
@@ -311,10 +311,10 @@  discard block
 block discarded – undo
311 311
             ])->send();
312 312
 
313 313
             if (!$response->isCancelled()) {
314
-                throw new MerchantException('Payment has not been canceled, actual status: ' . $response->getStatus());
314
+                throw new MerchantException('Payment has not been canceled, actual status: '.$response->getStatus());
315 315
             }
316 316
         } catch (Exception $exception) {
317
-            throw new MerchantException('Failed to cancel a card authorization: ' . $exception->getMessage(), $exception->getCode(), $exception);
317
+            throw new MerchantException('Failed to cancel a card authorization: '.$exception->getMessage(), $exception->getCode(), $exception);
318 318
         }
319 319
     }
320 320
 }
Please login to merge, or discard this patch.