Completed
Push — master ( 47e1e3...56dae8 )
by Бабичев
13:00 queued 09:25
created
src/Tax.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     public static function fee(Wallet $wallet, int $amount): int
19 19
     {
20 20
         if ($wallet instanceof Taxing) {
21
-            return (int)($amount * $wallet->getFeePercent() / 100);
21
+            return (int) ($amount * $wallet->getFeePercent() / 100);
22 22
         }
23 23
 
24 24
         return 0;
Please login to merge, or discard this patch.
src/WalletProxy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public static function get(int $key): int
27 27
     {
28
-        return (int)(static::$rows[$key] ?? 0);
28
+        return (int) (static::$rows[$key] ?? 0);
29 29
     }
30 30
 
31 31
     /**
Please login to merge, or discard this patch.
src/Traits/HasGift.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         /**
38 38
          * @return Transfer
39 39
          */
40
-        $callback = function () use ($santa, $product, $force) {
40
+        $callback = function() use ($santa, $product, $force) {
41 41
             $amount = $product->getAmountProduct();
42 42
             $meta = $product->getMetaProduct();
43 43
             $fee = Tax::fee($product, $amount);
Please login to merge, or discard this patch.
src/Traits/CanPay.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
                 ->setModel($this->transfers()->getMorphClass());
112 112
         }
113 113
 
114
-        return DB::transaction(function () use ($product, $transfer, $force) {
114
+        return DB::transaction(function() use ($product, $transfer, $force) {
115 115
             $transfer->load('withdraw.payable');
116 116
 
117 117
             if ($force) {
Please login to merge, or discard this patch.
src/Traits/HasWallet.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     protected function change(string $type, int $amount, ?array $meta, bool $confirmed): Transaction
72 72
     {
73
-        return DB::transaction(function () use ($type, $amount, $meta, $confirmed) {
73
+        return DB::transaction(function() use ($type, $amount, $meta, $confirmed) {
74 74
 
75 75
             $wallet = $this;
76 76
             if (!($this instanceof WalletModel)) {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
         if ($this instanceof WalletModel) {
143 143
             $this->exists or $this->save();
144 144
             if (!WalletProxy::has($this->getKey())) {
145
-                WalletProxy::set($this->getKey(), (int)($this->attributes['balance'] ?? 0));
145
+                WalletProxy::set($this->getKey(), (int) ($this->attributes['balance'] ?? 0));
146 146
             }
147 147
 
148 148
             return WalletProxy::get($this->getKey());
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function transfer(Wallet $wallet, int $amount, ?array $meta = null, string $status = Transfer::STATUS_TRANSFER): Transfer
194 194
     {
195
-        return DB::transaction(function () use ($amount, $wallet, $meta, $status) {
195
+        return DB::transaction(function() use ($amount, $wallet, $meta, $status) {
196 196
             $fee = Tax::fee($wallet, $amount);
197 197
             $withdraw = $this->withdraw($amount + $fee, $meta);
198 198
             $deposit = $wallet->deposit($amount, $meta);
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      */
289 289
     public function forceTransfer(Wallet $wallet, int $amount, ?array $meta = null, string $status = Transfer::STATUS_TRANSFER): Transfer
290 290
     {
291
-        return DB::transaction(function () use ($amount, $wallet, $meta, $status) {
291
+        return DB::transaction(function() use ($amount, $wallet, $meta, $status) {
292 292
             $fee = Tax::fee($wallet, $amount);
293 293
             $withdraw = $this->forceWithdraw($amount + $fee, $meta);
294 294
             $deposit = $wallet->deposit($amount, $meta);
Please login to merge, or discard this patch.
src/WalletServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
         }
26 26
 
27 27
         $this->loadMigrationsFrom([
28
-            __DIR__.'/../database/migrations_v1',
29
-            __DIR__.'/../database/migrations_v2',
28
+            __DIR__ . '/../database/migrations_v1',
29
+            __DIR__ . '/../database/migrations_v2',
30 30
         ]);
31 31
 
32 32
         if (\function_exists('config_path')) {
Please login to merge, or discard this patch.