Skip to content

Commit

Permalink
Merge pull request #7 from bavix/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
rez1dent3 authored Nov 8, 2018
2 parents e296177 + c2c95d8 commit 2a7196c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/HasWallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ public function getBalanceAttribute(): int
*/
$collection = $this->getRelation('balance');
$relation = $collection->first();
static::$cachedBalances[$this->getKey()] = (int)($relation->total ?? 0);
static::$cachedBalances[$this->getKey()] = (int) ($relation->total ?? 0);
}

return static::$cachedBalances[$this->getKey()];
Expand Down

0 comments on commit 2a7196c

Please sign in to comment.