Passed
Push — master ( cd63ce...cabec1 )
by Бабичев
07:38 queued 11s
created
src/Traits/HasGift.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
                 /**
74 74
                  * Santa pays taxes.
75 75
                  */
76
-                if (! $force) {
76
+                if (!$force) {
77 77
                     $commonService->verifyWithdraw($santa, $math->add($amount, $fee));
78 78
                 }
79 79
 
Please login to merge, or discard this patch.
src/Models/Transfer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      */
75 75
     public function getTable(): string
76 76
     {
77
-        if (! $this->table) {
77
+        if (!$this->table) {
78 78
             $this->table = config('wallet.transfer.table', 'transfers');
79 79
         }
80 80
 
Please login to merge, or discard this patch.
src/Models/Transaction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      */
72 72
     public function getTable(): string
73 73
     {
74
-        if (! $this->table) {
74
+        if (!$this->table) {
75 75
             $this->table = config('wallet.transaction.table', 'transactions');
76 76
         }
77 77
 
Please login to merge, or discard this patch.
src/Models/Wallet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function getTable(): string
75 75
     {
76
-        if (! $this->table) {
76
+        if (!$this->table) {
77 77
             $this->table = config('wallet.wallet.table', 'wallets');
78 78
         }
79 79
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
          * Must be updated only if the model does not exist
93 93
          *  or the slug is empty.
94 94
          */
95
-        if (! $this->exists && ! array_key_exists('slug', $this->attributes)) {
95
+        if (!$this->exists && !array_key_exists('slug', $this->attributes)) {
96 96
             $this->attributes['slug'] = Str::slug($name);
97 97
         }
98 98
     }
Please login to merge, or discard this patch.
src/Services/LockService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function lock($self, string $name, \Closure $closure)
35 35
     {
36
-        return $this->lockProvider($self, $name, (int) config('wallet.lock.seconds', 1))
36
+        return $this->lockProvider($self, $name, (int)config('wallet.lock.seconds', 1))
37 37
             ->get($this->bindTo($self, $closure));
38 38
     }
39 39
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     protected function bindTo($self, \Closure $closure): \Closure
47 47
     {
48 48
         $reflect = new \ReflectionFunction($closure);
49
-        if (strpos((string) $reflect, 'static') === false) {
49
+        if (strpos((string)$reflect, 'static') === false) {
50 50
             return $closure->bindTo($self);
51 51
         }
52 52
 
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
         // @codeCoverageIgnoreStart
83 83
         if ($enabled && $store instanceof LockProvider) {
84 84
             $class = \get_class($self);
85
-            $uniqId = $class.$this->uniqId;
85
+            $uniqId = $class . $this->uniqId;
86 86
             if ($self instanceof Model) {
87
-                $uniqId = $class.$self->getKey();
87
+                $uniqId = $class . $self->getKey();
88 88
             }
89 89
 
90 90
             return $store->lock("$name.$uniqId", $seconds);
Please login to merge, or discard this patch.
src/Services/WalletService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
          */
113 113
         $wallet = $object;
114 114
 
115
-        if (! ($object instanceof WalletModel)) {
115
+        if (!($object instanceof WalletModel)) {
116 116
             /**
117 117
              * @var HasWallet $object
118 118
              */
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             $wallet->balance = $balance;
141 141
 
142 142
             return app(Storable::class)->setBalance($wallet, $balance) &&
143
-                (! $math->compare($whatIs, $balance) || $wallet->save());
143
+                (!$math->compare($whatIs, $balance) || $wallet->save());
144 144
         });
145 145
     }
146 146
 }
Please login to merge, or discard this patch.
src/Services/CommonService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
148 148
         /**
149 149
          * @var HasWallet $wallet
150 150
          */
151
-        if ($amount && ! $wallet->balance) {
151
+        if ($amount && !$wallet->balance) {
152 152
             throw new BalanceIsEmpty(trans('wallet::errors.wallet_empty'));
153 153
         }
154 154
 
155
-        if (! $wallet->canWithdraw($amount, $allowZero)) {
155
+        if (!$wallet->canWithdraw($amount, $allowZero)) {
156 156
             throw new InsufficientFunds(trans('wallet::errors.insufficient_funds'));
157 157
         }
158 158
     }
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
                 throw $throwable;
247 247
             }
248 248
 
249
-            if (! $result) {
249
+            if (!$result) {
250 250
                 app(Storable::class)
251 251
                     ->setBalance($wallet, $wallet->getAvailableBalance());
252 252
             }
Please login to merge, or discard this patch.