| Conditions | 6 |
| Paths | 32 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 12 | public function render(array $parameters, HTMLNode $previous): HTMLNode |
||
| 13 | { |
||
| 14 | foreach ($previous->get('.formularium-disabled') as $e) { |
||
| 15 | $e->addAttribute('class', 'disabled'); |
||
| 16 | } |
||
| 17 | foreach ($previous->get('.formularium-pagination-item') as $e) { |
||
| 18 | $e->addAttribute('class', 'waves-effect'); |
||
| 19 | } |
||
| 20 | foreach ($previous->get('.formularium-pagination-current') as $e) { |
||
| 21 | $e->addAttribute('class', 'active'); |
||
| 22 | } |
||
| 23 | foreach ($previous->get('.formularium-pagination') as $e) { |
||
| 24 | $e->addAttribute('class', 'pagination'); |
||
| 25 | } |
||
| 26 | |||
| 27 | $x = $previous->get('ul'); |
||
| 28 | return $x ? $x[0] : $previous; |
||
| 29 | } |
||
| 37 |