| Conditions | 4 |
| Paths | 4 |
| Total Lines | 22 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function render() : string |
||
| 22 | { |
||
| 23 | $list = array(); |
||
| 24 | |||
| 25 | $attributes = $this->compileAttributes(); |
||
| 26 | |||
| 27 | if(empty($attributes)) |
||
| 28 | { |
||
| 29 | return ''; |
||
| 30 | } |
||
| 31 | |||
| 32 | foreach($attributes as $name => $value) |
||
| 33 | { |
||
| 34 | if($value === '') |
||
| 35 | { |
||
| 36 | continue; |
||
| 37 | } |
||
| 38 | |||
| 39 | $list[] = $this->renderAttribute($name, $value); |
||
| 40 | } |
||
| 41 | |||
| 42 | return ' '.implode(' ', $list); |
||
| 43 | } |
||
| 85 |