@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | public function recalculate() |
| 45 | 45 | { |
| 46 | - if (! $this->user instanceof User) { |
|
| 46 | + if ( ! $this->user instanceof User) { |
|
| 47 | 47 | throw new InvalidDataException("User not set"); |
| 48 | 48 | } |
| 49 | 49 | $runningTotal = 0; |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function getBalanceSign() |
| 98 | 98 | { |
| 99 | - return ( (int) $this->getBalance() >= 0 ? 'positive' : 'negative' ); |
|
| 99 | + return ((int)$this->getBalance() >= 0 ? 'positive' : 'negative'); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | public function getBalanceFormatted() |