Skip to content

Commit

Permalink
reorg switch to avoid partially covered case branch
Browse files Browse the repository at this point in the history
  • Loading branch information
theseer committed Aug 12, 2023
1 parent e55c289 commit 76d9931
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/formdata/FormDataRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ private function processElements(StaticNodeList $elements): void {
assert($element instanceof DOMElement);

switch ($element->localName) {
case 'input': {
$this->processInput($element);
case 'select': {
$this->processSelect($element);

break;
}
Expand All @@ -59,10 +59,8 @@ private function processElements(StaticNodeList $elements): void {
break;
}

case 'select': {
$this->processSelect($element);

break;
default: {
$this->processInput($element);
}
}
}
Expand Down

0 comments on commit 76d9931

Please sign in to comment.