| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class CallableSelectClass extends CallableClass |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param Tontine $tontine |
||
| 14 | * |
||
| 15 | * @return void |
||
| 16 | */ |
||
| 17 | protected function selectTontine(Tontine $tontine) |
||
| 18 | { |
||
| 19 | $this->response->html('section-tontine-name', $tontine->name); |
||
| 20 | |||
| 21 | // Set the tontine sidebar menu |
||
| 22 | $this->response->html('sidebar-menu-tontine', $this->render('parts.sidebar.tontine')); |
||
|
|
|||
| 23 | $this->jq('a', '#sidebar-menu-tontine')->css('color', '#6777ef'); |
||
| 24 | |||
| 25 | foreach(config('menu.tontine') as $menuId => $menuClass) |
||
| 26 | { |
||
| 27 | $this->jq($menuId)->click($this->rq($menuClass)->home()); |
||
| 28 | } |
||
| 29 | |||
| 30 | // Reset the round sidebar menu |
||
| 31 | $this->response->html('sidebar-menu-round', $this->render('parts.sidebar.round')); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param Round $round |
||
| 36 | * |
||
| 37 | * @return void |
||
| 38 | */ |
||
| 39 | protected function selectRound(Round $round) |
||
| 50 | } |
||
| 51 | } |
||
| 53 |