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