@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | if (empty($blocks[$block->wallet->currency_id])) { |
103 | 103 | $blocks[$block->wallet->currency_id] = $block->amount; |
104 | 104 | } else { |
105 | - $blocks[$block->wallet->currency_id]+= $block->amount; |
|
105 | + $blocks[$block->wallet->currency_id] += $block->amount; |
|
106 | 106 | } |
107 | 107 | } |
108 | 108 | return $blocks; |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | $rootUser = $rootUser ? $rootUser : \Users\User::$cur; |
169 | 169 | $reward = \Money\Reward::get($reward_id); |
170 | 170 | $reward->checkBlocked(); |
171 | - $reward_count = \Money\Reward\Recive::getCount([ 'where' => [ 'reward_id', $reward_id]]); |
|
171 | + $reward_count = \Money\Reward\Recive::getCount(['where' => ['reward_id', $reward_id]]); |
|
172 | 172 | if ($reward_count >= $reward->quantity && $reward->quantity) |
173 | 173 | return false; |
174 | 174 | $types = $this->getSnippets('rewardType'); |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | $recives = \Money\Reward\Recive::getList(['where' => [['user_id', $user->id], ['reward_id', $reward->id]]]); |
190 | 190 | $amount = 0; |
191 | 191 | foreach ($recives as $recive) { |
192 | - $amount+=$recive->amount; |
|
192 | + $amount += $recive->amount; |
|
193 | 193 | } |
194 | 194 | if ($amount >= $reward->peruser) { |
195 | 195 | continue; |