@@ -70,7 +70,7 @@ |
||
| 70 | 70 | case 'manual': |
| 71 | 71 | return 'Manual'; |
| 72 | 72 | case 'cash': |
| 73 | - return 'Cash' . ($this->entity->source_id? ' (' . $this->entity->source_id . ')':''); |
|
| 73 | + return 'Cash' . ($this->entity->source_id ? ' (' . $this->entity->source_id . ')' : ''); |
|
| 74 | 74 | case 'other': |
| 75 | 75 | return 'Other'; |
| 76 | 76 | case 'balance': |
@@ -358,7 +358,7 @@ |
||
| 358 | 358 | |
| 359 | 359 | if ($amount < 5) { |
| 360 | 360 | throw new ValidationException('The minimum subscription is 5 GBP'); |
| 361 | - } elseif (!\Auth::user()->isAdmin() && ($amount < 15)) { |
|
| 361 | + } elseif ( ! \Auth::user()->isAdmin() && ($amount < 15)) { |
|
| 362 | 362 | throw new ValidationException('The minimum subscription is 15 GBP, please contact the trustees for a lower amount. [email protected]'); |
| 363 | 363 | } |
| 364 | 364 | |
@@ -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() |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | public function index() |
| 34 | 34 | { |
| 35 | - $users = $this->userRepository->getActivePublicList(!\Auth::guest()); |
|
| 35 | + $users = $this->userRepository->getActivePublicList( ! \Auth::guest()); |
|
| 36 | 36 | return \View::make('members.index')->withUsers($users); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | return \Response::make('', 404); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - if (!$user->active) { |
|
| 47 | + if ( ! $user->active) { |
|
| 48 | 48 | return \Response::make('', 404); |
| 49 | 49 | } |
| 50 | 50 | |