Completed
Pull Request — master (#40)
by Бабичев
05:21
created
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.
src/Traits/HasGift.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         /**
55 55
          * @return Transfer
56 56
          */
57
-        $callback = function () use ($santa, $product, $force) {
57
+        $callback = function() use ($santa, $product, $force) {
58 58
             $amount = $product->getAmountProduct();
59 59
             $meta = $product->getMetaProduct();
60 60
             $fee = app(WalletService::class)
Please login to merge, or discard this patch.
src/Services/WalletService.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 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/Traits/HasWallet.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             $this->exists or $this->save();
113 113
             $proxy = app(ProxyService::class);
114 114
             if (!$proxy->has($this->getKey())) {
115
-                $proxy->set($this->getKey(), (int)($this->attributes['balance'] ?? 0));
115
+                $proxy->set($this->getKey(), (int) ($this->attributes['balance'] ?? 0));
116 116
             }
117 117
 
118 118
             return $proxy[$this->getKey()];
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function transfer(Wallet $wallet, int $amount, ?array $meta = null, string $status = Transfer::STATUS_TRANSFER): Transfer
164 164
     {
165
-        return DB::transaction(function () use ($amount, $wallet, $meta, $status) {
165
+        return DB::transaction(function() use ($amount, $wallet, $meta, $status) {
166 166
             $fee = app(WalletService::class)
167 167
                 ->fee($wallet, $amount);
168 168
 
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
      */
276 276
     public function forceTransfer(Wallet $wallet, int $amount, ?array $meta = null, string $status = Transfer::STATUS_TRANSFER): Transfer
277 277
     {
278
-        return DB::transaction(function () use ($amount, $wallet, $meta, $status) {
278
+        return DB::transaction(function() use ($amount, $wallet, $meta, $status) {
279 279
             $fee = app(WalletService::class)
280 280
                 ->fee($wallet, $amount);
281 281
 
Please login to merge, or discard this patch.
src/Services/CommonService.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
      */
19 19
     public function enforce(bool $dbTran, Wallet $self, array $transactions): array
20 20
     {
21
-        $callback = function () use ($self, $transactions) {
21
+        $callback = function() use ($self, $transactions) {
22 22
             $objects = [];
23 23
 
24 24
             foreach ($transactions as $transaction) {
Please login to merge, or discard this patch.