@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function checkPoolsSubscriptions() |
| 33 | 33 | { |
| 34 | - if($this->tenantService->round()->pools()->whereDoesntHave('subscriptions')->count() > 0) |
|
| 34 | + if ($this->tenantService->round()->pools()->whereDoesntHave('subscriptions')->count() > 0) |
|
| 35 | 35 | { |
| 36 | 36 | throw new MessageException(trans('tontine.errors.action') . |
| 37 | 37 | '<br/>' . trans('tontine.pool.errors.no_subscription')); |
@@ -94,14 +94,14 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function openSession(Session $session) |
| 96 | 96 | { |
| 97 | - if($session->pending) |
|
| 97 | + if ($session->pending) |
|
| 98 | 98 | { |
| 99 | 99 | // If the session is getting opened for the first time, then |
| 100 | 100 | // its also needs to get synced with charges and subscriptions. |
| 101 | 101 | $this->syncSession($session); |
| 102 | 102 | return; |
| 103 | 103 | } |
| 104 | - if(!$session->opened) |
|
| 104 | + if (!$session->opened) |
|
| 105 | 105 | { |
| 106 | 106 | // Open the session |
| 107 | 107 | $session->update(['status' => Session::STATUS_OPENED]); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | public function open(int $sessionId) |
| 85 | 85 | { |
| 86 | - if(!($session = $this->sessionService->getSession($sessionId)) || $session->opened) |
|
| 86 | + if (!($session = $this->sessionService->getSession($sessionId)) || $session->opened) |
|
| 87 | 87 | { |
| 88 | 88 | $this->notify->error(trans('tontine.session.errors.opened'), trans('common.titles.error')); |
| 89 | 89 | return $this->page(); |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | public function close(int $sessionId) |
| 98 | 98 | { |
| 99 | - if(!($session = $this->sessionService->getSession($sessionId)) || !$session->opened) |
|
| 99 | + if (!($session = $this->sessionService->getSession($sessionId)) || !$session->opened) |
|
| 100 | 100 | { |
| 101 | 101 | $this->notify->error(trans('tontine.session.errors.not_opened'), trans('common.titles.error')); |
| 102 | 102 | return $this->page(); |