@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | 'title' => trans('common.actions.cancel'), |
| 106 | 106 | 'class' => 'btn btn-tertiary', |
| 107 | 107 | 'click' => 'close', |
| 108 | - ],[ |
|
| 108 | + ], [ |
|
| 109 | 109 | 'title' => trans('common.actions.save'), |
| 110 | 110 | 'class' => 'btn btn-primary', |
| 111 | 111 | 'click' => $this->rq()->create(pm()->form('tontine-form')), |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | 'title' => trans('common.actions.cancel'), |
| 151 | 151 | 'class' => 'btn btn-tertiary', |
| 152 | 152 | 'click' => 'close', |
| 153 | - ],[ |
|
| 153 | + ], [ |
|
| 154 | 154 | 'title' => trans('common.actions.save'), |
| 155 | 155 | 'class' => 'btn btn-primary', |
| 156 | 156 | 'click' => $this->rq()->update($tontine->id, pm()->form('tontine-form')), |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | 'title' => trans('common.actions.close'), |
| 63 | 63 | 'class' => 'btn btn-tertiary', |
| 64 | 64 | 'click' => 'close', |
| 65 | - ],[ |
|
| 65 | + ], [ |
|
| 66 | 66 | 'title' => trans('common.actions.save'), |
| 67 | 67 | 'class' => 'btn btn-primary', |
| 68 | 68 | 'click' => $this->rq()->saveTontine(pm()->select('tontine_id')->toInt()), |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | public function saveTontine(int $tontineId) |
| 79 | 79 | { |
| 80 | 80 | $tontine = $this->tontineService->getTontine($tontineId); |
| 81 | - if(!$tontine) |
|
| 81 | + if (!$tontine) |
|
| 82 | 82 | { |
| 83 | 83 | return $this->response; |
| 84 | 84 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | 'title' => trans('common.actions.close'), |
| 114 | 114 | 'class' => 'btn btn-tertiary', |
| 115 | 115 | 'click' => 'close', |
| 116 | - ],[ |
|
| 116 | + ], [ |
|
| 117 | 117 | 'title' => trans('common.actions.save'), |
| 118 | 118 | 'class' => 'btn btn-primary', |
| 119 | 119 | 'click' => $this->rq()->saveRound(pm()->select('round_id')->toInt()), |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | public function saveRound(int $roundId) |
| 127 | 127 | { |
| 128 | 128 | $round = $this->tontineService->getRound($roundId); |
| 129 | - if(!$round) |
|
| 129 | + if (!$round) |
|
| 130 | 130 | { |
| 131 | 131 | return $this->response; |
| 132 | 132 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | 'title' => trans('common.actions.cancel'), |
| 79 | 79 | 'class' => 'btn btn-tertiary', |
| 80 | 80 | 'click' => 'close', |
| 81 | - ],[ |
|
| 81 | + ], [ |
|
| 82 | 82 | 'title' => trans('common.actions.add'), |
| 83 | 83 | 'class' => 'btn btn-primary', |
| 84 | 84 | 'click' => $this->rq()->add(pm()->input('text-number')), |
@@ -93,12 +93,12 @@ discard block |
||
| 93 | 93 | */ |
| 94 | 94 | public function add(int $count) |
| 95 | 95 | { |
| 96 | - if($count <= 0) |
|
| 96 | + if ($count <= 0) |
|
| 97 | 97 | { |
| 98 | 98 | $this->notify->warning(trans('number.errors.invalid')); |
| 99 | 99 | return $this->response; |
| 100 | 100 | } |
| 101 | - if($count > 10) |
|
| 101 | + if ($count > 10) |
|
| 102 | 102 | { |
| 103 | 103 | $this->notify->warning(trans('number.errors.max', ['max' => 10])); |
| 104 | 104 | return $this->response; |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $this->response->html('content-home', $html); |
| 114 | 114 | $this->jq('#btn-cancel')->click($this->rq()->home()); |
| 115 | 115 | $this->jq('#btn-save')->click($this->rq()->create(pm()->form('member-form'))); |
| 116 | - if($useFaker) |
|
| 116 | + if ($useFaker) |
|
| 117 | 117 | { |
| 118 | 118 | $this->bag('faker')->set('member.count', $count); |
| 119 | 119 | $this->jq('#btn-fakes')->click($this->cl(Faker::class)->rq()->members()); |
@@ -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()->update($member->id, pm()->form('member-form')), |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | 'title' => trans('common.actions.cancel'), |
| 88 | 88 | 'class' => 'btn btn-tertiary', |
| 89 | 89 | 'click' => 'close', |
| 90 | - ],[ |
|
| 90 | + ], [ |
|
| 91 | 91 | 'title' => trans('common.actions.save'), |
| 92 | 92 | 'class' => 'btn btn-primary', |
| 93 | 93 | 'click' => $this->rq()->saveFunding(pm()->form('funding-form')), |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | public function addLoan() |
| 85 | 85 | { |
| 86 | 86 | $amountAvailable = $this->loanService->getAmountAvailable($this->session); |
| 87 | - if($amountAvailable <= 0) |
|
| 87 | + if ($amountAvailable <= 0) |
|
| 88 | 88 | { |
| 89 | 89 | return $this->response; |
| 90 | 90 | } |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | 'title' => trans('common.actions.cancel'), |
| 99 | 99 | 'class' => 'btn btn-tertiary', |
| 100 | 100 | 'click' => 'close', |
| 101 | - ],[ |
|
| 101 | + ], [ |
|
| 102 | 102 | 'title' => trans('common.actions.save'), |
| 103 | 103 | 'class' => 'btn btn-primary', |
| 104 | 104 | 'click' => $this->rq()->saveLoan(pm()->form('loan-form')), |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $pagination = $this->rq()->page()->paginate($pageNumber, $perPage, $fineCount); |
| 72 | 72 | // Bill and settlement counts and amounts |
| 73 | 73 | [$bills, $settlements] = $this->fineService->getBills($this->session); |
| 74 | - foreach($fines as $fine) |
|
| 74 | + foreach ($fines as $fine) |
|
| 75 | 75 | { |
| 76 | 76 | $fine->currentBillCount = ($bills['total']['current'][$fine->id] ?? 0); |
| 77 | 77 | $fine->previousBillCount = ($bills['total']['previous'][$fine->id] ?? 0); |
@@ -71,10 +71,10 @@ |
||
| 71 | 71 | $pagination = $this->rq()->page()->paginate($pageNumber, $perPage, $feeCount); |
| 72 | 72 | // Bill and settlement counts and amounts |
| 73 | 73 | [$bills, $settlements] = $this->feeService->getBills($this->session); |
| 74 | - foreach($fees as $fee) |
|
| 74 | + foreach ($fees as $fee) |
|
| 75 | 75 | { |
| 76 | 76 | $fee->currentBillCount = ($bills['total']['current'][$fee->id] ?? 0); |
| 77 | - if(!$fee->period_session) |
|
| 77 | + if (!$fee->period_session) |
|
| 78 | 78 | { |
| 79 | 79 | $fee->currentBillCount -= ($settlements['total']['previous'][$fee->id] ?? 0); |
| 80 | 80 | } |
@@ -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; |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | ->with('tontine', $tontine) |
| 98 | 98 | ->with('session', $this->session) |
| 99 | 99 | ->with('pools', $this->poolService->getPoolsWithPayables($this->session)); |
| 100 | - if($this->session->closed) |
|
| 100 | + if ($this->session->closed) |
|
| 101 | 101 | { |
| 102 | 102 | $html->with('summary', $this->poolService->getPayablesSummary($this->session)); |
| 103 | 103 | } |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | 'title' => trans('common.actions.cancel'), |
| 154 | 154 | 'class' => 'btn btn-tertiary', |
| 155 | 155 | 'click' => 'close', |
| 156 | - ],[ |
|
| 156 | + ], [ |
|
| 157 | 157 | 'title' => trans('common.actions.save'), |
| 158 | 158 | 'class' => 'btn btn-primary', |
| 159 | 159 | 'click' => $this->rq()->saveRemitment(pm()->form('remitment-form')), |
@@ -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; |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | ->with('tontine', $tontine) |
| 85 | 85 | ->with('session', $this->session) |
| 86 | 86 | ->with('pools', $this->poolService->getPoolsWithPayables($this->session)); |
| 87 | - if($this->session->closed) |
|
| 87 | + if ($this->session->closed) |
|
| 88 | 88 | { |
| 89 | 89 | $html->with('summary', $this->poolService->getPayablesSummary($this->session)); |
| 90 | 90 | } |