remove dead code
This commit is contained in:
parent
726c8caf54
commit
ad8eeccd72
|
|
@ -244,11 +244,14 @@ class Html
|
||||||
protected static function parseInput($node, $element, &$styles)
|
protected static function parseInput($node, $element, &$styles)
|
||||||
{
|
{
|
||||||
$attributes = $node->attributes;
|
$attributes = $node->attributes;
|
||||||
|
$inputType = $attributes->getNamedItem('type')->value;
|
||||||
|
|
||||||
if (($type = $attributes->getNamedItem('type')->value) === 'checkbox') {
|
switch ($inputType) {
|
||||||
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ?? false;
|
case 'checkbox':
|
||||||
$textrun = $element->addTextRun();
|
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ?? false;
|
||||||
$textrun->addFormField('checkbox')->setValue($checked);
|
$textrun = $element->addTextRun();
|
||||||
|
$textrun->addFormField('checkbox')->setValue($checked);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue