@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | $this->response->html('section-title', trans('tontine.menus.planning')); |
| 71 | 71 | $this->response->html('content-home-sessions', $html); |
| 72 | 72 | |
| 73 | - if(!$this->round) |
|
| 73 | + if (!$this->round) |
|
| 74 | 74 | { |
| 75 | 75 | // Show an empty sessions table |
| 76 | 76 | $html = $this->render('pages.planning.session.page', [ |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | 'title' => trans('common.actions.cancel'), |
| 121 | 121 | 'class' => 'btn btn-tertiary', |
| 122 | 122 | 'click' => 'close', |
| 123 | - ],[ |
|
| 123 | + ], [ |
|
| 124 | 124 | 'title' => trans('common.actions.save'), |
| 125 | 125 | 'class' => 'btn btn-primary', |
| 126 | 126 | 'click' => $this->rq()->create(pm()->form('session-form')), |
@@ -151,11 +151,11 @@ discard block |
||
| 151 | 151 | 'title' => trans('common.actions.cancel'), |
| 152 | 152 | 'class' => 'btn btn-tertiary', |
| 153 | 153 | 'click' => 'close', |
| 154 | - ],[ |
|
| 154 | + ], [ |
|
| 155 | 155 | 'title' => trans('common.actions.year'), |
| 156 | 156 | 'class' => 'btn btn-primary', |
| 157 | 157 | 'click' => $this->rq()->years(), |
| 158 | - ],[ |
|
| 158 | + ], [ |
|
| 159 | 159 | 'title' => trans('common.actions.save'), |
| 160 | 160 | 'class' => 'btn btn-primary', |
| 161 | 161 | 'click' => $this->rq()->createList(pm()->form('session-list')), |
@@ -184,12 +184,12 @@ discard block |
||
| 184 | 184 | private function parseSessionList(string $sessions): array |
| 185 | 185 | { |
| 186 | 186 | $sessions = array_map(function($value) { |
| 187 | - if(!($value = trim($value, " \t\n\r;"))) |
|
| 187 | + if (!($value = trim($value, " \t\n\r;"))) |
|
| 188 | 188 | { |
| 189 | 189 | return []; |
| 190 | 190 | } |
| 191 | 191 | $values = explode(";", $value); |
| 192 | - if(count($values) !== 2) |
|
| 192 | + if (count($values) !== 2) |
|
| 193 | 193 | { |
| 194 | 194 | return []; // Todo: throw an exception |
| 195 | 195 | } |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | |
| 207 | 207 | // Check uniqueness of session dates |
| 208 | 208 | $sessionDates = array_unique(array_map(fn($session) => $session['date'], $sessions)); |
| 209 | - if(count($sessions) !== count($sessionDates)) |
|
| 209 | + if (count($sessions) !== count($sessionDates)) |
|
| 210 | 210 | { |
| 211 | 211 | throw new MessageException(trans('tontine.session.errors.date_dup')); |
| 212 | 212 | } |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | 'title' => trans('common.actions.cancel'), |
| 240 | 240 | 'class' => 'btn btn-tertiary', |
| 241 | 241 | 'click' => 'close', |
| 242 | - ],[ |
|
| 242 | + ], [ |
|
| 243 | 243 | 'title' => trans('common.actions.save'), |
| 244 | 244 | 'class' => 'btn btn-primary', |
| 245 | 245 | 'click' => $this->rq()->update($session->id, pm()->form('session-form')), |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | 'title' => trans('common.actions.cancel'), |
| 278 | 278 | 'class' => 'btn btn-tertiary', |
| 279 | 279 | 'click' => 'close', |
| 280 | - ],[ |
|
| 280 | + ], [ |
|
| 281 | 281 | 'title' => trans('common.actions.save'), |
| 282 | 282 | 'class' => 'btn btn-primary', |
| 283 | 283 | 'click' => $this->rq()->saveVenue($session->id, pm()->form('session-form')), |