| Conditions | 2 |
| Paths | 2 |
| Total Lines | 26 |
| Code Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 43 | public function get($args) |
||
|
|
|||
| 44 | { |
||
| 45 | |||
| 46 | $Users = $this->UserRepo->findMany(); |
||
| 47 | |||
| 48 | $table = \Donquixote\Cellbrush\Table\Table::create(); |
||
| 49 | $table->addColNames([0, 1, 2]); |
||
| 50 | $table->addClass('table table-striped'); |
||
| 51 | $table->thead() |
||
| 52 | ->addRowName('head row') |
||
| 53 | ->th('head row', 0, 'Id') |
||
| 54 | ->th('head row', 1, 'Имя') |
||
| 55 | ->th('head row', 2, 'Email'); |
||
| 56 | $i = 0; |
||
| 57 | foreach ($Users as $User) { |
||
| 58 | $table->addRow($i)->tdMultiple([ |
||
| 59 | $User->getId(), |
||
| 60 | $User->getName(), |
||
| 61 | $User->getEmail()]); |
||
| 62 | $i++; |
||
| 63 | } |
||
| 64 | |||
| 65 | return new Response($this->twig->render('pages/index.html.twig',[ |
||
| 66 | "table" => $table->render() |
||
| 67 | ])); |
||
| 68 | } |
||
| 69 | } |
||
| 70 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.