| Conditions | 2 |
| Paths | 2 |
| Total Lines | 25 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function __invoke(): HttpResponse |
||
| 16 | { |
||
| 17 | parent::__invoke(); |
||
| 18 | |||
| 19 | $form = $this->createForm(); |
||
| 20 | |||
| 21 | $results = []; |
||
| 22 | |||
| 23 | if ($form->validate()) { |
||
| 24 | $results = $this->findResults( |
||
| 25 | $form->exportValues() |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | |||
| 29 | $table = $this->createTable($results); |
||
| 30 | |||
| 31 | $content = $form->returnForm() |
||
| 32 | .Display::page_subheader2($this->plugin->get_lang('ReportByAttempts')) |
||
| 33 | .$table->toHtml(); |
||
| 34 | |||
| 35 | $this->setBreadcrumb(); |
||
| 36 | |||
| 37 | return $this->renderView( |
||
| 38 | $this->plugin->get_title(), |
||
| 39 | $content |
||
| 40 | ); |
||
| 53 |