Completed
Pull Request — master (#51)
by Бабичев
07:20
created
src/Traits/CanExchange.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
      */
27 27
     public function safeExchange(Wallet $to, int $amount): ?Transfer
28 28
     {
29
-       try {
30
-           return $this->exchange($to, $amount);
31
-       } catch (\Throwable $throwable) {
32
-           return null;
33
-       }
29
+        try {
30
+            return $this->exchange($to, $amount);
31
+        } catch (\Throwable $throwable) {
32
+            return null;
33
+        }
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
          */
45 45
         $from = app(WalletService::class)->getWallet($this);
46 46
 
47
-        return DB::transaction(function () use ($from, $to, $amount) {
47
+        return DB::transaction(function() use ($from, $to, $amount) {
48 48
             $rate = app(ExchangeService::class)->rate($from, $to);
49 49
             $fee = app(WalletService::class)->fee($to, $amount);
50 50
             $withdraw = $from->forceWithdraw($amount + $fee);
Please login to merge, or discard this patch.
src/Traits/CanConfirm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function confirm(Transaction $transaction): bool
21 21
     {
22
-        return DB::transaction(function () use ($transaction) {
22
+        return DB::transaction(function() use ($transaction) {
23 23
             $wallet = app(WalletService::class)
24 24
                 ->getWallet($this);
25 25
 
Please login to merge, or discard this patch.