Conditions | 4 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | 1 | public function setMultiple($value): void |
|
18 | { |
||
19 | 1 | if (!empty($value) && ('none' !== strval($value))) { |
|
20 | 1 | $this->setAttribute('multiple', 'multiple'); |
|
21 | 1 | if (!$this->getAttribute('size')) { |
|
22 | 1 | $this->setSize(count($this->children)); |
|
23 | } |
||
24 | } else { |
||
25 | 1 | $this->removeAttribute('multiple'); |
|
26 | } |
||
55 |