Passed
Pull Request — master (#51)
by Бабичев
06:25
created
src/Services/WalletService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function fee(Wallet $wallet, int $amount): int
23 23
     {
24 24
         if ($wallet instanceof Taxable) {
25
-            return (int)($amount * $wallet->getFeePercent() / 100);
25
+            return (int) ($amount * $wallet->getFeePercent() / 100);
26 26
         }
27 27
 
28 28
         return 0;
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $wallet->exists or $wallet->save();
68 68
         $proxy = app(ProxyService::class);
69 69
         if (!$proxy->has($wallet->getKey())) {
70
-            $proxy->set($wallet->getKey(), (int)$wallet->getOriginal('balance', 0));
70
+            $proxy->set($wallet->getKey(), (int) $wallet->getOriginal('balance', 0));
71 71
         }
72 72
 
73 73
         return $proxy[$wallet->getKey()];
Please login to merge, or discard this patch.