@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | $this->deposits(); |
| 37 | 37 | $this->remitments(); |
| 38 | - if($isFinancial) |
|
| 38 | + if ($isFinancial) |
|
| 39 | 39 | { |
| 40 | 40 | $this->fundings(); |
| 41 | 41 | $this->loans(); |
@@ -34,12 +34,12 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | // Don't show the page if there is no session or no member. |
| 36 | 36 | $sessions = $this->sessionService->getSessions(); |
| 37 | - if($sessions->count() === 0) |
|
| 37 | + if ($sessions->count() === 0) |
|
| 38 | 38 | { |
| 39 | 39 | return $this->response; |
| 40 | 40 | } |
| 41 | 41 | $members = $this->sessionService->getMembers(); |
| 42 | - if($members->count() === 0) |
|
| 42 | + if ($members->count() === 0) |
|
| 43 | 43 | { |
| 44 | 44 | return $this->response; |
| 45 | 45 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | $tontine = $this->sessionService->getTontine(); |
| 65 | 65 | $session = $this->sessionService->getSession($sessionId); |
| 66 | - if($memberId === 0) |
|
| 66 | + if ($memberId === 0) |
|
| 67 | 67 | { |
| 68 | 68 | return $this->cl(Session::class)->show($session, $tontine->is_financial, $this->sessionSummaryService); |
| 69 | 69 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | public function addFunding() |
| 81 | 81 | { |
| 82 | - if($this->session->closed) |
|
| 82 | + if ($this->session->closed) |
|
| 83 | 83 | { |
| 84 | 84 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 85 | 85 | return $this->response; |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | 'title' => trans('common.actions.cancel'), |
| 94 | 94 | 'class' => 'btn btn-tertiary', |
| 95 | 95 | 'click' => 'close', |
| 96 | - ],[ |
|
| 96 | + ], [ |
|
| 97 | 97 | 'title' => trans('common.actions.save'), |
| 98 | 98 | 'class' => 'btn btn-primary', |
| 99 | 99 | 'click' => $this->rq()->saveFunding(pm()->form('funding-form')), |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | public function saveFunding(array $formValues) |
| 111 | 111 | { |
| 112 | - if($this->session->closed) |
|
| 112 | + if ($this->session->closed) |
|
| 113 | 113 | { |
| 114 | 114 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 115 | 115 | return $this->response; |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | public function deleteFunding(int $fundingId) |
| 136 | 136 | { |
| 137 | - if($this->session->closed) |
|
| 137 | + if ($this->session->closed) |
|
| 138 | 138 | { |
| 139 | 139 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 140 | 140 | return $this->response; |
@@ -83,14 +83,14 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | public function addLoan() |
| 85 | 85 | { |
| 86 | - if($this->session->closed) |
|
| 86 | + if ($this->session->closed) |
|
| 87 | 87 | { |
| 88 | 88 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 89 | 89 | return $this->response; |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | $amountAvailable = $this->loanService->getAmountAvailable($this->session); |
| 93 | - if($amountAvailable <= 0) |
|
| 93 | + if ($amountAvailable <= 0) |
|
| 94 | 94 | { |
| 95 | 95 | return $this->response; |
| 96 | 96 | } |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | 'title' => trans('common.actions.cancel'), |
| 105 | 105 | 'class' => 'btn btn-tertiary', |
| 106 | 106 | 'click' => 'close', |
| 107 | - ],[ |
|
| 107 | + ], [ |
|
| 108 | 108 | 'title' => trans('common.actions.save'), |
| 109 | 109 | 'class' => 'btn btn-primary', |
| 110 | 110 | 'click' => $this->rq()->saveLoan(pm()->form('loan-form')), |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | public function saveLoan(array $formValues) |
| 122 | 122 | { |
| 123 | - if($this->session->closed) |
|
| 123 | + if ($this->session->closed) |
|
| 124 | 124 | { |
| 125 | 125 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 126 | 126 | return $this->response; |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | */ |
| 148 | 148 | public function deleteLoan(int $loanId) |
| 149 | 149 | { |
| 150 | - if($this->session->closed) |
|
| 150 | + if ($this->session->closed) |
|
| 151 | 151 | { |
| 152 | 152 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 153 | 153 | return $this->response; |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | public function addSettlement(int $billId) |
| 118 | 118 | { |
| 119 | - if($this->session->closed) |
|
| 119 | + if ($this->session->closed) |
|
| 120 | 120 | { |
| 121 | 121 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 122 | 122 | return $this->response; |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | */ |
| 136 | 136 | public function delSettlement(int $billId) |
| 137 | 137 | { |
| 138 | - if($this->session->closed) |
|
| 138 | + if ($this->session->closed) |
|
| 139 | 139 | { |
| 140 | 140 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 141 | 141 | return $this->response; |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | public function addFine(int $memberId) |
| 116 | 116 | { |
| 117 | - if($this->session->closed) |
|
| 117 | + if ($this->session->closed) |
|
| 118 | 118 | { |
| 119 | 119 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 120 | 120 | return $this->response; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | */ |
| 133 | 133 | public function delFine(int $memberId) |
| 134 | 134 | { |
| 135 | - if($this->session->closed) |
|
| 135 | + if ($this->session->closed) |
|
| 136 | 136 | { |
| 137 | 137 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 138 | 138 | return $this->response; |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | public function createRefund(string $loanId) |
| 118 | 118 | { |
| 119 | - if($this->session->closed) |
|
| 119 | + if ($this->session->closed) |
|
| 120 | 120 | { |
| 121 | 121 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 122 | 122 | return $this->response; |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | public function deleteRefund(int $refundId) |
| 139 | 139 | { |
| 140 | - if($this->session->closed) |
|
| 140 | + if ($this->session->closed) |
|
| 141 | 141 | { |
| 142 | 142 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 143 | 143 | return $this->response; |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $sessionId = $this->bag('meeting')->get('session.id'); |
| 60 | 60 | |
| 61 | 61 | // No pool id on the "home" page |
| 62 | - if($this->target()->method() === 'home') |
|
| 62 | + if ($this->target()->method() === 'home') |
|
| 63 | 63 | { |
| 64 | 64 | $this->session = $this->poolService->getSession($sessionId); |
| 65 | 65 | return; |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $poolId = $this->target()->method() === 'pool' ? |
| 70 | 70 | $this->target()->args()[0] : $this->bag('meeting')->get('pool.id'); |
| 71 | 71 | $this->pool = $this->remitmentService->getPool($poolId); |
| 72 | - if($this->session->disabled($this->pool)) |
|
| 72 | + if ($this->session->disabled($this->pool)) |
|
| 73 | 73 | { |
| 74 | 74 | $this->notify->error(trans('tontine.session.errors.disabled'), trans('common.titles.error')); |
| 75 | 75 | $this->pool = null; |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | |
| 143 | 143 | public function addRemitment() |
| 144 | 144 | { |
| 145 | - if($this->session->closed) |
|
| 145 | + if ($this->session->closed) |
|
| 146 | 146 | { |
| 147 | 147 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 148 | 148 | return $this->response; |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | 'title' => trans('common.actions.cancel'), |
| 157 | 157 | 'class' => 'btn btn-tertiary', |
| 158 | 158 | 'click' => 'close', |
| 159 | - ],[ |
|
| 159 | + ], [ |
|
| 160 | 160 | 'title' => trans('common.actions.save'), |
| 161 | 161 | 'class' => 'btn btn-primary', |
| 162 | 162 | 'click' => $this->rq()->saveRemitment(pm()->form('remitment-form')), |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | */ |
| 175 | 175 | public function saveRemitment(array $formValues) |
| 176 | 176 | { |
| 177 | - if($this->session->closed) |
|
| 177 | + if ($this->session->closed) |
|
| 178 | 178 | { |
| 179 | 179 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 180 | 180 | return $this->response; |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | */ |
| 198 | 198 | public function deleteRemitment(int $subscriptionId) |
| 199 | 199 | { |
| 200 | - if($this->session->closed) |
|
| 200 | + if ($this->session->closed) |
|
| 201 | 201 | { |
| 202 | 202 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 203 | 203 | return $this->response; |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $sessionId = $this->bag('meeting')->get('session.id'); |
| 47 | 47 | |
| 48 | 48 | // No pool id on the "home" page |
| 49 | - if($this->target()->method() === 'home') |
|
| 49 | + if ($this->target()->method() === 'home') |
|
| 50 | 50 | { |
| 51 | 51 | $this->session = $this->poolService->getSession($sessionId); |
| 52 | 52 | return; |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $poolId = $this->target()->method() === 'pool' ? |
| 57 | 57 | $this->target()->args()[0] : $this->bag('meeting')->get('pool.id'); |
| 58 | 58 | $this->pool = $this->remitmentService->getPool($poolId); |
| 59 | - if($this->session->disabled($this->pool)) |
|
| 59 | + if ($this->session->disabled($this->pool)) |
|
| 60 | 60 | { |
| 61 | 61 | $this->notify->error(trans('tontine.session.errors.disabled'), trans('common.titles.error')); |
| 62 | 62 | $this->pool = null; |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | public function saveRemitment(int $payableId) |
| 136 | 136 | { |
| 137 | - if($this->session->closed) |
|
| 137 | + if ($this->session->closed) |
|
| 138 | 138 | { |
| 139 | 139 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 140 | 140 | return $this->response; |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | */ |
| 154 | 154 | public function deleteRemitment(int $payableId) |
| 155 | 155 | { |
| 156 | - if($this->session->closed) |
|
| 156 | + if ($this->session->closed) |
|
| 157 | 157 | { |
| 158 | 158 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 159 | 159 | return $this->response; |