@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | public function addRefund() |
| 108 | 108 | { |
| 109 | - if($this->session->closed) |
|
| 109 | + if ($this->session->closed) |
|
| 110 | 110 | { |
| 111 | 111 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 112 | 112 | return $this->response; |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | 'title' => trans('common.actions.cancel'), |
| 120 | 120 | 'class' => 'btn btn-tertiary', |
| 121 | 121 | 'click' => 'close', |
| 122 | - ],[ |
|
| 122 | + ], [ |
|
| 123 | 123 | 'title' => trans('common.actions.save'), |
| 124 | 124 | 'class' => 'btn btn-primary', |
| 125 | 125 | 'click' => $this->rq()->createRefund(pm()->form('refund-form')), |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | */ |
| 135 | 135 | public function createRefund(array $formValues) |
| 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; |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | |
| 159 | 159 | public function deleteRefund(int $refundId) |
| 160 | 160 | { |
| 161 | - if($this->session->closed) |
|
| 161 | + if ($this->session->closed) |
|
| 162 | 162 | { |
| 163 | 163 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 164 | 164 | return $this->response; |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | public function addFunding() |
| 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; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | 'title' => trans('common.actions.cancel'), |
| 98 | 98 | 'class' => 'btn btn-tertiary', |
| 99 | 99 | 'click' => 'close', |
| 100 | - ],[ |
|
| 100 | + ], [ |
|
| 101 | 101 | 'title' => trans('common.actions.save'), |
| 102 | 102 | 'class' => 'btn btn-primary', |
| 103 | 103 | 'click' => $this->rq()->createFunding(pm()->form('funding-form')), |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | */ |
| 113 | 113 | public function createFunding(array $formValues) |
| 114 | 114 | { |
| 115 | - if($this->session->closed) |
|
| 115 | + if ($this->session->closed) |
|
| 116 | 116 | { |
| 117 | 117 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 118 | 118 | return $this->response; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | public function editFunding(int $fundingId) |
| 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; |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | 'title' => trans('common.actions.cancel'), |
| 147 | 147 | 'class' => 'btn btn-tertiary', |
| 148 | 148 | 'click' => 'close', |
| 149 | - ],[ |
|
| 149 | + ], [ |
|
| 150 | 150 | 'title' => trans('common.actions.save'), |
| 151 | 151 | 'class' => 'btn btn-primary', |
| 152 | 152 | 'click' => $this->rq()->updateFunding($fundingId, pm()->form('funding-form')), |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | public function updateFunding(int $fundingId, array $formValues) |
| 163 | 163 | { |
| 164 | - if($this->session->closed) |
|
| 164 | + if ($this->session->closed) |
|
| 165 | 165 | { |
| 166 | 166 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 167 | 167 | return $this->response; |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | |
| 182 | 182 | public function deleteFunding(int $fundingId) |
| 183 | 183 | { |
| 184 | - if($this->session->closed) |
|
| 184 | + if ($this->session->closed) |
|
| 185 | 185 | { |
| 186 | 186 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 187 | 187 | return $this->response; |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | public function addDisbursement() |
| 97 | 97 | { |
| 98 | - if($this->session->closed) |
|
| 98 | + if ($this->session->closed) |
|
| 99 | 99 | { |
| 100 | 100 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 101 | 101 | return $this->response; |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | 'title' => trans('common.actions.cancel'), |
| 111 | 111 | 'class' => 'btn btn-tertiary', |
| 112 | 112 | 'click' => 'close', |
| 113 | - ],[ |
|
| 113 | + ], [ |
|
| 114 | 114 | 'title' => trans('common.actions.save'), |
| 115 | 115 | 'class' => 'btn btn-primary', |
| 116 | 116 | 'click' => $this->rq()->createDisbursement(pm()->form('disbursement-form')), |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | public function createDisbursement(array $formValues) |
| 127 | 127 | { |
| 128 | - if($this->session->closed) |
|
| 128 | + if ($this->session->closed) |
|
| 129 | 129 | { |
| 130 | 130 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 131 | 131 | return $this->response; |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | public function editDisbursement(int $disbursementId) |
| 146 | 146 | { |
| 147 | - if($this->session->closed) |
|
| 147 | + if ($this->session->closed) |
|
| 148 | 148 | { |
| 149 | 149 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 150 | 150 | return $this->response; |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | 'title' => trans('common.actions.cancel'), |
| 162 | 162 | 'class' => 'btn btn-tertiary', |
| 163 | 163 | 'click' => 'close', |
| 164 | - ],[ |
|
| 164 | + ], [ |
|
| 165 | 165 | 'title' => trans('common.actions.save'), |
| 166 | 166 | 'class' => 'btn btn-primary', |
| 167 | 167 | 'click' => $this->rq()->updateDisbursement($disbursementId, pm()->form('disbursement-form')), |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | public function updateDisbursement(int $disbursementId, array $formValues) |
| 178 | 178 | { |
| 179 | - if($this->session->closed) |
|
| 179 | + if ($this->session->closed) |
|
| 180 | 180 | { |
| 181 | 181 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 182 | 182 | return $this->response; |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | |
| 196 | 196 | public function deleteDisbursement(int $disbursementId) |
| 197 | 197 | { |
| 198 | - if($this->session->closed) |
|
| 198 | + if ($this->session->closed) |
|
| 199 | 199 | { |
| 200 | 200 | $this->notify->warning(trans('meeting.warnings.session.closed')); |
| 201 | 201 | return $this->response; |
@@ -119,8 +119,7 @@ |
||
| 119 | 119 | { |
| 120 | 120 | // Show the profits only if they were saved on this session. |
| 121 | 121 | $profitSessionId = $session->round->properties['profit']['session'] ?? 0; |
| 122 | - $html = $profitSessionId !== $session->id ? '' : |
|
| 123 | - $this->view()->render('tontine.pages.report.session.session.profits', [ |
|
| 122 | + $html = $profitSessionId !== $session->id ? '' : $this->view()->render('tontine.pages.report.session.session.profits', [ |
|
| 124 | 123 | 'fundings' => $this->profitService->getDistributions($session), |
| 125 | 124 | 'profitAmount' => $session->round->properties['profit']['amount'] ?? 0, |
| 126 | 125 | ]); |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | 'title' => trans('common.actions.cancel'), |
| 95 | 95 | 'class' => 'btn btn-tertiary', |
| 96 | 96 | 'click' => 'close', |
| 97 | - ],[ |
|
| 97 | + ], [ |
|
| 98 | 98 | 'title' => trans('common.actions.save'), |
| 99 | 99 | 'class' => 'btn btn-primary', |
| 100 | 100 | 'click' => $this->rq()->create(pm()->form('session-form')), |
@@ -125,11 +125,11 @@ discard block |
||
| 125 | 125 | 'title' => trans('common.actions.cancel'), |
| 126 | 126 | 'class' => 'btn btn-tertiary', |
| 127 | 127 | 'click' => 'close', |
| 128 | - ],[ |
|
| 128 | + ], [ |
|
| 129 | 129 | 'title' => trans('common.actions.year'), |
| 130 | 130 | 'class' => 'btn btn-primary', |
| 131 | 131 | 'click' => $this->rq()->years(), |
| 132 | - ],[ |
|
| 132 | + ], [ |
|
| 133 | 133 | 'title' => trans('common.actions.save'), |
| 134 | 134 | 'class' => 'btn btn-primary', |
| 135 | 135 | 'click' => $this->rq()->createList(pm()->form('session-list')), |
@@ -158,12 +158,12 @@ discard block |
||
| 158 | 158 | private function parseSessionList(string $sessions): array |
| 159 | 159 | { |
| 160 | 160 | $sessions = array_map(function($value) { |
| 161 | - if(!($value = trim($value, " \t\n\r;"))) |
|
| 161 | + if (!($value = trim($value, " \t\n\r;"))) |
|
| 162 | 162 | { |
| 163 | 163 | return []; |
| 164 | 164 | } |
| 165 | 165 | $values = explode(";", $value); |
| 166 | - if(count($values) !== 2) |
|
| 166 | + if (count($values) !== 2) |
|
| 167 | 167 | { |
| 168 | 168 | return []; // Todo: throw an exception |
| 169 | 169 | } |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | 'title' => trans('common.actions.cancel'), |
| 209 | 209 | 'class' => 'btn btn-tertiary', |
| 210 | 210 | 'click' => 'close', |
| 211 | - ],[ |
|
| 211 | + ], [ |
|
| 212 | 212 | 'title' => trans('common.actions.save'), |
| 213 | 213 | 'class' => 'btn btn-primary', |
| 214 | 214 | 'click' => $this->rq()->update($session->id, pm()->form('session-form')), |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | 'title' => trans('common.actions.cancel'), |
| 246 | 246 | 'class' => 'btn btn-tertiary', |
| 247 | 247 | 'click' => 'close', |
| 248 | - ],[ |
|
| 248 | + ], [ |
|
| 249 | 249 | 'title' => trans('common.actions.save'), |
| 250 | 250 | 'class' => 'btn btn-primary', |
| 251 | 251 | 'click' => $this->rq()->saveVenue($session->id, pm()->form('session-form')), |
@@ -45,8 +45,7 @@ discard block |
||
| 45 | 45 | $pools = $this->poolService->getPools(); |
| 46 | 46 | $poolLabels = $pools->keyBy('id')->map(function($pool) { |
| 47 | 47 | return $pool->title . ' - ' . ($pool->deposit_fixed ? |
| 48 | - $this->localeService->formatMoney($pool->amount) : |
|
| 49 | - trans('tontine.labels.types.libre')); |
|
| 48 | + $this->localeService->formatMoney($pool->amount) : trans('tontine.labels.types.libre')); |
|
| 50 | 49 | }); |
| 51 | 50 | $html = $this->view()->render('tontine.pages.planning.subscription.home') |
| 52 | 51 | ->with('pools', $poolLabels) |
@@ -58,7 +57,7 @@ discard block |
||
| 58 | 57 | $this->jq('#btn-pool-select')->click($this->rq()->pool($selectPoolId)); |
| 59 | 58 | |
| 60 | 59 | $pool = $pools->firstWhere('id', $poolId) ?? ($pools->count() > 0 ? $pools[0] : null); |
| 61 | - if(($pool)) |
|
| 60 | + if (($pool)) |
|
| 62 | 61 | { |
| 63 | 62 | return $this->show($pool); |
| 64 | 63 | } |
@@ -87,7 +86,7 @@ discard block |
||
| 87 | 86 | public function planning(int $poolId) |
| 88 | 87 | { |
| 89 | 88 | $pool = $this->poolService->getPool($poolId); |
| 90 | - if(!$pool || !$pool->remit_planned) |
|
| 89 | + if (!$pool || !$pool->remit_planned) |
|
| 91 | 90 | { |
| 92 | 91 | return $this->response; |
| 93 | 92 | } |
@@ -111,7 +110,7 @@ discard block |
||
| 111 | 110 | public function beneficiaries(int $poolId) |
| 112 | 111 | { |
| 113 | 112 | $pool = $this->poolService->getPool($poolId); |
| 114 | - if(!$pool || !$pool->remit_planned) |
|
| 113 | + if (!$pool || !$pool->remit_planned) |
|
| 115 | 114 | { |
| 116 | 115 | return $this->response; |
| 117 | 116 | } |
@@ -142,12 +141,12 @@ discard block |
||
| 142 | 141 | int $currSubscriptionId) |
| 143 | 142 | { |
| 144 | 143 | $pool = $this->poolService->getPool($poolId); |
| 145 | - if(!$pool || !$pool->remit_planned || $pool->remit_auction) |
|
| 144 | + if (!$pool || !$pool->remit_planned || $pool->remit_auction) |
|
| 146 | 145 | { |
| 147 | 146 | return $this->response; |
| 148 | 147 | } |
| 149 | 148 | |
| 150 | - if(!$this->subscriptionService->saveBeneficiary($pool, $sessionId, |
|
| 149 | + if (!$this->subscriptionService->saveBeneficiary($pool, $sessionId, |
|
| 151 | 150 | $currSubscriptionId, $nextSubscriptionId)) |
| 152 | 151 | { |
| 153 | 152 | $message = trans('tontine.beneficiary.errors.cant_change'); |
@@ -50,8 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | protected function getPool() |
| 52 | 52 | { |
| 53 | - $poolId = $this->target()->method() === 'home' ? $this->target()->args()[0] : |
|
| 54 | - intval($this->bag('subscription')->get('pool.id')); |
|
| 53 | + $poolId = $this->target()->method() === 'home' ? $this->target()->args()[0] : intval($this->bag('subscription')->get('pool.id')); |
|
| 55 | 54 | $this->pool = $this->poolService->getPool($poolId); |
| 56 | 55 | } |
| 57 | 56 | |
@@ -71,7 +70,7 @@ discard block |
||
| 71 | 70 | $this->response->html('pool-subscription-members', $html); |
| 72 | 71 | $this->jq('#btn-subscription-members-filter')->click($this->rq()->filter()); |
| 73 | 72 | $this->jq('#btn-subscription-members-refresh')->click($this->rq()->home($poolId)); |
| 74 | - if($this->pool->remit_planned) |
|
| 73 | + if ($this->pool->remit_planned) |
|
| 75 | 74 | { |
| 76 | 75 | $this->jq('#btn-subscription-beneficiaries') |
| 77 | 76 | ->click($this->cl(Subscription::class)->rq()->beneficiaries($poolId)); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | 'title' => trans('common.actions.cancel'), |
| 87 | 87 | 'class' => 'btn btn-tertiary', |
| 88 | 88 | 'click' => 'close', |
| 89 | - ],[ |
|
| 89 | + ], [ |
|
| 90 | 90 | 'title' => trans('common.actions.next'), |
| 91 | 91 | 'class' => 'btn btn-primary', |
| 92 | 92 | 'click' => $this->rq()->showDepositFixed(), |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | 'title' => trans('common.actions.cancel'), |
| 110 | 110 | 'class' => 'btn btn-tertiary', |
| 111 | 111 | 'click' => 'close', |
| 112 | - ],[ |
|
| 112 | + ], [ |
|
| 113 | 113 | 'title' => trans('common.actions.next'), |
| 114 | 114 | 'class' => 'btn btn-primary', |
| 115 | 115 | 'click' => $this->rq()->saveDepositFixed(pm()->checked('pool_deposit_fixed')), |
@@ -140,11 +140,11 @@ discard block |
||
| 140 | 140 | 'title' => trans('common.actions.cancel'), |
| 141 | 141 | 'class' => 'btn btn-tertiary', |
| 142 | 142 | 'click' => 'close', |
| 143 | - ],[ |
|
| 143 | + ], [ |
|
| 144 | 144 | 'title' => trans('common.actions.prev'), |
| 145 | 145 | 'class' => 'btn btn-primary', |
| 146 | 146 | 'click' => $this->rq()->showDepositFixed(), |
| 147 | - ],[ |
|
| 147 | + ], [ |
|
| 148 | 148 | 'title' => trans('common.actions.next'), |
| 149 | 149 | 'class' => 'btn btn-primary', |
| 150 | 150 | 'click' => $this->rq()->saveRemitFixed(pm()->checked('pool_remit_fixed')), |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | $properties = $this->bag('pool')->get('add', []); |
| 160 | 160 | $properties['remit']['fixed'] = $fixed; |
| 161 | 161 | |
| 162 | - if(!$properties['deposit']['fixed'] && !$properties['remit']['fixed']) |
|
| 162 | + if (!$properties['deposit']['fixed'] && !$properties['remit']['fixed']) |
|
| 163 | 163 | { |
| 164 | 164 | $properties['remit']['planned'] = true; |
| 165 | 165 | $properties['remit']['auction'] = false; |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | |
| 168 | 168 | return $this->showRemitLendable(); |
| 169 | 169 | } |
| 170 | - if(!$properties['deposit']['fixed'] && $properties['remit']['fixed']) |
|
| 170 | + if (!$properties['deposit']['fixed'] && $properties['remit']['fixed']) |
|
| 171 | 171 | { |
| 172 | 172 | $properties['remit']['planned'] = true; |
| 173 | 173 | $properties['remit']['auction'] = false; |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | |
| 177 | 177 | return $this->add(); |
| 178 | 178 | } |
| 179 | - if($properties['deposit']['fixed'] && !$properties['remit']['fixed']) |
|
| 179 | + if ($properties['deposit']['fixed'] && !$properties['remit']['fixed']) |
|
| 180 | 180 | { |
| 181 | 181 | $properties['remit']['planned'] = false; |
| 182 | 182 | $this->bag('pool')->set('add', $properties); |
@@ -201,11 +201,11 @@ discard block |
||
| 201 | 201 | 'title' => trans('common.actions.cancel'), |
| 202 | 202 | 'class' => 'btn btn-tertiary', |
| 203 | 203 | 'click' => 'close', |
| 204 | - ],[ |
|
| 204 | + ], [ |
|
| 205 | 205 | 'title' => trans('common.actions.prev'), |
| 206 | 206 | 'class' => 'btn btn-primary', |
| 207 | 207 | 'click' => $this->rq()->showRemitFixed(), |
| 208 | - ],[ |
|
| 208 | + ], [ |
|
| 209 | 209 | 'title' => trans('common.actions.next'), |
| 210 | 210 | 'class' => 'btn btn-primary', |
| 211 | 211 | 'click' => $this->rq()->saveRemitPlanned(pm()->checked('pool_remit_planned')), |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | |
| 231 | 231 | $properties = $this->bag('pool')->get('add', []); |
| 232 | 232 | $prevAction = $this->rq()->showRemitPlanned(); |
| 233 | - if($properties['deposit']['fixed'] && !$properties['remit']['fixed']) |
|
| 233 | + if ($properties['deposit']['fixed'] && !$properties['remit']['fixed']) |
|
| 234 | 234 | { |
| 235 | 235 | $prevAction = $this->rq()->showRemitFixed(); |
| 236 | 236 | } |
@@ -242,11 +242,11 @@ discard block |
||
| 242 | 242 | 'title' => trans('common.actions.cancel'), |
| 243 | 243 | 'class' => 'btn btn-tertiary', |
| 244 | 244 | 'click' => 'close', |
| 245 | - ],[ |
|
| 245 | + ], [ |
|
| 246 | 246 | 'title' => trans('common.actions.prev'), |
| 247 | 247 | 'class' => 'btn btn-primary', |
| 248 | 248 | 'click' => $prevAction, |
| 249 | - ],[ |
|
| 249 | + ], [ |
|
| 250 | 250 | 'title' => trans('common.actions.next'), |
| 251 | 251 | 'class' => 'btn btn-primary', |
| 252 | 252 | 'click' => $this->rq()->saveRemitAuction(pm()->checked('pool_remit_auction')), |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | |
| 272 | 272 | $properties = $this->bag('pool')->get('add', []); |
| 273 | 273 | $prevAction = $this->rq()->showRemitAuction(); |
| 274 | - if(!$properties['deposit']['fixed'] && !$properties['remit']['fixed']) |
|
| 274 | + if (!$properties['deposit']['fixed'] && !$properties['remit']['fixed']) |
|
| 275 | 275 | { |
| 276 | 276 | $prevAction = $this->rq()->showRemitFixed(); |
| 277 | 277 | } |
@@ -283,11 +283,11 @@ discard block |
||
| 283 | 283 | 'title' => trans('common.actions.cancel'), |
| 284 | 284 | 'class' => 'btn btn-tertiary', |
| 285 | 285 | 'click' => 'close', |
| 286 | - ],[ |
|
| 286 | + ], [ |
|
| 287 | 287 | 'title' => trans('common.actions.prev'), |
| 288 | 288 | 'class' => 'btn btn-primary', |
| 289 | 289 | 'click' => $prevAction, |
| 290 | - ],[ |
|
| 290 | + ], [ |
|
| 291 | 291 | 'title' => trans('common.actions.next'), |
| 292 | 292 | 'class' => 'btn btn-primary', |
| 293 | 293 | 'click' => $this->rq()->saveRemitLendable(pm()->checked('pool_remit_lendable')), |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | 'title' => trans('common.actions.cancel'), |
| 318 | 318 | 'class' => 'btn btn-tertiary', |
| 319 | 319 | 'click' => 'close', |
| 320 | - ],[ |
|
| 320 | + ], [ |
|
| 321 | 321 | 'title' => trans('common.actions.save'), |
| 322 | 322 | 'class' => 'btn btn-primary', |
| 323 | 323 | 'click' => $this->rq()->create(pm()->form('pool-form')), |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | 'title' => trans('common.actions.cancel'), |
| 355 | 355 | 'class' => 'btn btn-tertiary', |
| 356 | 356 | 'click' => 'close', |
| 357 | - ],[ |
|
| 357 | + ], [ |
|
| 358 | 358 | 'title' => trans('common.actions.save'), |
| 359 | 359 | 'class' => 'btn btn-primary', |
| 360 | 360 | 'click' => $this->rq()->update($pool->id, pm()->form('pool-form')), |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | public function delete(int $poolId) |
| 385 | 385 | { |
| 386 | 386 | $pool = $this->poolService->getPool($poolId); |
| 387 | - if($pool->subscriptions()->count() > 0) |
|
| 387 | + if ($pool->subscriptions()->count() > 0) |
|
| 388 | 388 | { |
| 389 | 389 | $this->notify->error(trans('tontine.pool.errors.delete.subscriptions'), trans('common.titles.error')); |
| 390 | 390 | return $this->response; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | $count = intval($this->bag('faker')->get('charge.count')); |
| 52 | 52 | $charges = $this->chargeService->getFakeCharges($count); |
| 53 | - for($i = 0; $i < $count; $i++) |
|
| 53 | + for ($i = 0; $i < $count; $i++) |
|
| 54 | 54 | { |
| 55 | 55 | $this->jq("#charge_type_$i")->val($charges[$i]->type); |
| 56 | 56 | $this->jq("#charge_period_$i")->val($charges[$i]->period); |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | { |
| 70 | 70 | $count = intval($this->bag('faker')->get('pool.count')); |
| 71 | 71 | $pools = $this->poolService->getFakePools($count); |
| 72 | - for($i = 0; $i < $count; $i++) |
|
| 72 | + for ($i = 0; $i < $count; $i++) |
|
| 73 | 73 | { |
| 74 | 74 | $this->jq("#pool_title_$i")->val($pools[$i]->title); |
| 75 | 75 | $this->jq("#pool_amount_$i")->val($pools[$i]->amount); |